Where --isodate specifies that the code should only consider tiles after a specific date and --mtldir uses a different directory to the standard $MTL_DIR environment variable. You'd need to add --purge to these commands to actually remove entries from files (but be really careful if you try that!). Without --purge the code just prints the list of non-overlapping tiles.
I've created an example run of purge_mtl (for both DARK and BRIGHT) in /global/cscratch1/sd/adamyers/fakesurveyops/mtl. The top line results were:
DARK
1163 targets were removed from the ledgers in /global/cscratch1/sd/adamyers/fakesurveyops/mtl/main/secondary/dark
32141 targets were removed from the ledgers in /global/cscratch1/sd/adamyers/fakesurveyops/mtl/main/dark
8 tiles were removed from the MTL tile file at /global/cscratch1/sd/adamyers/fakesurveyops/mtl/scnd-mtl-done-tiles.ecsv
8 tiles were removed from the MTL tile file at /global/cscratch1/sd/adamyers/fakesurveyops/mtl/mtl-done-tiles.ecsv
BRIGHT
2500 targets were removed from the ledgers in /global/cscratch1/sd/adamyers/fakesurveyops/mtl/main/secondary/bright
227982 targets were removed from the ledgers in /global/cscratch1/sd/adamyers/fakesurveyops/mtl/main/bright
56 tiles were removed from the MTL tile file at /global/cscratch1/sd/adamyers/fakesurveyops/mtl/scnd-mtl-done-tiles.ecsv
56 tiles were removed from the MTL tile file at /global/cscratch1/sd/adamyers/fakesurveyops/mtl/mtl-done-tiles.ecsv
Coverage decreased (-0.5%) to 57.299% when pulling 712caee9425d54645edf25dc778e8e21b2b51942 on ADM-purge-MTL into cba082b3b73bc0dfc0e8a790d50a8d5151ba1753 on master.
This PR introduces functionality to:
mtl-done-tiles.ecsv
andscnd-mtl-done-tiles.ecsv
files.The process operates per-program (i.e. it needs to be run once for
BRIGHT
and once forDARK
).Example commands:
Where
--isodate
specifies that the code should only consider tiles after a specific date and--mtldir
uses a different directory to the standard$MTL_DIR
environment variable. You'd need to add--purge
to these commands to actually remove entries from files (but be really careful if you try that!). Without--purge
the code just prints the list of non-overlapping tiles.I've created an example run of
purge_mtl
(for bothDARK
andBRIGHT
) in/global/cscratch1/sd/adamyers/fakesurveyops/mtl
. The top line results were:DARK
1163 targets were removed from the ledgers in
/global/cscratch1/sd/adamyers/fakesurveyops/mtl/main/secondary/dark
32141 targets were removed from the ledgers in/global/cscratch1/sd/adamyers/fakesurveyops/mtl/main/dark
8 tiles were removed from the MTL tile file at/global/cscratch1/sd/adamyers/fakesurveyops/mtl/scnd-mtl-done-tiles.ecsv
8 tiles were removed from the MTL tile file at/global/cscratch1/sd/adamyers/fakesurveyops/mtl/mtl-done-tiles.ecsv
BRIGHT
2500 targets were removed from the ledgers in
/global/cscratch1/sd/adamyers/fakesurveyops/mtl/main/secondary/bright
227982 targets were removed from the ledgers in/global/cscratch1/sd/adamyers/fakesurveyops/mtl/main/bright
56 tiles were removed from the MTL tile file at/global/cscratch1/sd/adamyers/fakesurveyops/mtl/scnd-mtl-done-tiles.ecsv
56 tiles were removed from the MTL tile file at/global/cscratch1/sd/adamyers/fakesurveyops/mtl/mtl-done-tiles.ecsv