lsst-uk / ARCHIVE-lasair-lsst

Alert ingest and processing components for Lasair-LSST
Apache License 2.0
1 stars 0 forks source link

Code for maintaining TNS cache #133

Closed RoyWilliams closed 2 years ago

RoyWilliams commented 2 years ago

There is a new program poll_tns.py --daysAgo=xxx It pulls a CSV file from TNS as here. If the xxx is 1, it gets a delta to the database from yesterday -- published 12.05am today, and if daysAgo=2, from the day before. We will have a cron job with daysAgo=1 for 12.30am every night.

If daysAgo=All, then the tables are truncated, the whole TNS fetched, and the crossmatch rebuilt -- takes about an hour.