-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RAD-122: L3 DataModel Schemas (#241)
* Save. * Initial implementation. * hanged context to unsigned int. * Addressed PR comment. * Rebase and update Changelog. * Simplified units to only astropy supported ones. --------- Co-authored-by: Nadia Dencheva <[email protected]>
- Loading branch information
Showing
4 changed files
with
132 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
%YAML 1.1 | ||
--- | ||
$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0 | ||
id: asdf://stsci.edu/datamodels/roman/schemas/resample-1.0.0 | ||
|
||
title: Resample information | ||
type: object | ||
properties: | ||
pixel_scale_ratio: | ||
title: Pixel Scale Ratio of resample to input scale | ||
type: number | ||
pixfrac: | ||
title: Fraction of pixel to use for pixel convolution | ||
type: number | ||
pointings: | ||
title: Number of pointings in the resample | ||
type: integer | ||
product_exposure_time: | ||
title: Total exposure time for resample product | ||
type: number | ||
weight_type: | ||
title: Drizzle weight type for resample | ||
type: string | ||
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] | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
%YAML 1.1 | ||
--- | ||
$schema: asdf://stsci.edu/datamodels/roman/schemas/rad_schema-1.0.0 | ||
id: asdf://stsci.edu/datamodels/roman/schemas/wfi_mosaic-1.0.0 | ||
|
||
title: | | ||
The schema for WFI Level 3 mosaics. | ||
type: object | ||
properties: | ||
meta: | ||
allOf: | ||
- $ref: common-1.0.0 | ||
- type: object | ||
properties: | ||
# Placeholder for 'asn' schema tag | ||
# Placeholder for 'dither' schema tag | ||
photometry: | ||
tag: asdf://stsci.edu/datamodels/roman/tags/photometry-1.0.0 | ||
resample: | ||
tag: asdf://stsci.edu/datamodels/roman/tags/resample-1.0.0 | ||
required: [photometry] | ||
data: | ||
title: Science data, excluding border reference pixels. | ||
tag: tag:stsci.edu:asdf/unit/quantity-1.1.0 | ||
properties: | ||
value: | ||
tag: tag:stsci.edu:asdf/core/ndarray-1.0.0 | ||
datatype: float32 | ||
ndim: 2 | ||
unit: | ||
tag: tag:astropy.org:astropy/units/unit-1.0.0 | ||
enum: ["electron / s"] | ||
err: | ||
tag: tag:stsci.edu:asdf/unit/quantity-1.1.0 | ||
properties: | ||
value: | ||
tag: tag:stsci.edu:asdf/core/ndarray-1.0.0 | ||
datatype: float32 | ||
ndim: 2 | ||
unit: | ||
tag: tag:astropy.org:astropy/units/unit-1.0.0 | ||
enum: ["electron / s"] | ||
context: | ||
tag: tag:stsci.edu:asdf/core/ndarray-1.0.0 | ||
datatype: uint32 | ||
ndim: 3 | ||
weight: | ||
tag: tag:stsci.edu:asdf/core/ndarray-1.0.0 | ||
datatype: float32 | ||
ndim: 2 | ||
var_poisson: | ||
tag: tag:stsci.edu:asdf/unit/quantity-1.1.0 | ||
properties: | ||
value: | ||
tag: tag:stsci.edu:asdf/core/ndarray-1.0.0 | ||
datatype: float32 | ||
ndim: 2 | ||
unit: | ||
tag: tag:astropy.org:astropy/units/unit-1.0.0 | ||
enum: ["electron2 / s2"] | ||
var_rnoise: | ||
tag: tag:stsci.edu:asdf/unit/quantity-1.1.0 | ||
properties: | ||
value: | ||
tag: tag:stsci.edu:asdf/core/ndarray-1.0.0 | ||
datatype: float32 | ||
ndim: 2 | ||
unit: | ||
tag: tag:astropy.org:astropy/units/unit-1.0.0 | ||
enum: ["electron2 / s2"] | ||
var_flat: | ||
tag: tag:stsci.edu:asdf/unit/quantity-1.1.0 | ||
properties: | ||
value: | ||
tag: tag:stsci.edu:asdf/core/ndarray-1.0.0 | ||
datatype: float32 | ||
ndim: 2 | ||
unit: | ||
tag: tag:astropy.org:astropy/units/unit-1.0.0 | ||
enum: ["electron2 / s2"] | ||
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, | ||
cal_logs] | ||
flowStyle: block | ||
required: [meta, data, context, err, weight, var_poisson, var_rnoise, var_flat, | ||
cal_logs] | ||
... |