-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add config files for ESSIC server 1. Add config files for ESSIC server 2. Add utility `gen_config_template.sh` for generate templates of config files. * Fix bugs about allocated arrays and loop index 1. Allocate missing vars ifdef DYNAMIC 2. Correct loop index for area_t calculation 3. Fix calculation of lat/lon of T-cells from supergrids x,y 4. Increase character length of file and vars names for flexibility * Add module to read ACSPO SST retrievals 1. Add module to process ACSPO SST retrievals 2. Add support module for I/O of NetCDF files. * Add downloading support to all geo sats. 1. Rename get_l2p_ghrsst_star.py -> get_l2p_ghrsst_geostationary.py now it supports all geostaionary satelites 2. Upate the CI get_data test * Update read_* module for reading SST from geo sats Add support to read SST from geo sats other than AHI/ABI. * update CMake * Add SST/SSS in read_diag 1. Include SST/SSS into read_diag 2. let sst read from read_geostationary,f90 has units in degC, consistent with model sst from read_diag. 3. Revise kmt calculation
- Loading branch information
Showing
25 changed files
with
1,951 additions
and
42 deletions.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
#!/bin/bash | ||
|
||
# BUFR lib is only used for model=hycom | ||
|
||
BUILD_BUFRLIB="yes" # "yes" or "no" | ||
|
||
# variables to set if BUILD_BUFRLIB = "no" | ||
BUFR_DIR=/Users/cda14/Desktop/bufr_util/src/bufr_10.2.3 | ||
BUFR_LIB="-L$BUFR_DIR/ -lbufr" | ||
|
||
# variables to set if BUILD_BUFRLIB = "yes" | ||
CC=gcc | ||
|
||
#-------------------------------------------------------------------- | ||
# build BUFRLIB under support: | ||
# uses F90s and F90_OPT in MACHINE.fortran.sh | ||
# (generally you should not need to modify below if you use | ||
# Intel or GNU compiler. Otherwise you need to modify below ) | ||
# | ||
if [ "$BUILD_BUFRLIB" = "yes" ]; then | ||
BUILD_DIR=$PWD | ||
SUPPORT_DIR="${BUILD_DIR}/../support" | ||
BUFR_DIR_NAME="bufr_10.2.3_LE" | ||
BUFR_PATH="$SUPPORT_DIR/$BUFR_DIR_NAME" | ||
BUFR_URL="https://github.com/cd10kfsu/${BUFR_DIR_NAME}.git" | ||
if [ -e $BUFR_PATH/libbufr.a ]; then | ||
echo "bufrlib found at: ${SUPPORT_DIR}/libbufr.a" | ||
else | ||
echo "bufrlib not found at: $SUPPORT_DIR" | ||
if [ -d $BUFR_PATH ]; then | ||
echo "bufrlib directory found at ($BUFR_PATH) but no libbufs.a: removing this directory" | ||
rm -rf $BUFR_PATH | ||
fi | ||
# clone bufrlibs under support/ | ||
cd $SUPPORT_DIR && git clone $BUFR_URL | ||
cd $BUFR_DIR_NAME | ||
|
||
# setting fortran compiler flags | ||
FC=${F90s} | ||
if [ "$($FC --version|grep -i 'intel\|ifort'|wc -l)0" -gt 0 ]; then | ||
# Intel compiler | ||
FC_BUFR_OPT="$F90_OPT -DUNDERSCORE" | ||
elif [ "$($FC --version|grep -i 'gnu\|gcc\|gfortran'|wc -l)0" -gt 0 ]; then | ||
# GNU compiler | ||
FC_BUFR_OPT="$F90_OPT -DUNDERSCORE -fno-second-underscore" | ||
else | ||
echo "[error] unrecognized Fortran compiler. Exit..." | ||
exit 1 | ||
fi | ||
|
||
# setting C compiler flags | ||
if [ "$($CC --version|grep -i 'intel\|icc'|wc -l)0" -gt 0 ]; then | ||
# Intel compiler | ||
CC_BUFR_OPT="-DUNDERSCORE" | ||
elif [ "$($CC --version|grep -i 'gnu\|gcc'|wc -l)0" -gt 0 ]; then | ||
# GNU compiler | ||
CC_BUFR_OPT="-std=c90 -DUNDERSCORE" | ||
else | ||
echo "[error] unrecognized C compiler. Exit..." | ||
exit 1 | ||
fi | ||
|
||
# print config | ||
echo "=======================================" | ||
echo "config for building BUFRLIBS" | ||
echo "CC=$CC" | ||
echo "CC_BUFR_OPT=$CC_BUFR_OPT" | ||
echo "FC=$FC" | ||
echo "FC_BUFR_OPT=$FC_BUFR_OPT" | ||
|
||
# build libs | ||
$CC $CC_BUFR_OPT -c *.c | ||
$FC $FC_BUFR_OPT -c *.f | ||
ar crv libbufr.a *.o | ||
fi | ||
|
||
cd $BUILD_DIR | ||
|
||
BUFR_DIR="$BUFR_PATH" | ||
BUFR_LIB="-L$BUFR_DIR/ -lbufr" | ||
|
||
echo "BUFR_DIR=$BUFR_DIR" | ||
echo "BUFR_LIB=$BUFR_LIB" | ||
|
||
fi | ||
|
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
F90=mpif90 | ||
F90s="gfortran" #used to compile BUFRLIBS | ||
#F90_OPT='-O2 -ffree-form -ffree-line-length-none' | ||
#STEVE: -mcmodel=medium needed for large model grid sizes (e.g. higher than 1 degree resolution of om3_core3) | ||
# explanation of -mcmodel=medium and -shared-intel: http://software.intel.com/en-us/forums/showthread.php?t=43717#18089 | ||
#F90_OPT='-O2 -ffree-line-length-none -frecord-marker=4 -finit-local-zero' #CDA: for gfortran version < 10 | ||
#F90_OPT='-O2 -ffree-line-length-none -frecord-marker=4 -finit-local-zero -fbacktrace -fcheck=bounds' #CDA: for gfortran version < 10 | ||
F90_OPT='-O2 -ffree-line-length-none -frecord-marker=4 -finit-local-zero -fbacktrace -fcheck=mem,pointer,bounds -fno-realloc-lhs' #CDA: for gfortran version < 10 | ||
F90_OPT="$F90_OPT -fallow-argument-mismatch" #CDA: for gfortran version >= 10 | ||
F90_INLINE= | ||
F90_DEBUG= | ||
F90_IEEE= #'-Kieee' #'-fltconsistency' | ||
F90_OBJECT_FLAG='-c' #STEVE: for some reason, mpxlf doesn't use -c, but rather -g | ||
BLAS=0 | ||
|
||
F90_FPP='-cpp' # for gfortran | ||
|
Empty file.
Empty file.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
MPI_DIR= | ||
MPI_INC= | ||
MPI_LIB= #-lmpi |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
#NETCDF_DIR=/opt/local | ||
#NETCDFF_DIR=/opt/local | ||
#NETCDF_LIB="-L/opt/local/lib -lnetcdff -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -lnetcdf -lnetcdf -lm" | ||
#NETCDF_INC="-I/opt/local/include" | ||
|
||
#NETCDF_DIR=/opt/local | ||
#NETCDFF_DIR=/opt/local | ||
NETCDF_LIB=`nf-config --flibs` | ||
NETCDF_INC=`nf-config --fflags` | ||
echo "[$0] NETCDF_LIB=$NETCDF_LIB" | ||
echo "[$0] NETCDF_INC=$NETCDF_INC" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# generate template for machine config files | ||
# | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "$0: Generate template for machine config files" | ||
echo "usage: " | ||
echo " $0 CONFIG_FILE_PREFIX" | ||
exit 1 | ||
fi | ||
|
||
machine=$1 | ||
|
||
if [ -e flist_LOCAL_GFORTRAN ]; then | ||
rm -f flist_LOCAL_GFORTRAN | ||
fi | ||
|
||
ls LOCAL_GFORTRAN.*.sh > flist_LOCAL_GFORTRAN | ||
while read fname_template; do | ||
fend=$(echo $fname_template|cut -d "." -f2-) | ||
fname_out="${machine}.${fend}" | ||
echo "$fname_out <---------- $fname_template" | ||
cp $fname_template $fname_out | ||
done<flist_LOCAL_GFORTRAN | ||
|
||
if [ -e flist_LOCAL_GFORTRAN ]; then | ||
rm -f flist_LOCAL_GFORTRAN | ||
fi |
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
Oops, something went wrong.