Open Borlaff opened 1 week ago
Hi Alex---I think the issue is that it needs to know where to build the WFI sca number into the file name. I think if you replace the filename with something like RST_WFI{}_test_v3.asdf then it will make 18 files. This might be a useful example: https://github.com/spacetelescope/romanisim/blob/main/scripts/romancal_make_all_l1s.sh#L17
See if that helps? Thanks!
100% correct, thank you so much. Adding {} to the output name allowed romanisim to allocate different filenames for the different SCA. Thanks a lot.
My follow-up question would be: Is this the format that level 1 and 2 WFI images will have, different files per SCA?
Yes, this is the way that L1 and L2 files are being made. For example, we use romanisim to make the L1 files used to test the pipeline via that script I linked above.
When you're happy, please go ahead and close the issue. I'll push an update to the docs to make this undocumented '{}' feature more clear in the future; thanks for the reminder there.
Hi,
I am trying to generate a complete (SCAs 1 to 18) Roman/WFI image using romanisim but the resulting ASDF file only contains one "data" array.
Example:
Result tree:
roman_exp["roman"]["data"].shape
(4088, 4088)The total size of the ASDF file is the same (~400 Mb) as the one generated using --sca 1, for example, so no additional data arrays are hidden in the ASDF structure.
Alex