-
Notifications
You must be signed in to change notification settings - Fork 4
Update cheta archive for P016
Tom Aldcroft edited this page Dec 16, 2021
·
1 revision
The TDB P016 update added four new MSIDs AOALTHR1
, AOALTHR2
, AOALTHR3
, AOALTHR4
.
In order to add these three MSIDs to your local cheta archive, do the following.
First make sure that your local archive is up to date by running the cheta_sync
command.
If you skip this step you will corrupt your archive.
cheta_sync
Create a new file p016.txt
with the following contents:
AOALTHR1
AOALTHR2
AOALTHR3
AOALTHR4
Now you can do the sync with one of the following:
cheta_sync --add-msids=p016.txt --server-data-root=<username>@kady.cfa.harvard.edu # HEAD users
cheta_sync --add-msids=p016.txt --server-data-root=<username>@cheru # GRETA users
You should see something that looks roughly like below, followed by a prompt to enter your password:
ska3-sot@cheru% cheta_sync --add-msids=p016.txt [email protected]
2021-12-16 16:43:10,460 Running cheta_update_client_archive version 4.54.0
2021-12-16 16:43:10,460 /proj/sot/ska3/flight/lib/python3.8/site-packages/cheta/update_client_archive.py
2021-12-16 16:43:10,460
2021-12-16 16:43:10,460 Updating client archive at /proj/sot/ska3/flight/data/eng_archive
2021-12-16 16:43:10,460 Reading available cheta archive MSIDs from https://icxc.cfa.harvard.edu/aspect/cheta/
2021-12-16 16:43:10,493 Reading cheta MSIDs list file https://icxc.cfa.harvard.edu/aspect/cheta/sync/msid_contents.pkl.gz
2021-12-16 16:43:10,497 Reading MSID specs from p016.dat
2021-12-16 16:43:10,498 Assembling list of MSIDs that match MSID specs
2021-12-16 16:43:10,505 Found 1 MSIDs for AOALTHR1
2021-12-16 16:43:10,512 Found 1 MSIDs for AOALTHR2
2021-12-16 16:43:10,519 Found 1 MSIDs for AOALTHR3
2021-12-16 16:43:10,526 Found 1 MSIDs for AOALTHR4
2021-12-16 16:43:10,526 Found 4 matching MSIDs total
2021-12-16 16:43:10,552 Found 13 local archive files that are missing and need to be copied
2021-12-16 16:43:10,756 Connecting to kady.cfa.harvard.edu
Assuming this runs successfully you can test with the following, which should show a bunch of False
values:
$ ipython
from cheta import fetch
for msid in ('AOALTHR1', 'AOALTHR2', 'AOALTHR3', 'AOALTHR4'):
for stat in (None, '5min', 'daily'):
dat = fetch.Msid(msid, '2021-12-14', '2021-12-15', stat=stat)
print(msid, stat)
print(dat.vals)