-
Notifications
You must be signed in to change notification settings - Fork 171
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
AMI3 post-commissioning updates #7674
Comments
Comment by Alicia Canipe on JIRA: Hi Rachel Cooper! Just for tracking (I know you all got too busy to get it in for 9.3, but here's the tentative timeline from DMS for the next build, which is actually Build 10.0):
|
Comment by Alicia Canipe on JIRA: One more note (CC Stephanie La Massa and Anton Koekemoer /Greg Sloan ): when NIRISS is ready, it may be worth a tag-up w/ CalWG leads and SCSB to make sure everyone is on the same page about changes being requested. There are a lot of items noted in this ticket, and the linked tickets have a "low" priority assignment from NIRISS. I just want to make sure we don't miss something if this needs to get into the next build. Other groups may be affected, e.g., I'm not sure if MAST folks or anyone else would need to be looped in about the OIFITS change being requested, JDox updates will be needed, etc. Howard Bushouse FYI. |
Comment by Anton Koekemoer on JIRA: Thanks Alicia Canipe, I agree this would be good to schedule a discussion between CalWG, SCSB and NIRISS to go over the proposed algorithm changes, once NIRISS is ready. Since it's quite specific to AMI and not impacting the broader CalWG, we could consider scheduling this in an "out-of-cycle" slot, ie not one of the regular full monthly CalWG meetings, but another Tuesday instead. Some options are Tue Jun 27, Jul 18, Jul 25, or later (all would be at 11am ET). It would be good to know from SCSB who might be available to help answer Rachel Cooper's questions about datamodels in the meantime, so I've also added Nadia Dencheva to this ticket to provide further support there. |
Comment by Kevin Volk on JIRA: There was discussion of this ticket in the Cal-WG meeting on 1 August, and a nominal deadline of 1 September for the JWST pipeline pull request (since Rachel is working on the code changes in a github branch according to what we were told by SCSB in the meeting) is 1 September, in order for things to be in place by 15 September when the pipeline version goes to DMS for testing. Rachel was not at the meeting so I have sent an e-mail to her alerting her to the schedule in addition to making this comment. |
Comment by Stephanie La Massa on JIRA: Commenting on this ticket to note that NIRISS is ready for this update to be implemented into build 10.0. Rachel Cooper opened a draft PR here: #7862 Rachel also mentioned she's waiting for some feedback from SCSB about final minor changes to make, but I wanted to make sure this work was visible on this ticket to confirm we're on track for getting these updates into build 10.0? Do we need to schedule a meeting with MAST folks to make sure the archive can serve OIFITS files? Are there any other blockers in getting this update deployed in build 10.0? |
I was not aware of the request to generate a new type of files or see an archive ticket to define the new type of file. I will investigate from my side and let you know, though, I am afraid it might be too late for build 10.0. But the archive has builds ~ every month, so it might be possible to add it. |
Comment by Howard Bushouse on JIRA: Rachel Cooper Just wondering about the status of the big PR #7862 that implements most of this. It's still marked as being in Draft form. Any idea of how close it is to be done and ready for review and testing? Trying to determine whether we can try to include this in DMS B10.0, for which we need to finalize development by 15-Sep-2023. |
Comment by Rachel Cooper on JIRA: Hi Howard Bushouse, I'm actively working on the last few changes I need to make to get the full calwebb_ami3 pipeline running with the updated steps before I convert the draft PR to be open, but I need a bit more help on changes to some of the parts of the library I'm less familiar with, namely the association generator and making sure the products get saved with the correct suffixes. Rosa Diaz also mentioned I would need to file an archives ticket for the changed data products. I'm still hoping to get this in in time for build 10.0 but I realize I was unaware of these external updates that need to happen, so I understand if that's not feasible with the other work your team(s) have. |
Comment by Howard Bushouse on JIRA: Rachel Cooper I can help with the ASN generator updates. Are these the changes to just have AMI processing switchover from using rate and cal products to rateints and calints products? Hooks for those changes are already in the ASN rules, but commented out, so that change should be simple to make. Was there anything in addition to that for the ASN generator? What are the new product types and their file name syntax? I could help steer you in the right direction for those too. |
Comment by Rachel Cooper on JIRA: I already uncommented the ASN changes for the 3D inputs, but I thought now that there is no intermediate "amiavg" product (since we are skipping the ami_average step) and each exposure will be calibrated by a matching psf reference exposure something would need to change there, but I haven't actually dug into the details yet. I put some details in my latest comment on this ticket: https://jira.stsci.edu/browse/JP-1713 but I've copied the relevant info here. |
I filed JWSTDMS-918 so DMS can start looking into getting these files into the system, including the archive and other subsystems that need to know about it. NIRISS can start thinking about the metadata that needs to be added to the archive db in order to support search and retrieval of these files. |
Comment by Anton Koekemoer on JIRA: hi all, just checking on the status of this – can Howard Bushouse and Rachel Cooper post here please what the next steps are that are needed for this to be implemented, and who that is assigned to, or could you organize further discussion if needed and mention that here too? Thanks! |
Comment by Rachel Cooper on JIRA: Sorry, I must have missed the comment notification on this ticket. Anton Koekemoer Howard Bushouse I was under the impression that folks from MAST were going to set up a meeting to determine if it will be possible to use the .oifits file extension. Following that decision, I will need to make some final documentation updates to use the new file suffixes and extensions. I gave the requested information about these suffixes again on https://jira.stsci.edu/browse/JWSTDMS-918 |
Comment by Anton Koekemoer on JIRA: thanks Rachel Cooper for the update, greatly appreciated, and by all means feel free to use JWSTDMS-918 as the place to follow up for the next steps. |
Comment by Rachel Cooper on JIRA: Hi Howard Bushouse or Brett Graham, Since we've come to a consensus on the file suffixes & extensions for the outputs of the AMI3 steps, I'd like to make sure I get the necessary code changes are in place when the deadline for the next build (10.2?) rolls around. Could you or another pipeline savant please help me identify where (in jwst/lib/suffix.py?) I need to make changes so that the outputs of each step get the appropriate name? For reference, we concluded that those will be: ami_analyze: _ami-oi.fits_amimulti-oi.fits_amilg.fitsami_normalize: _aminorm-oi.fitsOr, when running the full stage with an association file, the reference PSF exposure gets the suffix _psf-ami-oi.fits. Thanks! |
Comment by Brett Graham on JIRA: Hi Rachel, Howard pointed me towards a recent PR of his adding a suffix: |
Comment by Howard Bushouse on JIRA: It looks to me like many (or all?) of the new suffixes will replace existing ones that are listed in Not sure what kinds of entries might need to be added to the |
Comment by Rachel Cooper on JIRA: Thank you! I have replaced the suffixes in SUFFIXES_TO_ADD with the new ones, and had figured out that I can at least use the |
I'm not familiar with this and looking into it the code is quite confusing so I could very well be getting most or all of this wrong. The step code in stpipe: https://github.com/spacetelescope/stpipe/blob/9e7c4416fa8776c00843c18390a1dc2d7b4179d0/src/stpipe/step.py#L537
If I'm understanding your needs (please correct me if I'm mistaken), you're looking to have a step save several files (with the contents from a list of results returned from the |
Hi Brett, sorry for the delay. I've also had a hard time understanding what's going on in this particular bit of the code but your explanation is very helpful. I generally don't run the pipeline steps or stages directly from the command line, I usually set up the class and run it in a notebook or script but ideally either way would produce the same results. Your understanding is correct, I'm looking to have three outputs returned when the ami_analyze step is called (as a list or tuple or whatever makes sense) and also saved with their individual suffixes when save_results = True. |
Comment by Rachel Cooper on JIRA: PR-7862 has been opened for review. |
Comment by Howard Bushouse on JIRA: Fixed by #7862 |
Rachel Cooper Rachel Plesha Another AMI-related testing issue for you to sign off on. |
Comment by Rachel Plesha on JIRA: Rachel Cooper can this ticket be set to Done or is there more testing still now that the build is officially installed? |
Issue JP-3153 was created on JIRA by Rachel Cooper:
A number of changes to the standalone algorithm that AMI3 is based on (ImPlaneIA) have been made since 2020. The goal for these updates is to be able to reproduce commissioning results obtained with ImPlaneIA. Other improvements will be introduced later.
Inputs:
The default input to the AMI3 stage should be calints.fits files. In the case where a 2D image (cal file) is supplied, the code should automatically expand the dimensions (e.g. (80,80) --> (1,80,80)) (https://jira.stsci.edu/browse/JP-1714). Calints files are not currently produced automatically for AMI exposures; this is a prerequisite to these updates (see https://jira.stsci.edu/browse/JP-2904)
Outputs:
Instead of the current ami_analyze FITS output, we will be moving to industry-standard OIFITS format (see https://jira.stsci.edu/browse/JP-1713) There will be two types of OIFITS files produced from a single calints.fits file input:
These file formats will be nearly identical to each other except for the shapes of table extensions. We would also like there to be a third new output from the ami_analyze step:
** CENTER: The 3-D centered, cropped, bad-pixel-fixed input image
** N_CENTER: Normalized 3-D centered, cropped, bad-pixel-fixed input image
** FIT: A 3-D image of the fitted model.
** N_FIT: A normalized 3-D image of the fitted model.
** RESID: A 3-D image of the fit residuals.
** N_RESID: A normalized 3-D image of the fit residuals.
Subsequent steps:
In general, we do not average together multiple science exposures. Users may sometimes wish to have multiple calibrator star exposures combined. Whether/how this step can be run automatically using associations is TBD; we do not want users combining calibrators without first examining their quality individually. For this update, we would like to turn off this step for now. The step will eventually need to be updated to take the new (integration-averaged) OIFITS output from ami_analyze and produce new averaged OIFITS files.
ami_normalize will be updated to take the integration-averaged science OIFITS files from ami_analyze and either an integration-averaged calibrator OIFITS file or an exposure-averaged calibrator OIFITS file. The final output of ami_normalize will be a single calibrated OIFITS file. (multi-integration OIFITS files cannot be averaged together or normalized because target and calibrator typically have a different number of integrations)
Algorithm Improvements
At the beginning of the ami_analyze step, a bad pixel cleaning sub-step will be run. The datamodel will only be updated in-memory for now. A number of optional keyword arguments will be added for ami_analyze to replicate some of the flexibility currently in the standalone algorithm:
Other changes:
The text was updated successfully, but these errors were encountered: