You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should verify that we can reproduce the L3 WCS from the L3 metadata, when creating L3 files on sky cells and on inferred projections (i.e., no explicit sky cell, letting resample pick what WCS it wants to resample onto).
produces a different rotation matrix in the two blocks of the try statement, differing by the sign of rotation_matrix[0][0], which suggests to me that we may currently be encoding whether the RA direction increases to the +x or -x direction in the rotation matrix. That hadn't previously been obvious to me but doesn't seem crazy.
The goal is that we should be able to feed the L3 metadata to something like
after appropriate translation of the metadata keywords into record keywords that that function expects, and get out a WCS that is a close match for the actual WCS.
The text was updated successfully, but these errors were encountered:
@schlafly I believe an executive decision will need to be made. The situation is as follows:
First, the routine generate_tan_wcs, when given the parameters of the skycell used from the patches table, creates a wcs that is equivalent to the MosaicModel.meta.wcs that is created by the resample task.
However, the information that is in MosaicModel.meta.wcsinfo cannot simply be passed into generate_tan_wcs. The wcsinfo has some dependency on how the resample's created wcs is defined. This is where the executive decision is needed.
If one desires the ability to provide the skycell information and generate the appropriate wcs, the skycell parameters, as used from the patches table, should be included in the MosaicModel.meta somewhere. Unless I have missed it, the only information about the skycell used by MosaicPipeline is meta.basic.location_name. The information found in the patches table for that location name should be placed in the meta.
If one desires a function to use the existing MosaicModel.meta.wcsinfo, a new function, such as wcs_from_mosaic_wcsinfo will need be created.
Or, both can be done. Note that wcsinfo should simply not be replaced by the skycell parameters since the wcsinfo is generated directly from the actual wcs created, which may have nothing to do with any skycell.
Until further notice, I am going to first create this wcs_from_mosaic_wcsinfo function. That seems like something that should simply exist.
We should verify that we can reproduce the L3 WCS from the L3 metadata, when creating L3 files on sky cells and on inferred projections (i.e., no explicit sky cell, letting resample pick what WCS it wants to resample onto).
@mairanteodoro found that this block of code
romancal/romancal/resample/resample.py
Lines 820 to 829 in e741d19
produces a different rotation matrix in the two blocks of the try statement, differing by the sign of rotation_matrix[0][0], which suggests to me that we may currently be encoding whether the RA direction increases to the +x or -x direction in the rotation matrix. That hadn't previously been obvious to me but doesn't seem crazy.
The goal is that we should be able to feed the L3 metadata to something like
romancal/romancal/pipeline/mosaic_pipeline.py
Lines 154 to 191 in b652ef8
after appropriate translation of the metadata keywords into record keywords that that function expects, and get out a WCS that is a close match for the actual WCS.
The text was updated successfully, but these errors were encountered: