Skip to content

Support roman level 2 wcs #159

@braingram

Description

@braingram

This is more complicated than the level 3/mosaic wcs and will require supporting:

  • wider selection of transforms (the level 3 only uses fitswcs_imaging)
  • transform combination via composition, concatenation, etc
  • wcs evaluation since we can't map the level 2 wcs to a fits wcs

Using example files from roman build 21 (romancal version 0.22.0) the level 2 wcs contains the following tags:

'tag:astropy.org:astropy/coordinates/frames/icrs-1.1.0',
 'tag:stsci.edu:asdf/core/ndarray-1.1.0',
 'tag:stsci.edu:asdf/transform/affine-1.4.0',
 'tag:stsci.edu:asdf/transform/compose-1.3.0',
 'tag:stsci.edu:asdf/transform/concatenate-1.3.0',
 'tag:stsci.edu:asdf/transform/constant-1.5.0',
 'tag:stsci.edu:asdf/transform/divide-1.3.0',
 'tag:stsci.edu:asdf/transform/identity-1.3.0',
 'tag:stsci.edu:asdf/transform/polynomial-1.2.0',
 'tag:stsci.edu:asdf/transform/property/bounding_box-1.1.0',
 'tag:stsci.edu:asdf/transform/remap_axes-1.4.0',
 'tag:stsci.edu:asdf/transform/rotate_sequence_3d-1.1.0',
 'tag:stsci.edu:asdf/transform/scale-1.3.0',
 'tag:stsci.edu:asdf/transform/shift-1.3.0',
 'tag:stsci.edu:asdf/unit/unit-1.0.0',
 'tag:stsci.edu:gwcs/celestial_frame-1.2.0',
 'tag:stsci.edu:gwcs/frame2d-1.2.0',
 'tag:stsci.edu:gwcs/spherical_cartesian-1.3.0',
 'tag:stsci.edu:gwcs/step-1.3.0',
 'tag:stsci.edu:gwcs/wcs-1.4.0'

The same collection of tags is used for the isolated "_wcs" files that contain both a L1 and L2 wcs (after correcting the pointing by matching sources to gaia). These include:

  • top level objects (wcs and step)
  • frames (celestial_frame, frame2d, icrs)
  • transforms (affine, compose, concatenate, constant, divide, identity, polynomial, remap_axes, rotate_sequence_3d, scale, shift, spherical_cartesian)
  • misc (bounding_box, unit)

In addition to supporting the above (to allow us to evaluate the transform) we'll need some user facing WCS API. Perhaps we can model this off of wcslib or some other existing FITS WCS library to make it easier for users to adopt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions