Skip to content

Instantly share code, notes, and snippets.

@braingram
Last active March 7, 2024 20:39
Show Gist options
  • Save braingram/c013949b5b384f169797a4889cca1e18 to your computer and use it in GitHub Desktop.
Save braingram/c013949b5b384f169797a4889cca1e18 to your computer and use it in GitHub Desktop.
basic
{"$schema": "asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0", "id": "asdf://stsci.edu/datamodels/roman/schemas/wfi_image-1.0.0", "title": "The Schema for WFI Level 2 Images.", "datamodel_name": "ImageModel", "archive_meta": "None", "type": "object", "properties": {"meta": {"allOf": [{"$schema": "asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0", "id": "asdf://stsci.edu/datamodels/roman/schemas/common-1.0.0", "title": "Common metadata properties", "allOf": [{"$schema": "asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0", "id": "asdf://stsci.edu/datamodels/roman/schemas/basic-1.0.0", "title": "Basic Information", "type": "object", "properties": {"calibration_software_version": {"title": "Calibration Software Version Number", "description": "The version number of the calibration software used in processing this\nfile.\n", "tag": "asdf://stsci.edu/datamodels/roman/tags/calibration_software_version-1.0.0"}, "filename": {"title": "File Name", "description": "The auto-generated name of this file.\n", "tag": "asdf://stsci.edu/datamodels/roman/tags/filename-1.0.0"}, "file_date": {"title": "File Creation Date", "description": "The date and time this file was created.\n", "tag": "asdf://stsci.edu/datamodels/roman/tags/file_date-1.0.0"}, "model_type": {"title": "Data Model Type", "description": "The type of data model contained in this file.\n", "tag": "asdf://stsci.edu/datamodels/roman/tags/model_type-1.0.0"}, "origin": {"title": "Institution / Organization Name", "description": "The name of the institution or organization responsible for creating this\nfile.\n", "tag": "asdf://stsci.edu/datamodels/roman/tags/origin-1.0.0"}, "prd_software_version": {"title": "SOC PRD Version Number", "description": "The Science Operations Center (SOC) Project Reference Database (PRD)\nversion number used in generating this file.\n", "tag": "asdf://stsci.edu/datamodels/roman/tags/prd_software_version-1.0.0"}, "sdf_software_version": {"title": "SDF Version Number", "description": "The version number of the Science Data Formatting (SDF) software used in\ngenerating this file.\n", "tag": "asdf://stsci.edu/datamodels/roman/tags/sdf_software_version-1.0.0"}, "telescope": {"title": "Telescope Name", "description": "The name of the telescope used to acquire the data.\n", "tag": "asdf://stsci.edu/datamodels/roman/tags/telescope-1.0.0"}}, "required": ["calibration_software_version", "filename", "file_date", "model_type", "origin", "prd_software_version", "sdf_software_version", "telescope"]}, {"type": "object", "properties": {"aperture": {"title": "Aperture Information", "tag": "asdf://stsci.edu/datamodels/roman/tags/aperture-1.0.0"}, "cal_step": {"title": "Tracker of Calibration Pipeline Steps", "tag": "asdf://stsci.edu/datamodels/roman/tags/cal_step-1.0.0"}, "coordinates": {"title": "Name Of The Coordinate Reference Frame", "tag": "asdf://stsci.edu/datamodels/roman/tags/coordinates-1.0.0"}, "ephemeris": {"title": "Ephemeris Data Information", "tag": "asdf://stsci.edu/datamodels/roman/tags/ephemeris-1.0.0"}, "exposure": {"title": "Exposure Information", "tag": "asdf://stsci.edu/datamodels/roman/tags/exposure-1.0.0"}, "guidestar": {"title": "Guide Star Window Information", "tag": "asdf://stsci.edu/datamodels/roman/tags/guidestar-1.0.0"}, "instrument": {"title": "WFI Observing Configuration", "tag": "asdf://stsci.edu/datamodels/roman/tags/wfi_mode-1.0.0"}, "observation": {"title": "Observation Identifiers", "tag": "asdf://stsci.edu/datamodels/roman/tags/observation-1.0.0"}, "pointing": {"title": "Spacecraft Pointing Information", "tag": "asdf://stsci.edu/datamodels/roman/tags/pointing-1.0.0"}, "program": {"title": "Program Information", "tag": "asdf://stsci.edu/datamodels/roman/tags/program-1.0.0"}, "ref_file": {"title": "Reference File Information", "tag": "asdf://stsci.edu/datamodels/roman/tags/ref_file-1.0.0"}, "target": {"title": "Target Information", "tag": "asdf://stsci.edu/datamodels/roman/tags/target-1.0.0"}, "velocity_aberration": {"title": "Velocity Aberration Correction Information", "tag": "asdf://stsci.edu/datamodels/roman/tags/velocity_aberration-1.0.0"}, "visit": {"title": "Visit Information", "tag": "asdf://stsci.edu/datamodels/roman/tags/visit-1.0.0"}, "wcsinfo": {"title": "World Coordinate System (WCS) Parameters", "tag": "asdf://stsci.edu/datamodels/roman/tags/wcsinfo-1.0.0"}}, "required": ["aperture", "cal_step", "coordinates", "ephemeris", "exposure", "guidestar", "instrument", "observation", "pointing", "program", "ref_file", "target", "velocity_aberration", "visit", "wcsinfo"]}]}, {"type": "object", "properties": {"wcs": {"title": "WCS object", "anyOf": [{"tag": "tag:stsci.edu:gwcs/wcs-*"}, {"type": "null"}]}, "photometry": {"tag": "asdf://stsci.edu/datamodels/roman/tags/photometry-1.0.0"}, "source_detection": {"tag": "asdf://stsci.edu/datamodels/roman/tags/source_detection-1.0.0"}}, "required": ["photometry", "wcs"]}]}, "data": {"title": "Science Data (electrons / s)", "description": "Science data, excluding border reference pixels.\n", "tag": "tag:stsci.edu:asdf/unit/quantity-1.*", "properties": {"value": {"tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "float32", "exact_datatype": true, "ndim": 2}, "unit": {"tag": "tag:astropy.org:astropy/units/unit-1.*", "enum": ["electron / s"]}}}, "dq": {"title": "Data Quality Flags", "description": "Data quality flags.\n", "tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "uint32", "exact_datatype": true, "ndim": 2}, "err": {"title": "Error (electrons / s)", "description": "Error in units of electrons per second.\n", "tag": "tag:stsci.edu:asdf/unit/quantity-1.*", "properties": {"value": {"tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "float32", "exact_datatype": true, "ndim": 2}, "unit": {"tag": "tag:astropy.org:astropy/units/unit-1.*", "enum": ["electron / s"]}}}, "var_poisson": {"title": "Poisson Variance (electrons^2 / s^2)", "description": "Poisson variance in units of electrons^2 / second^2.\n", "tag": "tag:stsci.edu:asdf/unit/quantity-1.*", "properties": {"value": {"tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "float32", "exact_datatype": true, "ndim": 2}, "unit": {"tag": "tag:astropy.org:astropy/units/unit-1.*", "enum": ["electron2 / s2"]}}}, "var_rnoise": {"title": "Read Noise (electrons^2 / s^2)", "description": "Read noise in units of electrons^2 / second^2.\n", "tag": "tag:stsci.edu:asdf/unit/quantity-1.*", "properties": {"value": {"tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "float32", "exact_datatype": true, "ndim": 2}, "unit": {"tag": "tag:astropy.org:astropy/units/unit-1.*", "enum": ["electron2 / s2"]}}}, "var_flat": {"title": "Variance for Estimate of Flat Pixel Flux (electrons^2 / s^2)", "description": "Variance for estimate of flat pixel flux in units of\nelectrons^2 / second^2.\n", "tag": "tag:stsci.edu:asdf/unit/quantity-1.*", "properties": {"value": {"tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "float32", "exact_datatype": true, "ndim": 2}, "unit": {"tag": "tag:astropy.org:astropy/units/unit-1.*", "enum": ["electron2 / s2"]}}}, "amp33": {"title": "Amp 33 Reference Pixel Data (DN)", "description": "Amplifier 33 reference pixel data in units of DN.\n", "tag": "tag:stsci.edu:asdf/unit/quantity-1.*", "properties": {"value": {"tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "uint16", "exact_datatype": true, "ndim": 3}, "unit": {"tag": "tag:astropy.org:astropy/units/unit-1.*", "enum": ["DN"]}}}, "border_ref_pix_left": {"title": "Border Reference Pixels on the Left of the Detector, from the Instrument's Perspective (DN)", "description": "Border reference pixels on the left of the detector, from the instrument's\nperspective in units of DN.\n", "tag": "tag:stsci.edu:asdf/unit/quantity-1.*", "properties": {"value": {"tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "float32", "exact_datatype": true, "ndim": 3}, "unit": {"tag": "tag:astropy.org:astropy/units/unit-1.*", "enum": ["DN"]}}}, "border_ref_pix_right": {"title": "Border Reference Pixels on the Right of the Detector, from the Instrument's Perspective (DN)", "description": "Border reference pixels on the right of the detector, from the\ninstrument's perspective in units of DN\n", "tag": "tag:stsci.edu:asdf/unit/quantity-1.*", "properties": {"value": {"tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "float32", "exact_datatype": true, "ndim": 3}, "unit": {"tag": "tag:astropy.org:astropy/units/unit-1.*", "enum": ["DN"]}}}, "border_ref_pix_top": {"title": "Border Reference Pixels on the Top of the Detector (DN)", "description": "Border reference pixels on the top of the detector in units of DN.\n", "tag": "tag:stsci.edu:asdf/unit/quantity-1.*", "properties": {"value": {"tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "float32", "exact_datatype": true, "ndim": 3}, "unit": {"tag": "tag:astropy.org:astropy/units/unit-1.*", "enum": ["DN"]}}}, "border_ref_pix_bottom": {"title": "Border Reference Pixels on the Bottom of the Detector (DN)", "description": "Border reference pixels on the bottom of the detector in units of DN.\n", "tag": "tag:stsci.edu:asdf/unit/quantity-1.*", "properties": {"value": {"tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "float32", "exact_datatype": true, "ndim": 3}, "unit": {"tag": "tag:astropy.org:astropy/units/unit-1.*", "enum": ["DN"]}}}, "dq_border_ref_pix_left": {"title": "Data Quality Flag for Border Reference Pixels, on the Left Edge of the Detector from the Instrument Perspective", "description": "Data quality flag for border reference pixels, on the left edge of the\ndetector from the instrument perspective.\n", "tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "uint32", "exact_datatype": true, "ndim": 2}, "dq_border_ref_pix_right": {"title": "Data Quality Flag for Border Reference Pixels, on the Right edge of the Detector from the Instrument Perspective", "description": "Data quality flag for border reference pixels, on the right edge of the\ndetector from the instrument perspective.\n", "tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "uint32", "exact_datatype": true, "ndim": 2}, "dq_border_ref_pix_top": {"title": "Data Quality Flag for Border Reference Pixels, on Top", "description": "Data quality flag for border reference pixels, on top.\n", "tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "uint32", "exact_datatype": true, "ndim": 2}, "dq_border_ref_pix_bottom": {"title": "Data Quality Flag for Border Reference Pixels, on Bottom", "description": "Data quality flag for border reference pixels, on bottom.\n", "tag": "tag:stsci.edu:asdf/core/ndarray-1.*", "datatype": "uint32", "exact_datatype": true, "ndim": 2}, "cal_logs": {"title": "Calibration Logs", "description": "Calibration logs.\n", "tag": "asdf://stsci.edu/datamodels/roman/tags/cal_logs-1.0.0"}}, "propertyOrder": ["meta", "data", "dq", "err", "var_poisson", "var_rnoise", "var_flat", "amp33", "border_ref_pix_left", "border_ref_pix_right", "border_ref_pix_top", "border_ref_pix_bottom", "dq_border_ref_pix_left", "dq_border_ref_pix_right", "dq_border_ref_pix_top", "dq_border_ref_pix_bottom", "cal_logs"], "flowStyle": "block", "required": ["meta", "data", "dq", "err", "var_poisson", "var_rnoise", "amp33", "border_ref_pix_left", "border_ref_pix_right", "border_ref_pix_top", "border_ref_pix_bottom", "dq_border_ref_pix_left", "dq_border_ref_pix_right", "dq_border_ref_pix_top", "dq_border_ref_pix_bottom", "cal_logs"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment