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

Implement engineering metadata mode #22

Open
zonca opened this issue May 6, 2020 · 7 comments
Open

Implement engineering metadata mode #22

zonca opened this issue May 6, 2020 · 7 comments

Comments

@zonca
Copy link
Member

zonca commented May 6, 2020

FITS keyword: "INSTMODE"
Value: "ENG", "SCI", "CAL"

@zonca
Copy link
Member Author

zonca commented May 7, 2020

@ikashell @arunsurya77

JWST has a keyword named EXP_TYPE,
see its possible values:

https://jwst-pipeline.readthedocs.io/en/latest/jwst/assign_wcs/exp_types.html#wcs-reference-file-information-per-exp-type

for example for nircam: NRC_IMAGE, NRC_TSIMAGE, NRC_FOCUS, NRC_TACONFIRM, NRC_TACQ

Currently I am using IRIS_IMAGE for all files.

In the file naming document https://docs.google.com/document/d/1ppkyuNsjVyTtxLoCQM04nfjET_ZmqywTiw9LiR-ny78/edit I found this about exposure types:

DRK     MasterDark Image 
IDP       Instrumental Dispersion
NFF      Normalized Flat field Image
TEL      Telluric Standard 
FLX      Flux Standard
ARC     Calibration lamp
SKY     Sky Frame
SCI      Science Frame

Consider also that we use the DATAMODL keyword to identify the file structure, see #23

So how do we reconcile all of this?

@arunsurya77
Copy link
Contributor

arunsurya77 commented May 7, 2020 via email

@zonca
Copy link
Member Author

zonca commented Jun 5, 2020

also when we specify the association, we can input a exptype, see:

https://github.com/oirlab/iris_pipeline/blob/master/iris_pipeline/tests/data/asn_subtract_bg_flat.json

hopefully, this is optional and if missing, picks up the exp_type in the file.
I will test and report here.

@zonca
Copy link
Member Author

zonca commented Jun 5, 2020

unfortunately it is not the case 'exptype' is a required property of the association file,
so it is quite annoying that we cannot just pass all files to the pipeline and have it figure out the role of each file internally.

@arunsurya77 is the type of file (background, science) encoded also in the filename somehow?

@zonca
Copy link
Member Author

zonca commented Jun 5, 2020

sorry @arunsurya77 for the unnecessary question,
checking in your document, file name is rYYMMDD_i/s_obsid_exp#_sub#.fits, so there is not exp type at all.

Anyway, the DRS assembly knows from the sequencer what is the observation plan so knows which observation ID is background.

@zonca
Copy link
Member Author

zonca commented Jun 5, 2020

My proposal is to keep:

EXP_TYPE as one of:

DRK     MasterDark Image 
IDP       Instrumental Dispersion
NFF      Normalized Flat field Image
TEL      Telluric Standard 
FLX      Flux Standard
ARC     Calibration lamp
SKY     Sky Frame
SCI      Science Frame

Checking the JWST definition https://github.com/spacetelescope/jwst/blob/master/jwst/datamodels/schemas/keyword_exptype.schema.yaml I think we should also prepend with IRIS_ (or should we have 2 separate prefixes for Image and spectra?)

And then have another FITS keyword: INST_MODE

ENG    Engineering
SCI      Science
CAL     Calibration

@arunsurya77 @ikashell is this redundant? or is it fine?

@arunsurya77
Copy link
Contributor

The exp_type is mentioned for processed frames pYYMMDD_i/s_obsid_exp#_sub#_type.fits
where type is SCI,DRK,SKY etc. But I agree with the proposal to have EXP_TYPE and INST_MODE inside the files. I will change the file format convention accordingly.

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

2 participants