Added a simple create_database() function that automates db generation of stage 0-2 data. This is made possible through the webbpsf_ext.imreg_tools.get_files() function.
Updates to database:
Database creation was failing for TA Confirmation images because it could not find a science observation to attach to. Instead, I think it's best to specify the coronagraphic mask for NIRCam TA and TA Confirmation images even if it's not in the header. This prevents association of TA files with specific sci or ref observations, which I think is preferred since there is little practice reason for the association, especially if TA filter was not part of the science observation (e.g., no F335M in PID 1386).
Include custom NIRCam aperture name resolution to fix incorrect APERNAME keyword as shown in headers for some types of simultaneous observations.
The usage of [str(head.get('IS_PSF', 'NONE'))] was preventing the list values from having more than 4 characters if changed. For instance an initial value of 'NONE' meant that trying to change the list element to 'False' only retained the first four characters such that the value was 'Fals'.
Part 3 of #98
Added a simple
create_database()
function that automates db generation of stage 0-2 data. This is made possible through thewebbpsf_ext.imreg_tools.get_files()
function.Updates to database: