forked from spacetelescope/crds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_test_cache
executable file
·19 lines (13 loc) · 1.16 KB
/
setup_test_cache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh -x
export CRDS_TEST_ROOT=$1
(cd $CRDS_TEST_ROOT; rm -rf crds-cache-test; git clone https://github.com/spacetelescope/crds-cache-test.git;)
(cd $CRDS_TEST_ROOT; rm -rf crds-cache-default-test; curl https://hst-crds.stsci.edu/static/crds-cache-default-test.tar.bz2 -o crds-cache-default-test.tar.bz2; tar jxf crds-cache-default-test.tar.bz2; rm crds-cache-default-test.tar.bz2)
export CRDS_PATH=$CRDS_TEST_ROOT/crds-cache-default-test
export CRDS_TESTING_CACHE=$CRDS_TEST_ROOT/crds-cache-test
export CRDS_SERVER_URL=https://hst-crds.stsci.edu
python -m crds.sync --all --stats --log-time --check-sha1sum --repair-files --organize=flat
python -m crds.sync --files l2d0959cj_pfl.fits n7p1032ao_apt.fits q5417413o_pct.fits xaf1429el_wcp.fits y2r1559to_apt.fits y2r16006o_pct.fits y951738kl_hv.fits yas2005el_hv.fits p7d1548qj_idc.fits --stats --log-time
python -m crds.sync --contexts hst_cos.imap --fetch-references --log-time --stats
export CRDS_SERVER_URL=https://jwst-crds.stsci.edu
python -m crds.sync --all --stats --log-time --check-sha1sum --repair-files --organize=flat
python -m crds.sync --files jwst_niriss_flat_0000.fits jwst_miri_flat_0006.fits --stats --log-time