Created
November 11, 2021 17:45
-
-
Save MiCurry/bd751fffb71332b2817b8761ccc9796a to your computer and use it in GitHub Desktop.
mkmapdata.patch
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
diff --git a/tools/mkmapdata/mkmapdata.sh b/tools/mkmapdata/mkmapdata.sh | |
index 531ca5a6..8f8bedcd 100755 | |
--- a/tools/mkmapdata/mkmapdata.sh | |
+++ b/tools/mkmapdata/mkmapdata.sh | |
@@ -44,7 +44,7 @@ case $hostname in | |
##cheyenne | |
cheyenne* | r* ) | |
if [ -z "$CSMDATA" ]; then | |
- CSMDATA=/glade/p/cesm/cseg/inputdata | |
+ CSMDATA=/glade/p/cesmdata/inputdata | |
fi | |
;; | |
@@ -238,7 +238,7 @@ else | |
QUERYARGS="-res $res -options lmask=nomask" | |
# Find the output grid file for this resolution using the XML database | |
- QUERYFIL="$QUERY -var scripgriddata $QUERYARGS -onlyfiles" | |
+ QUERYFIL="$QUERY -var=scripgriddata $QUERYARGS -onlyfiles" | |
if [ "$verbose" = "YES" ]; then | |
echo $QUERYFIL | |
fi | |
@@ -246,11 +246,11 @@ else | |
echo "Using default scrip grid file: $GRIDFILE" | |
# Determine extra information about the destination grid file | |
- DST_LRGFIL=`$QUERY -var scripgriddata_lrgfile_needed $QUERYARGS` | |
- DST_TYPE=`$QUERY -var scripgriddata_type $QUERYARGS` | |
+ DST_LRGFIL=`$QUERY -var=scripgriddata_lrgfile_needed $QUERYARGS` | |
+ DST_TYPE=`$QUERY -var=scripgriddata_type $QUERYARGS` | |
if [ "$DST_TYPE" = "UGRID" ]; then | |
# For UGRID, we need extra information: the meshname variable | |
- dst_meshname=`$QUERY -var scripgriddata_meshname $QUERYARGS` | |
+ dst_meshname=`$QUERY -var=scripgriddata_meshname $QUERYARGS` | |
DST_EXTRA_ARGS="$DST_EXTRA_ARGS --dst_meshname $dst_meshname" | |
fi | |
fi | |
@@ -319,7 +319,7 @@ do | |
QUERYARGS="-res $grid -options lmask=$lmask,glc_nec=10 " | |
- QUERYFIL="$QUERY -var scripgriddata $QUERYARGS -onlyfiles" | |
+ QUERYFIL="$QUERY -var=scripgriddata $QUERYARGS -onlyfiles" | |
if [ "$verbose" = "YES" ]; then | |
echo $QUERYFIL | |
fi | |
@@ -333,11 +333,11 @@ do | |
# Determine extra information about the source grid file | |
SRC_EXTRA_ARGS[nfile]="" | |
- SRC_LRGFIL[nfile]=`$QUERY -var scripgriddata_lrgfile_needed $QUERYARGS` | |
- SRC_TYPE[nfile]=`$QUERY -var scripgriddata_type $QUERYARGS` | |
+ SRC_LRGFIL[nfile]=`$QUERY -var=scripgriddata_lrgfile_needed $QUERYARGS` | |
+ SRC_TYPE[nfile]=`$QUERY -var=scripgriddata_type $QUERYARGS` | |
if [ "${SRC_TYPE[nfile]}" = "UGRID" ]; then | |
# For UGRID, we need extra information: the meshname variable | |
- src_meshname=`$QUERY -var scripgriddata_meshname $QUERYARGS` | |
+ src_meshname=`$QUERY -var=scripgriddata_meshname $QUERYARGS` | |
SRC_EXTRA_ARGS[nfile]="${SRC_EXTRA_ARGS[nfile]} --src_meshname $src_meshname" | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment