Skip to content

Commit

Permalink
Merge branch 'main' of github.jpl.nasa.gov:unity-sds/sips_spss_build …
Browse files Browse the repository at this point in the history
…into main
  • Loading branch information
mcduffie committed Aug 3, 2022
2 parents a1f332f + ee42b22 commit 074a905
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions spss/interface/run_l1b_pge.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
"# Where PGE output files and log files get written\n",
"output_path = \"/pge/out\"\n",
"\n",
"# Where PGE static config files\n",
"config_static_path = \"/pge/static\"\n",
"\n",
"# Enable verbose logging\n",
"verbose = True"
]
Expand All @@ -71,9 +74,16 @@
"metadata": {},
"outputs": [],
"source": [
"# forcing absolute path\n",
"input_path = os.path.abspath(input_path)\n",
"output_path = os.path.abspath(output_path)"
"# converting to absolute path if relative paths passed in\n",
"\n",
"if not input_path.startswith('/'):\n",
" input_path = os.path.abspath(input_path)\n",
"\n",
"if not output_path.startswith('/'):\n",
" output_path = os.path.abspath(output_path)\n",
"\n",
"if not config_static_path.startswith('/'):\n",
" config_static_path = os.path.abspath(config_static_path)"
]
},
{
Expand All @@ -91,11 +101,8 @@
"metadata": {},
"outputs": [],
"source": [
"# Where PGE static config files\n",
"config_static_path = \"/pge/static\"\n",
"\n",
"# Source XML file to be modified with execution parameters\n",
"config_template_filename = \"/pge/static/pge_config_template.xml\"\n",
"config_template_filename = os.path.join(config_static_path, \"pge_config_template.xml\")\n",
"\n",
"# Where config file gets written\n",
"config_output_filename = os.path.join(output_path, \"l1b_config.xml\")\n",
Expand Down

0 comments on commit 074a905

Please sign in to comment.