File Management

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>

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/

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

I love OpenShift but…

OpenShift Online v2 is about to be shutdown.  That’s a good thing.  Make way for OpenShift Online v3!  But I needed to move my blog.  It was about a 30 day warning and the free tier of v3 isn’t all that great.  It requires a minimum idle time within 72 hours, will idle your apps after 30 min, limit of 1 project and 1 GB ram, and is generally more difficult to get started with than v2.  So I’m now on wordpress.com.  I hear similar stories from others as this transition happens and it’s disappointing.  I really like OpenShift.  But Online has become less useful, at least for now.

Hope I can get back to using it more later!

Boogie Board Sync

Boogie Board Sync

I bought one of these in the spring of 2014 and have used it a lot since.  I was asked today by someone what I liked and disliked about it.  So here it is!

Positive:

  • I am more focused in meetings because I don’t have a computer open in front of me.
  • Hand writing notes helps me remember.
  • Each page written is saved as a PDF and can be viewed later on computer (or phone if you want).
  • I know where all my notes are instead of trying to find out if it’s in a text file, a physical notebook, on my phone, etc.
  • If you accidentally erase a page it’s actually saved in an “erased” folder and can be recovered.  Has saved me several times!

Negative:

  • You cannot edit pages, once erased it’s gone (or saved if you saved it).
  • Over time the writing surface has gotten damaged by use, but it doesn’t impact the bit that saves the writing.  It is just a cosmetic issue.
  • There’s some discoloration of the writing surface over time, but it is cosmetic.
  • Lack of software to manage saved pdf’s but I wrote something for myself that could be improved to be made more general purpose:  https://github.com/jewzaam/bbsync
  • Sometimes it won’t turn on as fast as other times, so you could start writing and it won’t track what is written.  The green light flashes when it’s tracking correctly, so I just try to remember to watch that when it’s initially switched on.

Overall I highly recommend this for anybody that:

  • is happy with taking notes electronically.
  • is technically competent enough to use the saved pdf files.
  • needs or wants written notes saved (there are other boogie board options that don’t save and are cheaper if it’s not a requirement).

Over the last 1.5+ years I have written over 2,200 pages with this thing.. needless to say I’m a fan!

Reading Books to Kids

I’ve been reading books to my kids since my oldest was about 1.5 years old, so 3+ years and counting.  Why is this important to me?  I want my kids to enjoy and respect books.   We read every night before bed with very few exceptions.  It’s such a routine that on the rare night I want to skip reading (maybe because it’s too late or they’re over tired) I can’t because they start bringing me books.  In this post I just wanted to cover some of the things we have read over the years.

First of all, my kids are now 3 and 4.5 years old, both are boys.  This is only slightly important as they’re quite willing to make me read even a random My Little Pony book a friend gave us.

Reading pretty much started with Curious George.  I love these books.  They follow a consistent pattern, but they’re entertaining.  And it’s about a monkey!  I hit a point a few years ago where I could read “Curious George Goes to the Chocolate Factory” with my eyes closed.  My youngest didn’t really like George, though we do read some on a rare occasion still, so we have branched into other things.

Probably one of my favorites so far is “The Snail and the Whale” by Julia Donnaldson and Alex Scheffler.  I love the rhythm of this book.  It’s got a great flow, wonderful illustrations, and keeps the kids entranced.  It’s probably the only book that has gotten them to sleep while reading, which is not to say it’s boring but that it’s got a nice soothing pattern to the text.

A recent addition to our collection is “How to Train a Train” by Jason Carter Eaton  and John Rocco.  My guys are completely train obsessed, so this is an obvious winner for them.  The maker of a great book, though, is that I’m also entertained.

The best books in the last few months, though, have been from the library.  We go at least once every 2 weeks and pick out half a dozen books.  They just wander around the library looking at what is on display stands and pick out something based on the cover picture (hey, they can’t read yet!).  It’s not the individual books, though, that are great about the library though there have been some really good ones.  What I love about it is the control it gives the kids.  They can pick out what they want.  And if they don’t find what the want I encourage and help them ask the librarian for help finding things.  We’ve asked for help to find books on several occasions and I think it’s an important experience, to know that others are there to help them and it’s okay to ask for that help.

I could list dozens of books that I have enjoyed an continue to enjoy reading to my kids, but it’s really kind of exhaustion to think of things in the past.  Maybe I’ll post again for specific books that I find really great instead.

Finally, a blog!

Yea, I finally did it and am adding yet-another-blog to the internet.  I’ve been wanting to do this for a long time and have tried using stuff like blogspot in the past with no success (aka actually using it over time).  But, the things I do at work are interesting enough now and focused in the realm of Open Source Software so I wanted somewhere to post things “in the wild”.

I’m a father of 2 boys, so expect things about them to be mixed in.  I expect this blog to be light on posts and focus on what I find truly interesting and worth sharing.  So, here we go!