Ticket #259 (closed defect: fixed)

Opened 12 years ago

Last modified 11 years ago

fw WCS cannot read CFHT data

Reported by: rowen Owned by: TimAxelrod
Priority: normal Milestone:
Component: fw Keywords:
Cc: ktl, becker Blocked By:
Blocking: Project: LSST
Version Number: 3456
How to repeat:

If you can run the imageproc sample pipelines:

  • python pipeline/examples/runSubtractPipeline.py $FWDATA_DIR/CFHT/D4/cal-53535-i-797722_1 $FWDATA_DIRa/CFHT/D4/cal-53535-i-797722_1_tmpl

You can see evidence of this problem (but no traceback) if you work directly with Exposure and import either file noted above first as a MaskedImageF and then create an ExposureF from that. Note that the ExposureF has no WCS.

Description

fw WCS chokes on the wcs data in some CFHT example images when it tries to run wcsfix on them. As a result the image subtraction input stage dies with

Traceback (most recent call last):
  File "/astro/users/rowen/code/dpstrunk/python/lsst/dps/Slice.py", line 244, in <module>
    pySlice.startStagesLoop()
  File "/astro/users/rowen/code/dpstrunk/python/lsst/dps/Slice.py", line 177, in startStagesLoop
    stageObject.process()
  File "/astro/users/rowen/code/dpstrunk/python/lsst/dps/IOStage.py", line 262, in process
    self._input()
  File "/astro/users/rowen/code/dpstrunk/python/lsst/dps/IOStage.py", line 336, in _input
    additionalData)
  File "/astro/net/lsst/Linux/mwi/2.0/python/lsst/mwi/persistence.py", line 1344, in unsafeRetrieve
    return _persistence.PersistenceSharedPtr_unsafeRetrieve(*args)
lsst.mwi.exceptions.LsstRuntime: Could not parse FITS WCS: wcsfix failed 
        0: 5 Invalid parameter value
        1: -1
        2: -1
        3: -1
        4: -1
        5: -2
:
    745: 0x977626c lsst::mwi::data::DataProperty [Runtime,  (children) ]
        747: 0x97769c4 lsst::mwi::data::DataProperty [NodeRuntime,  (children) ]

I recall a recent phone con where we agreed to not call wcsfix, presumably due to problems such as this. But I didn't see a Trac ticket on it. I would be happy to remove the call to wcsfix if that's all it takes.

Change History

comment:1 Changed 12 years ago by TimAxelrod

  • Status changed from new to assigned

comment:2 Changed 12 years ago by TimAxelrod

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed by r3511

comment:3 Changed 11 years ago by robyn

  • Milestone DC2 Integration deleted

Milestone DC2 Integration deleted

Note: See TracTickets for help on using tickets.