c3-time-domain / SeeChange

A time-domain data reduction pipeline (e.g., for handling images->lightcurves) for surveys like DECam and LS4
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

Use Coaddition pipeline's parse_inputs in Image class #188

Open guynir42 opened 5 months ago

guynir42 commented 5 months ago

There's some code in the coaddition pipeline that allows users to give start/end time and coordinates (and other parameters) and that is used to load from DB all matching images.

A similar method can be written in the Image class, to allow users to quickly query for the images they want, based on some parameters.

It is then possible to use that method to replace some of the code in the coaddition pipeline.

Note that this isn't copy-paste: the coaddition code makes different assumptions on what you want than the generic image-fetching code. E.g., the coaddition will have some guess of the time range for fetching images to coadd (using the date_range parameter).