Repository: spacetelescope/rad (language: python)

Issue:
Level 3 MetaData Update
_Issue [RAD-138](https://jira.stsci.edu/browse/RAD-138) was created on JIRA by [Paul Huwe](https://jira.stsci.edu/secure/ViewProfile.jspa?name=phuwe):_

Update the Metadata for Level 3 to match:

<https://innerspace.stsci.edu/display/RI/L3+Metadata+Review>

 


Discussion / hints:
_Comment by [Eddie Schlafly](https://jira.stsci.edu/secure/ViewProfile.jspa?name=eschlafly) on [JIRA](https://jira.stsci.edu/browse/RAD-138?focusedCommentId=668050#comment-668050):_

Let's follow this spreadsheet

<https://docs.google.com/spreadsheets/d/1sBPQRQ1pobpd9dRwfD4iGE0VJGg3LRqQCfriNTX9laQ/edit?usp=sharing>

rather than the wiki page; the wiki page is a bit less concrete.

Fix patch:
diff --git a/CHANGES.rst b/CHANGES.rst
index adf438dc..49ea5b22 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,6 +1,8 @@
 0.18.1 (unreleased)
 -------------------
 
+- Added streamlined Level 3 Mosaic metadata schemas. [#334]
+
 - Remove the unused ``variance-1.0.0`` schema. [#344]
 
 - Add wcs tag to wfi_image and wfi_mosaic schemas. [#351]
diff --git a/src/rad/resources/manifests/datamodels-1.0.yaml b/src/rad/resources/manifests/datamodels-1.0.yaml
index f694575c..fd40518f 100644
--- a/src/rad/resources/manifests/datamodels-1.0.yaml
+++ b/src/rad/resources/manifests/datamodels-1.0.yaml
@@ -36,7 +36,7 @@ tags:
     Wfi level 2 image information
 - tag_uri: asdf://stsci.edu/datamodels/roman/tags/wfi_mosaic-1.0.0
   schema_uri: asdf://stsci.edu/datamodels/roman/schemas/wfi_mosaic-1.0.0
-  title: Wfi level 3 mosiac information
+  title: Wfi level 3 mosaic information
   description: |-
     Wfi level 3 mosaic information
 - tag_uri: asdf://stsci.edu/datamodels/roman/tags/wfi_mode-1.0.0
@@ -125,6 +125,26 @@ tags:
   title: Resample information
   description: |-
     Resample information
+- tag_uri: asdf://stsci.edu/datamodels/roman/tags/individual_image_meta-1.0.0
+  schema_uri: asdf://stsci.edu/datamodels/roman/schemas/individual_image_meta-1.0.0
+  title: Combined level 2 metadata
+  description: |-
+    Combined level 2 metadata
+- tag_uri: asdf://stsci.edu/datamodels/roman/tags/mosaic_basic-1.0.0
+  schema_uri: asdf://stsci.edu/datamodels/roman/schemas/mosaic_basic-1.0.0
+  title: Basic mosaic metadata keywords
+  description: |-
+    Basic mosaic metadata keywords
+- tag_uri: asdf://stsci.edu/datamodels/roman/tags/mosaic_associations-1.0.0
+  schema_uri: asdf://stsci.edu/datamodels/roman/schemas/mosaic_associations-1.0.0
+  title: Mosaic associations metadata keywords
+  description: |-
+    Mosaic associations metadata keywords
+- tag_uri: asdf://stsci.edu/datamodels/roman/tags/mosaic_wcsinfo-1.0.0
+  schema_uri: asdf://stsci.edu/datamodels/roman/schemas/mosaic_wcsinfo-1.0.0
+  title: Mosaic WCS parameters
+  description: |-
+    Mosaic WCS parameters
 # Reference Modules
 - tag_uri: asdf://stsci.edu/datamodels/roman/tags/reference_files/dark-1.0.0
   schema_uri: asdf://stsci.edu/datamodels/roman/schemas/reference_files/dark-1.0.0
diff --git a/src/rad/resources/schemas/individual_image_meta-1.0.0.yaml b/src/rad/resources/schemas/individual_image_meta-1.0.0.yaml
new file mode 100644
index 00000000..edeeb7df
--- /dev/null
+++ b/src/rad/resources/schemas/individual_image_meta-1.0.0.yaml
@@ -0,0 +1,83 @@
+%YAML 1.1
+---
+$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
+id: asdf://stsci.edu/datamodels/roman/schemas/individual_image_meta-1.0.0
+
+title: Combined level 2 metadata
+
+type: object
+properties:
+  basic:
+    description: |
+      Table of basic level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  aperture:
+    description: |
+      Table of aperture level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  cal_step:
+    description: |
+      Table of cal_step level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  coordinates:
+    description: |
+      Table of coordinates level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  ephemeris:
+    description: |
+      Table of ephemeris level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  exposure:
+    description: |
+      Table of exposure level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  guidestar:
+    description: |
+      Table of guidestar level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  instrument:
+    description: |
+      Table of instrument level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  observation:
+    description: |
+      Table of observation level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  photometry:
+    description: |
+      Table of photometry level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  pointing:
+    description: |
+      Table of pointing level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  program:
+    description: |
+      Table of program level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  ref_file:
+    description: |
+      Table of ref_file level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  target:
+    description: |
+      Table of target level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  velocity_aberration:
+    description: |
+      Table of velocity_aberration level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  visit:
+    description: |
+      Table of visit level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+  wcsinfo:
+    description: |
+      Table of wcsinfo level 2 metadata.
+    tag: tag:astropy.org:astropy/table/table-1.1.0
+flowStyle: block
+propertyOrder: [basic, aperture, cal_step, coordinates, ephemeris,
+exposure, guidestar, instrument, observation, photometry,
+pointing, program, ref_file, target, velocity_aberration,
+visit, wcsinfo]
+...
diff --git a/src/rad/resources/schemas/mosaic_associations-1.0.0.yaml b/src/rad/resources/schemas/mosaic_associations-1.0.0.yaml
new file mode 100644
index 00000000..98b957f0
--- /dev/null
+++ b/src/rad/resources/schemas/mosaic_associations-1.0.0.yaml
@@ -0,0 +1,20 @@
+%YAML 1.1
+---
+$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
+id: asdf://stsci.edu/datamodels/roman/schemas/mosaic_associations-1.0.0
+
+title: Association information for mosaic
+type: object
+
+properties:
+  pool_name:
+    title: Pool name
+    type: string
+  table_name:
+    title: Table name
+    type: string
+
+propertyOrder: [ pool_name, table_name ]
+flowStyle: block
+required: [ pool_name, table_name ]
+...
diff --git a/src/rad/resources/schemas/mosaic_basic-1.0.0.yaml b/src/rad/resources/schemas/mosaic_basic-1.0.0.yaml
new file mode 100644
index 00000000..efe6edfa
--- /dev/null
+++ b/src/rad/resources/schemas/mosaic_basic-1.0.0.yaml
@@ -0,0 +1,173 @@
+%YAML 1.1
+---
+$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
+id: asdf://stsci.edu/datamodels/roman/schemas/mosaic_basic-1.0.0
+
+title: Basic mosaic metadata keywords
+type: object
+
+properties:
+  time_first_mjd:
+    title: Earliest component image start time in the mosaic in MJD
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.time_first_mjd]
+  time_last_mjd:
+    title: Latest component image end time in the mosaic in MJD
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.time_last_mjd]
+  time_mean_mjd:
+    title: Mean of mid-times of component images in MJD
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.time_mean_mjd]
+  max_exposure_time:
+    title: Maximum component image exposure time in MJD
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.max_exposure_time]
+  mean_exposure_time:
+    title: Mean of component image exposure times in MJD
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.mean_exposure_time]
+  model_type:
+    title: Type of data model
+    type: string
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: nvarchar(50)
+      destination: [ScienceCommon.model_type, GuideWindow.model_type]
+  visit:
+    title: Visit number within the observation, defined range of
+           values is 1..999; included in obs_id and visit_id as 'VVV'.
+    type: integer
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: smallint
+      destination: [ScienceCommon.visit]
+  segment:
+    title: Segment Number within pass, defined range is 1..999;
+           included in obs_id and visit_id as 'SSS'.
+    type: integer
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: smallint
+      destination: [ScienceCommon.segment]
+  pass:
+    title: Pass number within execution plan, defined range is 1..999;
+           included in obs_id and visit_id as 'AA'.
+    type: integer
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: smallint
+      destination: [ScienceCommon.pass]
+  program:
+    title: Program number, defined range is 1..18445;
+           included in obs_id and visit_id as 'PPPPP'.
+    type: string
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: int
+      destination: [ScienceCommon.program]
+  survey:
+    title: Observation Survey
+    type: string
+    archive_catalog:
+      datatype: nvarchar(15)
+      destination: [ScienceCommon.survey]
+  optical_element:
+    $ref: wfi_optical_element-1.0.0
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: nvarchar(20)
+      destination: [ScienceCommon.optical_element]
+  instrument:
+    title: Instrument used to acquire the data
+    type: string
+    enum: [WFI]
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: nvarchar(5)
+      destination: [ScienceCommon.instrument_name]
+  telescope:
+    tag: asdf://stsci.edu/datamodels/roman/tags/telescope-1.0.0
+  location_name:
+    title: Name of the skycell containing the mosaic
+    type: string
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: nvarchar(25)
+      destination: [ScienceCommon.location_name]
+  product_type:
+    title: Association product type
+    type: string
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: nvarchar(25)
+      destination: [ScienceCommon.product_type]
+  filename:
+    tag: asdf://stsci.edu/datamodels/roman/tags/filename-1.0.0
+propertyOrder: [ time_first_mjd, time_last_mjd, time_mean_mjd, max_exposure_time,
+                 mean_exposure_time, model_type, visit, segment, pass, program,
+                 survey, optical_element, instrument, telescope, location_name, product_type,
+                 filename ]
+flowStyle: block
+required: [ time_first_mjd, time_last_mjd, time_mean_mjd, max_exposure_time,
+            mean_exposure_time, model_type, visit, segment, pass, program,
+            survey, optical_element, instrument, telescope, location_name, product_type,
+            filename ]
+...
diff --git a/src/rad/resources/schemas/mosaic_wcsinfo-1.0.0.yaml b/src/rad/resources/schemas/mosaic_wcsinfo-1.0.0.yaml
new file mode 100644
index 00000000..0964528e
--- /dev/null
+++ b/src/rad/resources/schemas/mosaic_wcsinfo-1.0.0.yaml
@@ -0,0 +1,248 @@
+%YAML 1.1
+---
+$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0
+id: asdf://stsci.edu/datamodels/roman/schemas/mosaic_wcsinfo-1.0.0
+
+title: Mosaic WCS parameters
+type: object
+
+properties:
+  ra_ref:
+    title: "[deg] Projection center RA"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.ra_ref]
+  dec_ref:
+    title: "[deg] Projection center Dec"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.dec_ref]
+  x_ref:
+    title: Pixel number in mosaic corresponding to projection center ra/dec
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.x_ref]
+  y_ref:
+    title: Pixel number in mosaic corresponding to projection center ra/dec
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.y_ref]
+  rotation_matrix:
+    title: 2x2 rotation matrix
+    type: array
+    items:
+      type: array
+      items:
+        type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: nvarchar(3500)
+      destination: [ScienceCommon.rotation_matrix]
+  pixel_scale:
+    title: Pixel scale at projection center
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.pixel_scale]
+  pixel_scale_local:
+    title: Pixel scale at image center
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.pixel_scale_local]
+  projection:
+    title: Projection type and order
+    type: string
+    enum: ["TAN"]
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: nvarchar(50)
+      destination: [ScienceCommon.projection]
+  s_region:
+    title: spatial extent of the observation
+    type: string
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: nvarchar(max)
+      destination: [ScienceCommon.s_region]
+  pixel_shape:
+    title: Shape of image (nx, ny)
+    type: array
+    items:
+      type: integer
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: nvarchar(50)
+      destination: [ScienceCommon.pixel_shape]
+  ra_center:
+    title: "[deg] Mosaic center RA"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.ra_center]
+  dec_center:
+    title: "[deg] Mosaic center Dec"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.dec_center]
+  ra_corn1:
+    title: "[deg] Mosaic corner 1 RA"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.ra_corn1]
+  dec_corn1:
+    title: "[deg] Mosaic corner 1 Dec"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.dec_corn1]
+  ra_corn2:
+    title: "[deg] Mosaic corner 2 RA"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.ra_corn2]
+  dec_corn2:
+    title: "[deg] Mosaic corner 2 Dec"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.dec_corn2]
+  ra_corn3:
+    title: "[deg] Mosaic corner 3 RA"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.ra_corn3]
+  dec_corn3:
+    title: "[deg] Mosaic corner 3 Dec"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.dec_corn3]
+  ra_corn4:
+    title: "[deg] Mosaic corner 4 RA"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.ra_corn4]
+  dec_corn4:
+    title: "[deg] Mosaic corner 4 Dec"
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.dec_corn4]
+  orientat_local:
+    title: Angle between north and the y axis of the projection at the mosaic
+      center, turning positive in the direction of increasing right ascenscion.
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.orientat_local]
+  orientat:
+    title: Angle between north and the y axis of the projection at the projection
+      center, turning positive in the direction of increasing right ascenscion.
+    type: number
+    sdf:
+      special_processing: VALUE_REQUIRED
+      source:
+        origin: TBD
+    archive_catalog:
+      datatype: float
+      destination: [ScienceCommon.orientat]
+propertyOrder: [ ra_ref, dec_ref, x_ref, y_ref, rotation_matrix, pixel_scale,
+                 pixel_scale_local, projection, s_region, pixel_shape, ra_center,
+                 dec_center, ra_corn1, dec_corn1, ra_corn2, dec_corn2, ra_corn3,
+                 dec_corn3, ra_corn4, dec_corn4, orientat_local, orientat ]
+flowStyle: block
+required: [ ra_ref, dec_ref, x_ref, y_ref, rotation_matrix, pixel_scale,
+            pixel_scale_local, projection, s_region, pixel_shape, ra_center,
+            dec_center, ra_corn1, dec_corn1, ra_corn2, dec_corn2, ra_corn3,
+            dec_corn3, ra_corn4, dec_corn4, orientat_local, orientat ]
+...
diff --git a/src/rad/resources/schemas/resample-1.0.0.yaml b/src/rad/resources/schemas/resample-1.0.0.yaml
index f6796f3f..70ddea7b 100644
--- a/src/rad/resources/schemas/resample-1.0.0.yaml
+++ b/src/rad/resources/schemas/resample-1.0.0.yaml
@@ -24,5 +24,5 @@ properties:
     enum: ["exptime", "ivm"]
 propertyOrder: [pixel_scale_ratio, pixfrac, pointings, product_exposure_time, weight_type]
 flowStyle: block
-required: [pixel_scale_ratio, pixfrac, pointings, product_exposure_time, weight_type]
+required: [pixel_scale_ratio, pixfrac, weight_type]
 ...
diff --git a/src/rad/resources/schemas/wfi_mosaic-1.0.0.yaml b/src/rad/resources/schemas/wfi_mosaic-1.0.0.yaml
index 65fb0ab4..ad4620d2 100644
--- a/src/rad/resources/schemas/wfi_mosaic-1.0.0.yaml
+++ b/src/rad/resources/schemas/wfi_mosaic-1.0.0.yaml
@@ -7,20 +7,31 @@ title: |
   The schema for WFI Level 3 mosaics.
 
 datamodel_name: MosaicModel
-
 archive_meta: None
 
 type: object
 properties:
   meta:
     allOf:
-      - $ref: common-1.0.0
       - type: object
         properties:
-          # Placeholder for 'asn' schema tag
           # Placeholder for 'dither' schema tag
+          asn:
+            tag: asdf://stsci.edu/datamodels/roman/tags/mosaic_associations-1.0.0
+          basic:
+            tag: asdf://stsci.edu/datamodels/roman/tags/mosaic_basic-1.0.0
+          cal_step:
+            tag: asdf://stsci.edu/datamodels/roman/tags/cal_step-1.0.0
+          coordinates:
+            tag: asdf://stsci.edu/datamodels/roman/tags/coordinates-1.0.0
+          individual_image_meta:
+            tag: asdf://stsci.edu/datamodels/roman/tags/individual_image_meta-1.0.0
           photometry:
             tag: asdf://stsci.edu/datamodels/roman/tags/photometry-1.0.0
+          program:
+            tag: asdf://stsci.edu/datamodels/roman/tags/program-1.0.0
+          ref_file:
+            tag: asdf://stsci.edu/datamodels/roman/tags/ref_file-1.0.0
           resample:
             tag: asdf://stsci.edu/datamodels/roman/tags/resample-1.0.0
           wcs:
@@ -28,7 +39,9 @@ properties:
             anyOf:
               - tag: tag:stsci.edu:gwcs/wcs-*
               - type: "null"
-        required: [photometry, wcs]
+          wcsinfo:
+            tag: asdf://stsci.edu/datamodels/roman/tags/mosaic_wcsinfo-1.0.0
+        required: [asn, basic, cal_step, photometry, program, resample, wcs, wcsinfo]
   data:
     title: Science data, excluding border reference pixels.
     tag: tag:stsci.edu:asdf/unit/quantity-1.1.0
@@ -38,8 +51,8 @@ properties:
         datatype: float32
         ndim: 2
       unit:
-        tag: tag:astropy.org:astropy/units/unit-1.0.0
-        enum: ["electron / s"]
+        tag: tag:stsci.edu:asdf/unit/unit-1.0.0
+        enum: ["MJy.sr**-1"]
   err:
     tag: tag:stsci.edu:asdf/unit/quantity-1.1.0
     properties:
@@ -48,8 +61,8 @@ properties:
         datatype: float32
         ndim: 2
       unit:
-        tag: tag:astropy.org:astropy/units/unit-1.0.0
-        enum: ["electron / s"]
+        tag: tag:stsci.edu:asdf/unit/unit-1.0.0
+        enum: ["MJy.sr**-1"]
   context:
     tag: tag:stsci.edu:asdf/core/ndarray-1.0.0
     datatype: uint32
@@ -66,8 +79,8 @@ properties:
         datatype: float32
         ndim: 2
       unit:
-        tag: tag:astropy.org:astropy/units/unit-1.0.0
-        enum: ["electron2 / s2"]
+        tag: tag:stsci.edu:asdf/unit/unit-1.0.0
+        enum: ["MJy**2.sr**-2"]
   var_rnoise:
     tag: tag:stsci.edu:asdf/unit/quantity-1.1.0
     properties:
@@ -76,8 +89,8 @@ properties:
         datatype: float32
         ndim: 2
       unit:
-        tag: tag:astropy.org:astropy/units/unit-1.0.0
-        enum: ["electron2 / s2"]
+        tag: tag:stsci.edu:asdf/unit/unit-1.0.0
+        enum: ["MJy**2.sr**-2"]
   var_flat:
     tag: tag:stsci.edu:asdf/unit/quantity-1.1.0
     properties:
@@ -86,8 +99,8 @@ properties:
         datatype: float32
         ndim: 2
       unit:
-        tag: tag:astropy.org:astropy/units/unit-1.0.0
-        enum: ["electron2 / s2"]
+        tag: tag:stsci.edu:asdf/unit/unit-1.0.0
+        enum: ["MJy**2.sr**-2"]
   cal_logs:
     tag: asdf://stsci.edu/datamodels/roman/tags/cal_logs-1.0.0
 propertyOrder: [meta, data, context, err, weight, var_poisson, var_rnoise, var_flat,


Test patch:
diff --git a/tests/test_schemas.py b/tests/test_schemas.py
index 19216c23..6d16a098 100644
--- a/tests/test_schemas.py
+++ b/tests/test_schemas.py
@@ -51,6 +51,7 @@ def valid_tag_uris(manifest):
             "tag:stsci.edu:asdf/unit/quantity-1.1.0",
             "tag:stsci.edu:asdf/unit/unit-1.0.0",
             "tag:astropy.org:astropy/units/unit-1.0.0",
+            "tag:astropy.org:astropy/table/table-1.1.0",
             "tag:stsci.edu:gwcs/wcs-1.0.0",
             "tag:stsci.edu:gwcs/wcs-1.1.0",
             "tag:stsci.edu:gwcs/wcs-1.2.0",