zkbt / mosasaurus

Tools for extracting chromatic lightcurves from MultiObject Spectrograph data.
MIT License
3 stars 1 forks source link

filesfor___.txt - order by prefix #15

Closed hdiamondlowe closed 6 years ago

hdiamondlowe commented 6 years ago

The auto-creation of .txt files that list out header properties and try to get what's a dark and what's a flat is super useful in principle. However if you're like me and take incorrect calibrations half the time but keep a careful written log of what's what, you need to go through and remove lines in these files by hand. This would be no sweat except that the files are in a random order. If they could be ordered by "fileprefix" that would be most helpful!

zkbt commented 6 years ago

We took care of this here. It helps more generally too -- for DIS the filenames are custom-set based on the object, so this can make it even easier to pull out subsets of the exposures! There was an extra change related to this that I put into #17, which is a list of "wordstoavoid" when searching for files of a particular type. This was mostly to solve the "I want all the 'Ar' files, but I don't want the 'Dark' or 'Quartz' files (even though their name includes 'ar')" problem.