Skip to content

Commit

Permalink
Simplify unit definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
mairanteodoro committed Oct 16, 2024
1 parent 379fc9a commit c446e4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/rad/resources/schemas/sky_background-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ properties:
level:
title: Sky Background Level
description: |
The sky background level in DN / s.
The sky background level in DN / s or MJy.sr**-1.
type: number
unit: "DN / s"
unit: ["DN / s", "MJy.sr**-1"]
method:
title: Sky Background Method
description: |
Expand Down
25 changes: 5 additions & 20 deletions src/rad/resources/schemas/wfi_image-1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ properties:
datatype: float32
exact_datatype: true
ndim: 2
unit:
oneOf:
- type: string
enum: ["DN / s", "MJy.sr**-1"]
unit: ["DN / s", "MJy.sr**-1"]
dq:
title: Data Quality Flags
description: |
Expand All @@ -58,10 +55,7 @@ properties:
datatype: float32
exact_datatype: true
ndim: 2
unit:
oneOf:
- type: string
enum: ["DN / s", "MJy.sr**-1"]
unit: ["DN / s", "MJy.sr**-1"]
var_poisson:
title: Poisson Variance (DN^2 / s^2)
description: |
Expand All @@ -70,10 +64,7 @@ properties:
datatype: float32
exact_datatype: true
ndim: 2
unit:
oneOf:
- type: string
enum: ["DN2 / s2", "MJy**2.sr**-2"]
unit: ["DN2 / s2", "MJy**2.sr**-2"]
var_rnoise:
title: Read Noise (DN^2 / s^2)
description: |
Expand All @@ -82,10 +73,7 @@ properties:
datatype: float32
exact_datatype: true
ndim: 2
unit:
oneOf:
- type: string
enum: ["DN2 / s2", "MJy**2.sr**-2"]
unit: ["DN2 / s2", "MJy**2.sr**-2"]
var_flat:
title: Variance for Estimate of Flat Pixel Flux (DN^2 / s^2).
description: |
Expand All @@ -95,10 +83,7 @@ properties:
datatype: float32
exact_datatype: true
ndim: 2
unit:
oneOf:
- type: string
enum: ["DN2 / s2", "MJy**2.sr**-2"]
unit: ["DN2 / s2", "MJy**2.sr**-2"]
amp33:
title: Amp 33 Reference Pixel Data (DN)
description: |
Expand Down

0 comments on commit c446e4a

Please sign in to comment.