Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APCORR, ABVEGAOFFSET, and EPSF Reference File Schema Creation #1403

Open
stscijgbot-rstdms opened this issue Sep 11, 2024 · 6 comments
Open

Comments

@stscijgbot-rstdms
Copy link
Collaborator

Issue RCAL-905 was created on JIRA by William Schultz:

RAD schemas need to be created for the APCORR, ABVEGAOFFSET, and EPSF reference files. Examples of the files can be found on central storage in: █████████████████████████████████

 Detailed schema titles and descriptions will be added to this ticket next week.

@stscijgbot-rstdms
Copy link
Collaborator Author

Comment by William Schultz on JIRA:

EPSF example schema (mainly for titles and descriptions):

meta:
    instrument:
        optical_element:
            type: string
            title: Optical Element
            description: Name of the selected optical element.
        required: [optical_element]
    oversample:
        type: integer
        title: Oversampling Factor
        description: Factor by which the WFI pixels have been oversampled 
            to generate the PSF.
    effective_temperature:
        type: array
        title: Effective Temperature
        description: Effective temperature (K) of the simulated source(s) 
            used to generate the PSF model.
        items:
            type: integer
    defocus:
        type: array
        title: Defocus Waves
        description: Number of defocus waves applied to the PSF.
        items:
            type: integer
    pixel_x:
        type: array
        title: X Position
        description: X-axis position of the PSF models. The order of the 
            positions corresponds to the order of the PSFs in the psf array.
        items:
            type: float
    pixel_y:
        type: array
        title: Y Position
        description: Y-axis position of the PSF models. The order of the 
            positions corresponds to the order of the PSFs in the psf array.
        items:
            type: float
    required: [instrument, pixel_x, pixel_y]
psf:
    type: array
    dtype: float32
    dimensions: 4
    title: ePSF Stamps
    description: Postage stamps of ePSF models. The 3-dimensional array is 
        ordered by (defocus, effective_temperature, pixel_x, pixel_y) 
        in the file metadata.
extended_psf:
    type: array
    dtype: float32
    dimensions: 2
    title: Extended ePSF Stamp
    description: Postage stamp of a bright ePSF model with extended wings. 
        If present, a single, in-focus, monochromatic ePSF is generated at 
        the center of the detector.
required: [meta, psf]

@stscijgbot-rstdms
Copy link
Collaborator Author

Comment by William Schultz on JIRA:

APCORR example schema (mainly for titles and descriptions):

meta:
    instrument:
        detector:
            type: string
            title: Detector Name
            description: Name of the detector for which the file is valid.
        required: [detector]
    required: [instrument]
data:
    DARK:
        ap_corrections:
            type: array
            title: Aperture Corrections
            description: The aperture correction for each enclosed energy 
                fraction. The indexing matches that of "ee_fractions".
            items:
                type: float64
        ee_fractions:
            type: array
            title: Enclosed Energy Fractions
            description: Fractions of the enclosed energy of the PSF at which
                to estimate the aperture correction and enclosed energy radii.
            items:
                dtype: float64
        ee_radii:
            type: array
            title: Enclosed Energy Radii 
            description: Radius, in pixels, within which the enclosed energy 
                fractions are met. The indexing matches that of
                 "ee_fractions".
            items:
                dtype: float64
        sky_background_rin:
            type: float64
            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".
            items:
                dtype: float64
        sky_background_rout:
            type: float64
            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".
            items:
                dtype: float64
        required: [ap_corrections, ee_fractions, ee_radii, sky_background_rin,
            sky_background_rout]
    (repeated for all required properties)
    required: [DARK, F062, F087, F106, F129, F146, F158, F184, F213, GRISM, 
        PRISM]
required: [meta, data]

@stscijgbot-rstdms
Copy link
Collaborator Author

Comment by William Schultz on JIRA:

ABVEGAOFFSET example schema (mainly for titles and descriptions):

meta:
    instrument:
        detector:
            type: string
            title: Detector Name
            description: Name of the detector for which the file is valid.
        required: [detector]
    required: [instrument]
data:
    DARK:
        abvega_offset:
            type: float64
            title: AB-Vega Magntiude Offset
            description: Magnitude difference between the AB and Vega magnitude
                systems. Found by calculating the AB magnitude of Vega within 
                the optical element bandpass.
        required: [abvega_offset]
    (repeated for all required properties)
    required: [DARK, F062, F087, F106, F129, F146, F158, F184, F213, GRISM, PRISM]
required: [meta, data]

@stscijgbot-rstdms
Copy link
Collaborator Author

Comment by Paul Huwe on JIRA:

The schemas are available here:
spacetelescope/rad#452

Datamodels are near completion. 

@stscijgbot-rstdms
Copy link
Collaborator Author

Comment by Paul Huwe on JIRA:

Are oversample and effective_temperature supposed to be integers? (It feels like they should be floats.) 

@stscijgbot-rstdms
Copy link
Collaborator Author

Comment by Paul Huwe on JIRA:

Datamodels implemented at:
spacetelescope/roman_datamodels#393

 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant