Skip to content

Commit

Permalink
Updating CRDS cells
Browse files Browse the repository at this point in the history
  • Loading branch information
srosagomez committed Jul 15, 2024
1 parent ae1f8ce commit 98388bb
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions notebooks/HASP/WavelengthAdjustment/WavelengthAdjustment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@
"metadata": {},
"outputs": [],
"source": [
"# os.environ['CRDS_SERVER_URL'] = 'https://hst-crds.stsci.edu'\n",
"# os.environ['CRDS_SERVER'] = 'https://hst-crds.stsci.edu'\n",
"# os.environ['CRDS_PATH'] = './crds_cache'\n",
"# os.environ['lref'] = './crds_cache/references/hst/cos/'\n",
"# os.environ['oref'] = './crds_cache/references/hst/stis/'"
"os.environ['CRDS_SERVER_URL'] = 'https://hst-crds.stsci.edu'\n",
"os.environ['CRDS_SERVER'] = 'https://hst-crds.stsci.edu'\n",
"os.environ['CRDS_PATH'] = './crds_cache'\n",
"os.environ['lref'] = './crds_cache/references/hst/cos/'\n",
"os.environ['oref'] = './crds_cache/references/hst/stis/'"
]
},
{
Expand Down Expand Up @@ -334,7 +334,11 @@
"\n",
"# Now moving all of the original X1Ds to cos_unshifted\n",
"for file in glob.glob(f\"{cos_data}/*x1d*\"):\n",
" shutil.move(file, f\"{cos_unshifted}/{os.path.basename(file)}\")"
" shutil.move(file, f\"{cos_unshifted}/{os.path.basename(file)}\")\n",
"\n",
"# Getting the references files for when we run CalCOS\n",
"%%capture\n",
"!crds bestrefs --files ./cos_ex/cos_data/*raw*.fits --sync-references=1 --update-bestrefs"
]
},
{
Expand Down Expand Up @@ -1841,7 +1845,11 @@
" newpath = f\"{stis_unshifted}/{fits.getval(file, 'FILENAME')}\"\n",
"\n",
" # Moving the actual file\n",
" shutil.move(file, newpath)"
" shutil.move(file, newpath)\n",
"\n",
"# Getting the references files for when we run CalSTIS\n",
"%%capture\n",
"!crds bestrefs --files ./stis_ex/stis_data/*raw*.fits --sync-references=1 --update-bestrefs"
]
},
{
Expand Down

0 comments on commit 98388bb

Please sign in to comment.