Skip to content

Commit

Permalink
RAD-189: APCORR and ABVEGAOFFSET optional nulls (#516)
Browse files Browse the repository at this point in the history
* Initial commit.

* Added change log.
  • Loading branch information
PaulHuwe authored Dec 2, 2024
1 parent 66783ff commit 48203a1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
1 change: 1 addition & 0 deletions changes/516.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added null values to allowed APCORR and ABVEGAOFFSET keyword values.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ properties:
description: Magnitude difference between the AB and Vega magnitude
systems. Found by calculating the AB magnitude of Vega within
the optical element bandpass.
type: number
anyOf:
- type: number
- type: "null"
required: [abvega_offset]
required: [meta, data]
flowStyle: block
Expand Down
38 changes: 24 additions & 14 deletions src/rad/resources/schemas/reference_files/apcorr-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,39 +27,49 @@ properties:
title: Aperture Corrections
description: The aperture correction for each enclosed energy
fraction, corresponding to 1 / ee_fractions.
tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: float64
exact_datatype: true
ndim: 1
anyOf:
- tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: float64
exact_datatype: true
ndim: 1
- type: "null"
ee_fractions:
title: Enclosed Energy Fractions
description: Fractions of the enclosed energy of the PSF at which
to estimate the aperture correction and enclosed energy radii.
tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: float64
exact_datatype: true
ndim: 1
anyOf:
- tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: float64
exact_datatype: true
ndim: 1
- type: "null"
ee_radii:
title: Enclosed Energy Radii
description: Radius, in pixels, within which the enclosed energy
fractions are met. The indexing matches that of
"ee_fractions".
tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: float64
exact_datatype: true
ndim: 1
anyOf:
- tag: tag:stsci.edu:asdf/core/ndarray-1.*
datatype: float64
exact_datatype: true
ndim: 1
- type: "null"
sky_background_rin:
title: Inner Radius for the Sky Background
description: Inner radius, in pixels, to use when estimating the
local sky background within an annulus between this
radius and "sky_background_rout".
type: number
anyOf:
- type: number
- type: "null"
sky_background_rout:
title: Outer Radius for the Sky Background
description: Outer radius, in pixels, to use when estimating the
local sky background within an annulus between this
radius and "sky_background_rin".
type: number
anyOf:
- type: number
- type: "null"
required: [ap_corrections, ee_fractions, ee_radii, sky_background_rin, sky_background_rout]
required: [meta, data]
flowStyle: block
Expand Down

0 comments on commit 48203a1

Please sign in to comment.