{"action":"created","issue":{"url":"https://api.github.com/repos/spacetelescope/jwst/issues/2271","repository_url":"https://api.github.com/repos/spacetelescope/jwst","labels_url":"https://api.github.com/repos/spacetelescope/jwst/issues/2271/labels{/name}","comments_url":"https://api.github.com/repos/spacetelescope/jwst/issues/2271/comments","events_url":"https://api.github.com/repos/spacetelescope/jwst/issues/2271/events","html_url":"https://github.com/spacetelescope/jwst/issues/2271","id":343204480,"node_id":"MDU6SXNzdWUzNDMyMDQ0ODA=","number":2271,"title":"Tweakreg error ","user":{"login":"stscijgbot","id":38438914,"node_id":"MDQ6VXNlcjM4NDM4OTE0","avatar_url":"https://avatars1.githubusercontent.com/u/38438914?v=4","gravatar_id":"","url":"https://api.github.com/users/stscijgbot","html_url":"https://github.com/stscijgbot","followers_url":"https://api.github.com/users/stscijgbot/followers","following_url":"https://api.github.com/users/stscijgbot/following{/other_user}","gists_url":"https://api.github.com/users/stscijgbot/gists{/gist_id}","starred_url":"https://api.github.com/users/stscijgbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stscijgbot/subscriptions","organizations_url":"https://api.github.com/users/stscijgbot/orgs","repos_url":"https://api.github.com/users/stscijgbot/repos","events_url":"https://api.github.com/users/stscijgbot/events{/privacy}","received_events_url":"https://api.github.com/users/stscijgbot/received_events","type":"User","site_admin":false},"labels":[{"id":991810932,"node_id":"MDU6TGFiZWw5OTE4MTA5MzI=","url":"https://api.github.com/repos/spacetelescope/jwst/labels/jira","name":"jira","color":"53b0b5","default":false},{"id":390243706,"node_id":"MDU6TGFiZWwzOTAyNDM3MDY=","url":"https://api.github.com/repos/spacetelescope/jwst/labels/tweakreg","name":"tweakreg","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-20T18:25:05Z","updated_at":"2018-07-20T21:00:25Z","closed_at":null,"author_association":"COLLABORATOR","body":"Issue [JP-353](https://jira.stsci.edu/browse/JP-353) was created by Alicia Canipe:\n\nHello,\r\n\r\nI have a couple of dithered simulated exposures (2 subpixel dithers, in this case) that I ran through the Image2 pipeline a few months ago to generate *cal.fits files for Stage 3 processing. If I run these older *cal.fits files through Stage3 steps, the pipeline run is successful:\r\n{code:java}\r\nIn [2]: image3 = calwebb_image3.Image3Pipeline()\r\n2018-07-20 13:50:43,748 - stpipe.Image3Pipeline - INFO - Image3Pipeline instance created.\r\n2018-07-20 13:50:43,756 - stpipe.Image3Pipeline.tweakreg - INFO - TweakRegStep instance created.\r\n2018-07-20 13:50:43,763 - stpipe.Image3Pipeline.skymatch - INFO - SkyMatchStep instance created.\r\n2018-07-20 13:50:43,770 - stpipe.Image3Pipeline.outlier_detection - INFO - OutlierDetectionStep instance created.\r\n2018-07-20 13:50:43,775 - stpipe.Image3Pipeline.resample - INFO - ResampleStep instance created.\r\n2018-07-20 13:50:43,780 - stpipe.Image3Pipeline.source_catalog - INFO - SourceCatalogStep instance created.In [3]: image3.skymatch.skip = TrueIn [4]: image3.outlier_detection.skip = TrueIn [5]: image3.run(\"image3_old_defaults_asn.json\")\r\n2018-07-20 13:50:59,898 - stpipe.Image3Pipeline - INFO - Step Image3Pipeline running with args ('image3_old_defaults_asn.json',).\r\n2018-07-20 13:51:01,100 - stpipe.Image3Pipeline - INFO - Prefetching reference files for dataset: 'old_V54321001002P0000000001109_A1_F150W_cal.fits' reftypes = ['drizpars']\r\n2018-07-20 13:51:01,625 - stpipe.Image3Pipeline - INFO - Prefetch for DRIZPARS reference file is '/grp/crds/cache/references/jwst/jwst_nircam_drizpars_0001.fits'.\r\n2018-07-20 13:51:02,333 - stpipe.Image3Pipeline - INFO - Prefetching reference files for dataset: 'old_V54321001002P0000000001108_A1_F150W_cal.fits' reftypes = ['drizpars']\r\n2018-07-20 13:51:02,338 - stpipe.Image3Pipeline - INFO - Prefetch for DRIZPARS reference file is '/grp/crds/cache/references/jwst/jwst_nircam_drizpars_0001.fits'.\r\n2018-07-20 13:51:02,338 - stpipe.Image3Pipeline - INFO - Starting calwebb_image3 ...\r\n2018-07-20 13:51:03,255 - stpipe.Image3Pipeline - INFO - Aligning input images...\r\n2018-07-20 13:51:03,317 - stpipe.Image3Pipeline.tweakreg - INFO - Step tweakreg running with args (<ModelContainer>,).\r\n2018-07-20 13:51:03,320 - stpipe.Image3Pipeline.tweakreg - WARNING - /user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/photutils/detection/core.py:97: AstropyDeprecationWarning: \"iters\" was deprecated in version 3.1 and will be removed in a future version. Use argument \"maxiters\" instead.\r\n  iters=sigclip_iters)2018-07-20 13:51:10,287 - stpipe.Image3Pipeline.tweakreg - INFO - Detected 2246 sources in old_V54321001002P0000000001109_A1_F150W_cal.fits.\r\n2018-07-20 13:51:10,288 - stpipe.Image3Pipeline.tweakreg - WARNING - /user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/photutils/detection/core.py:97: AstropyDeprecationWarning: \"iters\" was deprecated in version 3.1 and will be removed in a future version. Use argument \"maxiters\" instead.\r\n  iters=sigclip_iters)2018-07-20 13:51:16,863 - stpipe.Image3Pipeline.tweakreg - INFO - Detected 2512 sources in old_V54321001002P0000000001108_A1_F150W_cal.fits.\r\n2018-07-20 13:51:18,440 - stpipe.Image3Pipeline.tweakreg - INFO -\r\n2018-07-20 13:51:18,440 - stpipe.Image3Pipeline.tweakreg - INFO - ***** jwst.tweakreg.imalign.align() started on 2018-07-20 13:51:18.440272\r\n2018-07-20 13:51:18,440 - stpipe.Image3Pipeline.tweakreg - INFO -       Version 0.9.3 (10-January-2018)\r\n2018-07-20 13:51:18,440 - stpipe.Image3Pipeline.tweakreg - INFO -\r\n2018-07-20 13:51:18,440 - stpipe.Image3Pipeline.tweakreg - INFO - Selected image 'old_V54321001002P0000000001109_A1_F150W_cal.fits' as reference image\r\n2018-07-20 13:51:18,464 - stpipe.Image3Pipeline.tweakreg - INFO - Aligning image catalog 'old_V54321001002P0000000001108_A1_F150W_cal.fits' to the reference catalog.\r\n2018-07-20 13:51:18,484 - stpipe.Image3Pipeline.tweakreg - INFO - Matching sources from 'old_V54321001002P0000000001108_A1_F150W_cal.fits' with sources from reference image 'old_V54321001002P0000000001109_A1_F150W_cal.fits'\r\n2018-07-20 13:51:18,485 - stpipe.Image3Pipeline.tweakreg - INFO - Computing initial guess for X and Y shifts...\r\n2018-07-20 13:51:18,512 - stpipe.Image3Pipeline.tweakreg - INFO - Found initial X and Y shifts of -1.245, 0.2018 with significance of 1.526e+04 and 25151.0 matches\r\n2018-07-20 13:51:18,515 - stpipe.Image3Pipeline.tweakreg - INFO - Found 413 matches for 'old_V54321001002P0000000001108_A1_F150W_cal.fits'...\r\n2018-07-20 13:51:18,516 - stpipe.Image3Pipeline.tweakreg - INFO - Performing 'general' fit\r\n2018-07-20 13:51:18,520 - stpipe.Image3Pipeline.tweakreg - INFO - Computed 'general' fit for old_V54321001002P0000000001108_A1_F150W_cal.fits:\r\n2018-07-20 13:51:18,520 - stpipe.Image3Pipeline.tweakreg - INFO - XSH: 1.1408  YSH: -0.136986    PROPER ROT: 0.213858\r\n2018-07-20 13:51:18,520 - stpipe.Image3Pipeline.tweakreg - INFO - <ROT>: 0.213858  SKEW: -0.378825    ROT_X: 0.403271  ROT_Y: 0.0244461\r\n2018-07-20 13:51:18,520 - stpipe.Image3Pipeline.tweakreg - INFO - <SCALE>: 0.992742  SCALE_X: 0.992386  SCALE_Y: 0.993119\r\n2018-07-20 13:51:18,520 - stpipe.Image3Pipeline.tweakreg - INFO -\r\n2018-07-20 13:51:18,521 - stpipe.Image3Pipeline.tweakreg - INFO - XRMS: 0.389805    YRMS: 0.377301\r\n2018-07-20 13:51:18,521 - stpipe.Image3Pipeline.tweakreg - INFO - Final solution based on 288 objects.\r\n2018-07-20 13:51:18,645 - stpipe.Image3Pipeline.tweakreg - INFO -\r\n2018-07-20 13:51:18,645 - stpipe.Image3Pipeline.tweakreg - INFO - ***** jwst.tweakreg.imalign.align() ended on 2018-07-20 13:51:18.645435\r\n2018-07-20 13:51:18,645 - stpipe.Image3Pipeline.tweakreg - INFO - ***** jwst.tweakreg.imalign.align() TOTAL RUN TIME: 0:00:00.205163\r\n2018-07-20 13:51:18,645 - stpipe.Image3Pipeline.tweakreg - INFO -\r\n2018-07-20 13:51:18,647 - stpipe.Image3Pipeline.tweakreg - INFO - Step tweakreg done\r\n2018-07-20 13:51:18,647 - stpipe.Image3Pipeline - INFO - Matching sky values across all input images...\r\n2018-07-20 13:51:18,711 - stpipe.Image3Pipeline.skymatch - INFO - Step skymatch running with args (<ModelContainer>,).\r\n2018-07-20 13:51:18,711 - stpipe.Image3Pipeline.skymatch - INFO - Step skipped.\r\n2018-07-20 13:51:18,712 - stpipe.Image3Pipeline.skymatch - INFO - Step skymatch done\r\n2018-07-20 13:51:18,712 - stpipe.Image3Pipeline - INFO - Performing outlier detection on input images...\r\n2018-07-20 13:51:18,772 - stpipe.Image3Pipeline.outlier_detection - INFO - Step outlier_detection running with args (<ModelContainer>,).\r\n2018-07-20 13:51:18,772 - stpipe.Image3Pipeline.outlier_detection - INFO - Step skipped.\r\n2018-07-20 13:51:18,773 - stpipe.Image3Pipeline.outlier_detection - INFO - Step outlier_detection done\r\n2018-07-20 13:51:18,773 - stpipe.Image3Pipeline - INFO - Resampling images to final result...\r\n2018-07-20 13:51:18,832 - stpipe.Image3Pipeline.resample - INFO - Step resample running with args (<ModelContainer>,).\r\n2018-07-20 13:51:18,839 - stpipe.Image3Pipeline.resample - INFO - Drizpars reference file: /grp/crds/cache/references/jwst/jwst_nircam_drizpars_0001.fits\r\n2018-07-20 13:51:18,863 - stpipe.Image3Pipeline.resample - INFO - ResampleData - good_bits=4\r\n2018-07-20 13:51:18,863 - stpipe.Image3Pipeline.resample - INFO - ResampleData - single=False\r\n2018-07-20 13:51:18,863 - stpipe.Image3Pipeline.resample - INFO - ResampleData - blendheaders=True\r\n2018-07-20 13:51:18,863 - stpipe.Image3Pipeline.resample - INFO - ResampleData - pixfrac=1.0\r\n2018-07-20 13:51:18,863 - stpipe.Image3Pipeline.resample - INFO - ResampleData - kernel=square\r\n2018-07-20 13:51:18,863 - stpipe.Image3Pipeline.resample - INFO - ResampleData - fillval=INDEF\r\n2018-07-20 13:51:18,863 - stpipe.Image3Pipeline.resample - INFO - ResampleData - weight_type=exptime\r\n2018-07-20 13:51:19,799 - stpipe.Image3Pipeline.resample - INFO - Blending metadata for old_defaults\r\n2018-07-20 13:51:23,835 - stpipe.Image3Pipeline.resample - INFO - Drizzling (2048, 2048) --> (2248, 2290)\r\n2018-07-20 13:51:29,977 - stpipe.Image3Pipeline.resample - INFO - Drizzling (2048, 2048) --> (2248, 2290)\r\n2018-07-20 13:51:33,254 - stpipe.Image3Pipeline.resample - INFO - Step resample done\r\n2018-07-20 13:51:34,470 - stpipe.Image3Pipeline - INFO - Saved model in old_defaults_i2d.fits\r\n2018-07-20 13:51:34,470 - stpipe.Image3Pipeline - INFO - Creating source catalog...\r\n2018-07-20 13:51:34,590 - stpipe.Image3Pipeline.source_catalog - INFO - Step source_catalog running with args (<DrizProductModel(2248, 2290) from old_defaults_i2d.fits>,).\r\n2018-07-20 13:51:34,656 - stpipe.Image3Pipeline.source_catalog - WARNING - /user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/jwst-0.9.7move.dev69_g844bc17f-py3.6-linux-x86_64.egg/jwst/source_catalog/source_catalog.py:98: AstropyDeprecationWarning: \"iters\" was deprecated in version 3.1 and will be removed in a future version. Use argument \"maxiters\" instead.\r\n  model.data, mask=mask, sigma=3.0, iters=10)2018-07-20 13:51:36,597 - stpipe.Image3Pipeline.source_catalog - WARNING - /user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/astropy/io/fits/card.py:979: VerifyWarning: Card is too long, comment will be truncated.\r\n  VerifyWarning)2018-07-20 13:51:39,876 - stpipe.Image3Pipeline.source_catalog - INFO - Detected 1136 sources\r\n2018-07-20 13:51:39,877 - stpipe.Image3Pipeline.source_catalog - INFO - Step source_catalog done\r\n2018-07-20 13:51:39,877 - stpipe.Image3Pipeline - INFO - Step Image3Pipeline done\r\n{code}\r\n \r\n\r\nHowever, if I re-run the simulated slope images through the Image2 pipeline and run the new *cal.fits files through Image3, it breaks during tweakreg when trying to compute initial guesses for the X and Y shifts:\r\n\r\n \r\n{code:java}\r\nIn [6]: image3 = calwebb_image3.Image3Pipeline()\r\n2018-07-20 13:52:01,920 - stpipe.Image3Pipeline - INFO - Image3Pipeline instance created.\r\n2018-07-20 13:52:01,927 - stpipe.Image3Pipeline.tweakreg - INFO - TweakRegStep instance created.\r\n2018-07-20 13:52:01,933 - stpipe.Image3Pipeline.skymatch - INFO - SkyMatchStep instance created.\r\n2018-07-20 13:52:01,939 - stpipe.Image3Pipeline.outlier_detection - INFO - OutlierDetectionStep instance created.\r\n2018-07-20 13:52:01,944 - stpipe.Image3Pipeline.resample - INFO - ResampleStep instance created.\r\n2018-07-20 13:52:01,948 - stpipe.Image3Pipeline.source_catalog - INFO - SourceCatalogStep instance created.In [7]: image3.skymatch.skip = TrueIn [8]: image3.outlier_detection.skip = TrueIn [9]: image3.run(\"image3_new_defaults_asn.json\")\r\n2018-07-20 13:52:17,102 - stpipe.Image3Pipeline - INFO - Step Image3Pipeline running with args ('image3_new_defaults_asn.json',).\r\n2018-07-20 13:52:18,092 - stpipe.Image3Pipeline - INFO - Prefetching reference files for dataset: 'new_V54321001002P0000000001109_A1_F150W_cal.fits' reftypes = ['drizpars']\r\n2018-07-20 13:52:18,101 - stpipe.Image3Pipeline - INFO - Prefetch for DRIZPARS reference file is '/grp/crds/cache/references/jwst/jwst_nircam_drizpars_0001.fits'.\r\n2018-07-20 13:52:18,931 - stpipe.Image3Pipeline - INFO - Prefetching reference files for dataset: 'new_V54321001002P0000000001108_A1_F150W_cal.fits' reftypes = ['drizpars']\r\n2018-07-20 13:52:18,940 - stpipe.Image3Pipeline - INFO - Prefetch for DRIZPARS reference file is '/grp/crds/cache/references/jwst/jwst_nircam_drizpars_0001.fits'.\r\n2018-07-20 13:52:18,941 - stpipe.Image3Pipeline - INFO - Starting calwebb_image3 ...\r\n2018-07-20 13:52:19,930 - stpipe.Image3Pipeline - INFO - Aligning input images...\r\n2018-07-20 13:52:19,994 - stpipe.Image3Pipeline.tweakreg - INFO - Step tweakreg running with args (<ModelContainer>,).\r\n2018-07-20 13:52:19,996 - stpipe.Image3Pipeline.tweakreg - WARNING - /user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/photutils/detection/core.py:97: AstropyDeprecationWarning: \"iters\" was deprecated in version 3.1 and will be removed in a future version. Use argument \"maxiters\" instead.\r\n  iters=sigclip_iters)2018-07-20 13:52:26,658 - stpipe.Image3Pipeline.tweakreg - INFO - Detected 2246 sources in new_V54321001002P0000000001109_A1_F150W_cal.fits.\r\n2018-07-20 13:52:26,660 - stpipe.Image3Pipeline.tweakreg - WARNING - /user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/photutils/detection/core.py:97: AstropyDeprecationWarning: \"iters\" was deprecated in version 3.1 and will be removed in a future version. Use argument \"maxiters\" instead.\r\n  iters=sigclip_iters)2018-07-20 13:52:33,317 - stpipe.Image3Pipeline.tweakreg - INFO - Detected 2512 sources in new_V54321001002P0000000001108_A1_F150W_cal.fits.\r\n2018-07-20 13:52:35,084 - stpipe.Image3Pipeline.tweakreg - INFO -\r\n2018-07-20 13:52:35,085 - stpipe.Image3Pipeline.tweakreg - INFO - ***** jwst.tweakreg.imalign.align() started on 2018-07-20 13:52:35.084777\r\n2018-07-20 13:52:35,085 - stpipe.Image3Pipeline.tweakreg - INFO -       Version 0.9.3 (10-January-2018)\r\n2018-07-20 13:52:35,085 - stpipe.Image3Pipeline.tweakreg - INFO -\r\n2018-07-20 13:52:35,085 - stpipe.Image3Pipeline.tweakreg - INFO - Selected image 'new_V54321001002P0000000001109_A1_F150W_cal.fits' as reference image\r\n2018-07-20 13:52:35,124 - stpipe.Image3Pipeline.tweakreg - INFO - Aligning image catalog 'new_V54321001002P0000000001108_A1_F150W_cal.fits' to the reference catalog.\r\n2018-07-20 13:52:35,158 - stpipe.Image3Pipeline.tweakreg - INFO - Matching sources from 'new_V54321001002P0000000001108_A1_F150W_cal.fits' with sources from reference image 'new_V54321001002P0000000001109_A1_F150W_cal.fits'\r\n2018-07-20 13:52:35,158 - stpipe.Image3Pipeline.tweakreg - INFO - Computing initial guess for X and Y shifts...\r\n! WARNING: Clipped data falls within 1 histogram bin\r\n! WARNING: Clipped data falls within 1 histogram bin\r\n! WARNING: Clipped data falls within 1 histogram bin\r\n! WARNING: Clipped data falls within 1 histogram bin\r\n2018-07-20 13:52:35,179 - stpipe.Image3Pipeline.tweakreg - WARNING - No valid shift found within a search radius of 10 pixels.\r\n2018-07-20 13:52:35,184 - stpipe.Image3Pipeline.tweakreg - INFO - Found 0 matches for 'new_V54321001002P0000000001108_A1_F150W_cal.fits'...\r\n2018-07-20 13:52:35,185 - stpipe.Image3Pipeline.tweakreg - WARNING - The number of sources for the fit < number of clipping iterations.\r\n2018-07-20 13:52:35,185 - stpipe.Image3Pipeline.tweakreg - WARNING - Resetting number of clipping iterations to 0.\r\n2018-07-20 13:52:35,185 - stpipe.Image3Pipeline.tweakreg - INFO - Performing 'general' fit\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-9-d623370b6821> in <module>()\r\n----> 1 image3.run(\"image3_new_defaults_asn.json\")/user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/jwst-0.9.7move.dev69_g844bc17f-py3.6-linux-x86_64.egg/jwst/stpipe/step.py in run(self, *args)\r\n    398             else:\r\n    399                 try:\r\n--> 400                     step_result = self.process(*args)\r\n    401                 except TypeError as e:\r\n    402                     if \"process() takes exactly\" in str(e):/user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/jwst-0.9.7move.dev69_g844bc17f-py3.6-linux-x86_64.egg/jwst/pipeline/calwebb_image3.py in process(self, input)\r\n     68\r\n     69             self.log.info(\"Aligning input images...\")\r\n---> 70             input_models = self.tweakreg(input_models)\r\n     71\r\n     72             self.log.info(\"Matching sky values across all input images...\")/user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/jwst-0.9.7move.dev69_g844bc17f-py3.6-linux-x86_64.egg/jwst/stpipe/step.py in run(self, *args)\r\n    398             else:\r\n    399                 try:\r\n--> 400                     step_result = self.process(*args)\r\n    401                 except TypeError as e:\r\n    402                     if \"process() takes exactly\" in str(e):/user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/jwst-0.9.7move.dev69_g844bc17f-py3.6-linux-x86_64.egg/jwst/tweakreg/tweakreg_step.py in process(self, input)\r\n    140             fitgeom=self.fitgeometry,\r\n    141             nclip=self.nclip,\r\n--> 142             sigma=self.sigma\r\n    143         )\r\n    144/user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/jwst-0.9.7move.dev69_g844bc17f-py3.6-linux-x86_64.egg/jwst/tweakreg/imalign.py in align(imcat, refcat, enforce_user_order, expand_refcat, minobj, searchrad, use2dhist, separation, tolerance, xoffset, yoffset, fitgeom, nclip, sigma)\r\n    213             fitgeom=fitgeom,\r\n    214             nclip=nclip,\r\n--> 215             sigma=sigma\r\n    216         )\r\n    217         aligned_imcat.append(current_imcat)/user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/jwst-0.9.7move.dev69_g844bc17f-py3.6-linux-x86_64.egg/jwst/tweakreg/wcsimage.py in align_to_ref(self, refcat, minobj, searchrad, separation, use2dhist, xoffset, yoffset, tolerance, fitgeom, nclip, sigma)\r\n   1255                        tolerance=tolerance)\r\n   1256         fit = self.fit2ref(refcat=refcat, tanplane_wcs=tanplane_wcs,\r\n-> 1257                            fitgeom=fitgeom, nclip=nclip, sigma=sigma)\r\n   1258         self.apply_affine_to_wcs(\r\n   1259             tanplane_wcs=tanplane_wcs,/user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/jwst-0.9.7move.dev69_g844bc17f-py3.6-linux-x86_64.egg/jwst/tweakreg/wcsimage.py in fit2ref(self, refcat, tanplane_wcs, fitgeom, nclip, sigma)\r\n   1116         fit = linearfit.iter_linear_fit(\r\n   1117             refxy, im_xyref, fitgeom=fitgeom,\r\n-> 1118             nclip=nclip, sigma=sigma, center=(0, 0)\r\n   1119         )\r\n   1120/user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/jwst-0.9.7move.dev69_g844bc17f-py3.6-linux-x86_64.egg/jwst/tweakreg/linearfit.py in iter_linear_fit(xy, uv, xyindx, uvindx, xyorig, uvorig, fitgeom, nclip, sigma, center)\r\n     58     uv -= center\r\n     59\r\n---> 60     fit = linear_fit(xy, uv, fitgeom=fitgeom, verbose=True)\r\n     61\r\n     62     npts = xy.shape[0]/user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/jwst-0.9.7move.dev69_g844bc17f-py3.6-linux-x86_64.egg/jwst/tweakreg/linearfit.py in linear_fit(xy, uv, fitgeom, verbose)\r\n    120\r\n    121     if fitgeom == 'general':\r\n--> 122         result = fit_general(xy, uv)\r\n    123     elif fitgeom == 'rscale':\r\n    124         result = fit_rscale(xy, uv)/user/acanipe/miniconda3/envs/jwstdev07202018/lib/python3.6/site-packages/jwst-0.9.7move.dev69_g844bc17f-py3.6-linux-x86_64.egg/jwst/tweakreg/linearfit.py in fit_general(xy, uv)\r\n    310     \"\"\"\r\n    311     if len(xy) < 3:\r\n--> 312         raise ValueError(\"At least three points are required to find \"\r\n    313                          \"6-parameter linear affine transformations.\")\r\n    314ValueError: At least three points are required to find 6-parameter linear affine transformations.\r\n{code}\r\n \r\n\r\nI'm not sure what's causing the error in the new *cal.fits files. The data I used is here (along with a NOTES.txt file explaining the different exposures): /grp/jwst/wit/nircam/canipe/forBuild7.1Testing/jwst-0.9.7\r\n\r\n \r\n\r\nThank you,\r\n\r\nAlicia"},"comment":{"url":"https://api.github.com/repos/spacetelescope/jwst/issues/comments/406725693","html_url":"https://github.com/spacetelescope/jwst/issues/2271#issuecomment-406725693","issue_url":"https://api.github.com/repos/spacetelescope/jwst/issues/2271","id":406725693,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjcyNTY5Mw==","user":{"login":"stscijgbot","id":38438914,"node_id":"MDQ6VXNlcjM4NDM4OTE0","avatar_url":"https://avatars1.githubusercontent.com/u/38438914?v=4","gravatar_id":"","url":"https://api.github.com/users/stscijgbot","html_url":"https://github.com/stscijgbot","followers_url":"https://api.github.com/users/stscijgbot/followers","following_url":"https://api.github.com/users/stscijgbot/following{/other_user}","gists_url":"https://api.github.com/users/stscijgbot/gists{/gist_id}","starred_url":"https://api.github.com/users/stscijgbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stscijgbot/subscriptions","organizations_url":"https://api.github.com/users/stscijgbot/orgs","repos_url":"https://api.github.com/users/stscijgbot/repos","events_url":"https://api.github.com/users/stscijgbot/events{/privacy}","received_events_url":"https://api.github.com/users/stscijgbot/received_events","type":"User","site_admin":false},"created_at":"2018-07-20T21:00:25Z","updated_at":"2018-07-20T21:00:25Z","author_association":"COLLABORATOR","body":"Comment by Anton Koekemoer: It could help to link them, but could we perhaps not yet close this new issue (353) as duplicate, at least just for now please, until the different instrument teams and SSB have had a chance to look into it in a bit more detail? (just in case there are some separate issues involved, in addition to anything that may be in common)"}}
{"actor":{"display_login":"stscijgbot"}}