notebooks
notebooks copied to clipboard
CRDS Errors in DrizzlePac Initialization.ipynb
Hi, I was just working through the Initialization.ipynb for DrizzelPac and I noticed the CRDS cell to grab reference files was failing. So, I decided to just run it from the terminal and I get a string of permission errors.
$ crds bestrefs --files ib2j02n5q_flc.fits --sync-references=1 --update-bestrefs
CRDS - INFO - Fetching /grp/crds/cache/mappings/hst/hst_wfpc2_wf4tfile_0250.rmap 678 bytes (1 / 140 files) (0 / 1.7 M bytes)
CRDS - ERROR - Failure downloading file 'hst_wfpc2_wf4tfile_0250.rmap' : Error fetching data for 'hst_wfpc2_wf4tfile_0250.rmap' at CRDS server 'https://hst-crds.stsci.edu' with mode 'http' : [Errno 13] Permission denied: '/grp'
Is there a step I'm missing somewhere here? Attaching a full redirected output too.
Update on this, I added the environment variables to my shell for CRDS as listed here:
export CRDS_PATH="$HOME/crds_cache"
export CRDS_SERVER_URL="https://hst-crds.stsci.edu"
export iref="${CRDS_PATH}/references/hst/iref/"
export jref="${CRDS_PATH}/references/hst/jref/"
export oref="${CRDS_PATH}/references/hst/oref/"
export lref="${CRDS_PATH}/references/hst/lref/"
export nref="${CRDS_PATH}/references/hst/nref/"
export uref="${CRDS_PATH}/references/hst/uref/"
And then I re-ran the command line, and it seems to have succeeded! :) As far as running the notebook, I wonder if the os.environ
lines in that cell need to be updated or if they're sufficient to have that cell execute correctly without having the additional environmental variables set.