Data management is important for astrophotography. First important tip: save all the raw data! You could drop the raw calibration frames, keeping only masters, but it’s very likely you’ll want to create new masters over time. Either to add more data or to try new pre-processing techniques. My earliest datasets are gone now because I didn’t follow this tip. Oh well. Let’s dive into how I do manage data today.
I have one “Data” directory everything is put into. Under that I have a directory per camera. I have subdirectories for each stage of a target’s lifecycle, ordered by prefixing with a number so I can’t miss a step. I use 2 digits so I could slot in something new if needed without changing anything else.
- 10_Blink: Anything I have not yet done a visual inspection of yet.
- 20_Data: Any project that needs more data. All the data in this directory has been blinked and has all necessary calibration masters.
- 30_Master: Any project where I am done but have not created a master light.
- 40_Process: Project has a master light and I have not completed processing.
- 50_Bake: Any project I think might be done, but I have not published publicly.
- 60_Done: Project is done and published!
- 70_Abandon: I’ve given up on these for various reasons.
After data is blinked it is moved into an “accept” folder to mark that it was reviewed. Anything that is not acceptable is deleted. You could keep them, maybe in a peer “reject” folder. But eventually I expect they will never be used again.. it’s a waste of space. If it’s bad data, it’s bad. Don’t use it, get more good data.
A single project will look like this once data is blinked:
- Target Name/
- accept/
- DATE_CCYY-MM-DD/
- FILTER_<F>_EXP_<E>_SETTEMP_<ST>/
- CCYY-MM-DD_hh-mi-ss_HFR_<H>_STARS_<S>_RMSARC_<R>_TEMP_<T>
- FILTER_<F>_EXP_<E>_SETTEMP_<ST>/
- DATE_CCYY-MM-DD/
- accept/
Where:
- CCYY-MM-DD is the date, i.e. 2024-10-31
- hh-mi-ss is the time in hours, minutes, seconds
- “F” is the filter name
- “E” is the exposure time
- “ST” is the target (set) temperature (for a cooled camera)
- “H” is the Half Flux Radius
- “S” is the number of stars detected
- “R” is the RMS in arcseconds
- “T” is the measured sensor temperature
For the directories and filenames I choose these bits of data and in this order to enable quickly ordering by date and filter and to have some key quality metrics available for quickly culling bad data (HFR, STARS, RMS).
NOTE for a mosaic the panel is captured in the “FILTER” directory with an additional “_PANEL_<P>” where “P” is the number of the panel. This reduces duplication of calibration master frames if multiple panels are captured in a single night.
NOTE on optimizing storage use. Storage is relatively cheap. I go for simplicity and duplicate bias and darks across folders to make managing changes trivial. I never need to remember or reference external darks, which I take every 6 to 12 months. It’s always the latest darks from my library from when the data was acquired. Simple. Buy a bigger hard drive.
When moved to the Master folder I add another set of sub-folders:
- master/
- CCYY-MM-DD/
- 1x/
- 2x/
- CCYY-MM-DD/
This allows me to create master multiple times. And to keep masters for various resolutions if I use drizzle (I have yet to go beyond 2x drizzle). Why is this useful? It’s been helpful to review older masters as I was learning how to best pre-process things. And if I decide I need more data I can keep the old master to compare after I collect the next chunk of data. If I experiment with pre-processing settings I might add additional postfixes to the date folder to provide context and to keep the files around for future reference.
Here’s an example screenshot of a mosaic with some master data. It shows raw lights for one of the panel’s on the right:

All of this structure helps me in a few key ways:
- everything is always structured the same, no matter what set of equipment it was taken with
- it’s trivial to load into WBPP in PixInsight, just load the whole “accept” directory
- data is never scattered, no references for any master calibration frames