-
Notifications
You must be signed in to change notification settings - Fork 174
Initial soss code #6148
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
Initial soss code #6148
Conversation
The first issue I would like to discuss is the best way to branch the pipeline towards the specialized extraction in case of a NIRISS SOSS observation. I have currently added a tentative if statement to the existing Extract1dStep, however I currently see no overlap between the parameters and reference files used by the existing extraction and the NIRISS SOSS extraction. I would therefore like to discuss if a new Step made specifically for the SOSS extraction might be preferable over adding it to the existing Extract1DStep. |
Hi Geert Jan, welcome to the repo! I'll try to help with implementing this extraction method. The Extract1dStep attempts to be the singular location for extractions of this type, so for organization's sake we would like to keep this method under the coverage of this step. We will use something just like what you've done to branch SOSS observations from the top-level Extract1dStep to different functions, but we can keep those functions stored in the step directory. In terms of orthogonal parameters and reference files, we have other steps that have encountered this issue, e.g. the AssignWcsStep. Looking here you can see that many reference file types may be provided, depending on instrument. For now, you can add your new reference file types to the reference_file_types list, and once they live on CRDS with appropriate maps they should be called when SOSS data is provided to the step. As a side note: I am currently in the early stages of refactoring this step, though changes where you are forking, at the Extract1dStep level, are likely to be minimal. |
Hi Tyler, Alright, that makes sense on the issue of orthogonal parameters. When you say "We will use something just like what you've done to branch SOSS observations from the top-level Extract1dStep to different functions, but we can keep those functions stored in the step directory." do you refer to my use of a soss_extract submodule? This was another thing I wanted to ask about. I'm currently using a submodule out of convenience, but if it is preferred I can consolidate it down to 1 or 2 files in the step directory once everything is in place. |
…de them from the log-likelihood.
… pixels are reconstructed.
… suitable transformation.
…ts and filter/subarray functionality easier.
* flake8 * name the model not the container * Allow for ModelContainer as input * might as well output a ModelContainer instead of a list of models? not sure * stpipe changed new Step parameter name
…pacetelescope#6388) * change inferred int_num to 1-indexed scheme * [skip ci] changelog
…spacetelescope#6389) * don't touch the root logger? * [skip ci] changelog
…cetelescope#6333) Co-authored-by: Jonathan Eisenhamer <eisenhamer@stsci.edu>
…Q flags (spacetelescope#6383) * Changing test to accommodate the new function signature for calc_num_seg, which occurred to eliminate a need for global variables defining DQ flags. * Update setup.cfg changed stcal to 0.4.0 Co-authored-by: Clare Shanahan <cshanahan@stsci.edu>
* fix test_background * fix test_cube_build_step * fix test_master_background * unsure what the config in outlier_detection_ifu was doing * first half of regtest removals * couple more regtests * more regtests * final set of regtests * flake8 and MasterBackgroundStep workaround * flake8 and changelog
This reverts commit b6155a6.
* Fix internal cal cubes * update change log
* First Documentation for step * update doc * updates for fringefreq reference file * update of all docs * Update after review * various updates * fixed format of table
…ope#6406) * JP-2303: All user input for resample weight_type param * Fix unit test and add change log entry
…ubes (spacetelescope#6405) * added reg test for internal_cal * Change names of tests * Updated change log for a missing entry for spacetelescope#6387
…nScience (spacetelescope#6404) * add `notall` reduce, add additional constraint to Lv2ImageNonScience * [skip ci] changelog * flake8
spacetelescope#6411) * Edit README * changelog * updates
…tep (spacetelescope#6364) * Allow user-specified custom WCS parameters in the resample step * remove iraf starfinder * use lists for some parameters * remove itertools import - pep8 * remove data_size and fix failing tests * Add support for user specified absolute pixel scale for output of resample * Fix bug in the test * Fix pep8 * Update arguments docs for the resample step
* JP-2279: Update docs for resampled products * add change log entry
…arameters (spacetelescope#6422) * New SossModel with hard-coding; new core schema attributes for SOSS Extraction Parameters * increase dimensionality of apertures in SossModel * changelog * edit new datamodel to SossExtractModel; add ref files to core schema * missed a spot
Initial soss code rebase
Should we just go ahead and close this PR (without merging), since it's been superseded by #6467? |
Seems appropriate! |
Closing, because it's been replaced by #6467 |
This PR concerns the addition of a specialised extraction method to the Extract1dStep for NIRISS SOSS observations. This specialised extraction deals with the overlap between the different spectral orders. I apologise if the format of this description does not comply with the standards of the project, it is my first time making a PR for this project.
The code in this PR is still under development and the purpose of this PR is to provide a space for discussion with StSci on the best way to implement some aspects of this new extraction, and to merge when we have a satisfactory 1st working version.