forked from spacetelescope/crds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_test_cache
executable file
·21 lines (17 loc) · 1.25 KB
/
setup_test_cache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/bash -x
usage="Usage: setup_test_cache CRDS_TEST_ROOT <c/u> where 'c' means clean and 'u' means update"
update=${2:-"c"}
export CRDS_TEST_ROOT=${1?$usage}
if [ "$update" = "c" ]; then
(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; mkdir crds-cache-default-test;)
fi
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 3241637sm_tmt.fits 41g16069m_tmg.fits 43h1909cm_tmc.fits 43h1240om_tmc.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