-
Notifications
You must be signed in to change notification settings - Fork 20
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
fixed absolute paths and tested batch scripts #21
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,11 @@ | |
#SBATCH [email protected] | ||
|
||
# PyGSIdir=path/to/PyGSI_Directory | ||
PyGSIdir=/scratch1/NCEPDEV/da/$LOGNAME/PyGSI | ||
OUTDIR=/scratch1/NCEPDEV/da/$LOGNAME/PyGSI/ | ||
PyGSIdir=../ | ||
OUTDIR=../ | ||
YAML=$PyGSIdir/test_conv_yaml.yaml | ||
|
||
# load environment needed to run python scripts | ||
source $PyGSIdir/modulefiles/modulefile.PyGSI.hera.bash | ||
|
||
python $PyGSIdir/scripts/mp_plot_convDiags.py -n 20 -y $YAML -o $OUTDIR | ||
python $PyGSIdir/scripts/mp_plot_conv_diags.py -n 20 -y $YAML -o $OUTDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
#!/bin/bash | ||
#SBATCH -J plot_gsi_diags | ||
#SBATCH -A da-cpu | ||
|
@@ -9,11 +8,11 @@ | |
#SBATCH [email protected] | ||
|
||
# PyGSIdir=path/to/PyGSI_Directory | ||
PyGSIdir=/scratch1/NCEPDEV/da/$LOGNAME/PyGSI | ||
OUTDIR=/scratch1/NCEPDEV/da/$LOGNAME/PyGSI/ | ||
PyGSIdir=../ | ||
OUTDIR=../ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same comments as above. |
||
YAML=$PyGSIdir/test_sat_yaml.yaml | ||
|
||
# load environment needed to run python scripts | ||
source $PyGSIdir/modulefiles/modulefile.PyGSI.hera.bash | ||
|
||
python $PyGSIdir/scripts/mp_plot_satDiags.py -n 20 -y $PyGSIdir/sat_test_yaml.yaml -o $OUTDIR | ||
python $PyGSIdir/scripts/mp_plot_sat_diags.py -n 20 -y $YAML -o $OUTDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,11 @@ | |
#SBATCH [email protected] | ||
|
||
# PyGSIdir=path/to/PyGSI_Directory | ||
PyGSIdir=/scratch1/NCEPDEV/da/$LOGNAME/PyGSI | ||
OUTDIR=/scratch1/NCEPDEV/da/$LOGNAME/PyGSI/ncfiles | ||
PyGSIdir=../ | ||
OUTDIR=../ | ||
YAML=$PyGSIdir/test_conv_yaml.yaml | ||
|
||
# load environment needed to run python scripts | ||
source $PyGSIdir/modulefiles/modulefile.PyGSI.hera.bash | ||
|
||
python $PyGSIdir/scripts/create_convNetCDF.py -n 20 -y $YAML -o $OUTDIR | ||
python $PyGSIdir/scripts/create_conv_netcdf.py -n 20 -y $YAML -o $OUTDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,11 @@ | |
#SBATCH [email protected] | ||
|
||
# PyGSIdir=path/to/PyGSI_Directory | ||
PyGSIdir=/scratch1/NCEPDEV/da/$LOGNAME/PyGSI | ||
OUTDIR=/scratch1/NCEPDEV/da/$LOGNAME/PyGSI/ncfiles/radiance | ||
PyGSIdir=../ | ||
OUTDIR=../ | ||
YAML=$PyGSIdir/test_sat_yaml.yaml | ||
|
||
# load environment needed to run python scripts | ||
source $PyGSIdir/modulefiles/modulefile.PyGSI.hera.bash | ||
|
||
python $PyGSIdir/scripts/create_satNetCDF.py -n 20 -y $YAML -o $OUTDIR | ||
python $PyGSIdir/scripts/create_sat_netcdf.py -n 20 -y $YAML -o $OUTDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only works if the scripts directory is the same directory you submit the job from. I think you want to use something like
PyGSIdir=`dirname "$0"```. Note there are two extra
because I can't figure out how to make a literal back tick in GitHub.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also outdir should be somewhere else by default, even if it's just $PyGSIdir/out (may need a mkdir -p $OUTDIR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are several issues with this script:
[email protected]
should be eliminated. A non-NOAA user should be able to run this.Data/
directory and then all paths are relative to that. Relative paths should not be relative to current working directory, and having paths such as../
are trip hazards.