-
Notifications
You must be signed in to change notification settings - Fork 2
Rebuilding Collections
fergusL edited this page Jun 28, 2022
·
2 revisions
Sometimes it is necessary to rebuild the data archive (i.e. remove all documents from the raw exposure table) e.g. after a major update. If you are sure you want to do this, do the following:
from huntsman.drp.collection import ExposureCollection
ec = ExposureCollection()
ec.delete_all(documents, really=True) # May take some time
assert not col.find()
This will not affect the raw FITS images.
It may also be necessary to remove metrics from the collection (e.g. to trigger them to be reprocessed). This can be done like this:
ec.clear_calexp_metrics()