Skip to content

Add functionality to read Roman's asdf files directly. - #214

Merged
rmjarvis merged 18 commits into
mainfrom
asdf_files
Dec 3, 2026
Merged

rmjarvis merged 18 commits into
mainfrom
asdf_files

Conversation

@rmjarvis

@rmjarvis rmjarvis commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

This PR primarily adds RomanFiles as a custom input type that can read the Roman asdf files directly. The most complicated bit is the ramp_fit=uniform option, which does a number of adjustments to get the gain and noise levels accurate for the "data + dumo" image. This may be of only temporary utility, since they may have already fixed the guiding problems that prompted us to use this. But for now it's still important to run Piff on some of the current commissioning data.

This PR is pretty big in terms of lines changed, for which I apologize. It includes a pretty huge refactoring of the InputFiles class to make it more amenable to have subclasses override various aspects of the behavior. I think that effort was also just generically useful to clean up that part of the code, which had become somewhat unwieldy.

I recommend reviewers look at individual commits to review specific additions, rather than try to wade through the full thing all at once. The most interesting commits with new functionality are:

  • Add option to let SEP compute a background image. a1bffe8
  • Add option to specify a gain image, and in general support a different gain for each pixel. fb1e630
  • Add support for GWCS. fe2088c
  • Generically support asdf input files. edc09f4
  • Add ASDFValue type that can get a value from an asdf file. 947cd7a
  • Add RomanFiles, which knows the Roman file format and can optionally switch to the uniform ramp_fit. 8c8e9f6

@nihardalal

Copy link
Copy Markdown
Collaborator

@rmjarvis I took a look at the individual commits and left some comments. I think you're okay to merge, so I'll mark this as good to go, but feel free to start discussion threads on some of the things I asked about here on github or on slack before closing this PR.

@nihardalal nihardalal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

@rmjarvis

Copy link
Copy Markdown
Owner Author

Thanks Nihar and Hyeong for the comments. I think those are all things worth keeping in mind for future possible improvements. The sep background was really meant to be a quick and dirty way to move forward when I didn't have any good background estimate. I much prefer to have a well curated background image to take as input, so hopefully someone will make those for Roman and we can just use those.

@rmjarvis
rmjarvis merged commit 070fa63 into main Dec 3, 2026
10 checks passed
@rmjarvis
rmjarvis deleted the asdf_files branch December 3, 2026 16:39
@rmjarvis rmjarvis added this to the Version 1.8 milestone Dec 3, 2026
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

Successfully merging this pull request may close these issues.

2 participants