Skip to content

Commit

Permalink
fixed jref environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jryon committed Dec 3, 2018
1 parent 97f7d9c commit d251a1b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions notebooks/acs_cte_forward_model_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib notebook\n",
"import os\n",
"import shutil\n",
"import glob\n",
Expand Down Expand Up @@ -182,7 +181,7 @@
"source": [
"os.environ['CRDS_SERVER'] = 'https://hst-crds.stsci.edu'\n",
"os.environ['CRDS_PATH'] = './crds_cache'\n",
"os.environ['JREF'] = './crds_cache/references/hst/acs/'\n",
"os.environ['jref'] = './crds_cache/references/hst/acs/'\n",
"\n",
"!crds bestrefs --update-bestrefs --sync-references=1 --files jd0q14ctq_flc.fits"
]
Expand Down Expand Up @@ -221,13 +220,13 @@
"metadata": {},
"outputs": [],
"source": [
"# The JREF environment variable gives the directory containing the reference files\n",
"flat_hdu = fits.open('{}/{}'.format(os.environ['JREF'],flat))\n",
"# The jref environment variable gives the directory containing the reference files\n",
"flat_hdu = fits.open('{}/{}'.format(os.environ['jref'],flat))\n",
"\n",
"flat_wfc1 = flat_hdu[4].data\n",
"flat_wfc2 = flat_hdu[1].data\n",
"\n",
"dkc_hdu = fits.open('{}/{}'.format(os.environ['JREF'],dkc))\n",
"dkc_hdu = fits.open('{}/{}'.format(os.environ['jref'],dkc))\n",
"\n",
"dkc_wfc1 = dkc_hdu[4].data\n",
"dkc_wfc2 = dkc_hdu[1].data\n",
Expand All @@ -237,15 +236,15 @@
"dkc_wfc1[dkc_wfc1 < 0.] = 0.\n",
"dkc_wfc2[dkc_wfc2 < 0.] = 0.\n",
"\n",
"bias_hdu = fits.open('{}/{}'.format(os.environ['JREF'],bias))\n",
"bias_hdu = fits.open('{}/{}'.format(os.environ['jref'],bias))\n",
"\n",
"err_bias_wfc1 = bias_hdu[5].data\n",
"err_bias_wfc2 = bias_hdu[2].data\n",
"\n",
"dq_bias_wfc1 = bias_hdu[6].data\n",
"dq_bias_wfc2 = bias_hdu[3].data\n",
"\n",
"# flash_dhu = fits.open('{}/{}'.format(os.environ['JREF'],flash))\n",
"# flash_dhu = fits.open('{}/{}'.format(os.environ['jref'],flash))\n",
"\n",
"# flash_wfc1 = flash_hdu[4].data\n",
"# flash_wfc2 = flash_hdu[1].data"
Expand Down

0 comments on commit d251a1b

Please sign in to comment.