Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRDS Errors in DrizzlePac Initialization.ipynb #180

Open
astrophysaxist opened this issue Jan 15, 2022 · 1 comment
Open

CRDS Errors in DrizzlePac Initialization.ipynb #180

astrophysaxist opened this issue Jan 15, 2022 · 1 comment

Comments

@astrophysaxist
Copy link

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.

out.txt

@astrophysaxist
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant