jluastro / nirc2

MIT License
3 stars 0 forks source link

Data release support #20

Closed abhimat closed 3 years ago

abhimat commented 3 years ago

Changes to the imaging pipeline to support new data release file structure:

DR1/
    data/
        raw/
            date_instrument_name [e.g. "2020-07-07_nirc2"]/
                nxxxx.fits
                make_log.py
                observing_log.pdf
        clean/
            date_instrument_name [e.g. "2020-07-07_nirc2"]/
                filter_name [e.g. "kp"]/
                    cxxxx.fits
                    strehl_source.txt
            reduce/
                calib/
                    filter_name [e.g. "kp"]/
                    reduce_clean.py
        combo/
            epochname [e.g. "20200707nirc2"]/
                clean/
                Combo image: mag[epochname]_[filt].fits
                Submap images: m[epochname]_[filt]_[submap_number].fits
                reduce/
                    reduce_combo.py
        starlists/
            combo/
                [epochname]/
                    starfinder_vxx/
                        mag[epochname]_stf.lis
                        mag[epochname]_psf.fits
                        Quality Metrics, includes PSF files’ Strehl calculator outputs
                    reduce/
                        analysis_[].py
            ind_frames/
                [date_instrument]/
                    starfinder_vxx/ 

Relevant functions like clean() and combine() take additional input to point to the correct new directories in the data release file structure. If these additional inputs are not provided, these functions should fall back to their old behavior.