Giter Club home page Giter Club logo

Comments (3)

stscieisenhamer avatar stscieisenhamer commented on July 18, 2024

@hbushouse Thoughts?

from jwst.

hbushouse avatar hbushouse commented on July 18, 2024

The exp_to_source task will be run as essentially the first step of the calspec3 pipeline, at least for some observing modes, i.e. the ones that obtain spectra of multiple sources simultaneously (which means NIRCam and NIRISS WFSS, NIRSpec MOS, and NIRSpec fixed-slit). The input to the calspec3 pipeline will be a level-3 ASN table, which will list all the input level-2b exposure-based products. Because the ASN generator can't know at the time it runs what the various output sources will be and hence it can't specify the output source-based file name(s) in the ASN table, either the calspec3 pipeline module or the exp_to_source task itself will need to construct the source-based output file names. The ASN generator could at least specify a template source-based file name in the ASN table, such as:

jw12345_o0001_<targ_id/source_id>_nirspec_g140m_<prod_type>.fits

and then leave it to either calspec3 or exp_to_source to fill in both <targ_id/source_id> and <prod_type> as each source-based file is created. For WFSS and MOS modes, we should have an actual source_id available for each source from the WFSS source catalog or the MSA meta data table, respectively. Those names could easily be stored in the SOURCEID keyword for each slit instance that was created upstream in calspec2 during the extract_2d step, and hence that's where exp_to_source can get them. The NIRSpec fixed-slit case is not as straightforward, because we won't have individual source id's specified upstream for each slit. I think the best that can be done for that mode is to use the generic target_id from the exposures (which should be the same for all input exposures) and perhaps append the slit name (S200A1, S200B1, etc.) as an additional part of either the target_id field or the optical element field of the output source-based file name.

from jwst.

stscieisenhamer avatar stscieisenhamer commented on July 18, 2024

Resolved by #2330

from jwst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.