Skip to content

Commit

Permalink
Update mask_satellite nb
Browse files Browse the repository at this point in the history
  • Loading branch information
haticekaratay committed Oct 4, 2024
1 parent 05aba8c commit 95d921c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions notebooks/DrizzlePac/mask_satellite/mask_satellite.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@
" os.rename(file, os.path.basename(file))\n",
" for file in flc_download['Local Path']:\n",
" os.rename(file, os.path.basename(file))\n",
" shutil.rmtree('mastDownload')\n",
"else:\n",
" pass"
" shutil.rmtree('mastDownload')"
]
},
{
Expand Down Expand Up @@ -273,9 +271,7 @@
" os.rename(file, os.path.basename(file))\n",
" for file in flc_download['Local Path']:\n",
" os.rename(file, os.path.basename(file))\n",
" shutil.rmtree('mastDownload')\n",
"else:\n",
" pass"
" shutil.rmtree('mastDownload')"
]
},
{
Expand Down Expand Up @@ -533,7 +529,7 @@
"\n",
"mdz = fits.getval(input_images[0], 'MDRIZTAB', ext=0).split('$')[1]\n",
"print('Searching for the MDRIZTAB file:', mdz)\n",
"get_mdriztab = os.system('crds sync --hst --files ' + mdz + ' --output-dir '+os.environ['jref'])"
"!crds sync --hst --files {mdz} --output-dir {os.environ['jref']}"
]
},
{
Expand Down Expand Up @@ -998,7 +994,7 @@
"\n",
"mdz = fits.getval(input_images[0], 'MDRIZTAB', ext=0).split('$')[1]\n",
"print('Searching for the MDRIZTAB file:', mdz)\n",
"get_mdriztab = os.system('crds sync --hst --files '+mdz+' --output-dir '+os.environ['iref'])"
"!crds sync --hst --files {mdz} --output-dir {os.environ['iref']}"
]
},
{
Expand Down Expand Up @@ -1162,7 +1158,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
"version": "3.12.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 95d921c

Please sign in to comment.