Changeset 4168 for LMDZ6/trunk
- Timestamp:
- Jun 9, 2022, 5:29:22 PM (2 years ago)
- Location:
- LMDZ6/trunk/tools/make_sso
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/tools/make_sso/README
r4167 r4168 9 9 - ifortran 10 10 - netcdf 11 - an adequate environment defined in make_sso.env 11 12 12 13 Options: 13 -i input_relief_file 14 -res nlon nlat : of the output grid 15 -v : orography variable name of input file 16 -m : option 14 15 ./make_sso -i <file> -v <var> -res <nlon> <nlat> -m <mask> -f <ffac> -t 16 <tfac> 17 18 Where: 19 20 <file>: input file name 21 <var> : height variable name 22 <nlon>: number of distinct longitude points of output grid (iim) 23 <nlat>: number of distinct latitude points of output grid (jjm+1) 24 <mask>: can be: 1. a mask file (o2a.nc) 25 2. "noro": computed with grid_noro 26 default: 3. "spec": computed internally 27 <ffac>: filtering width: ffac*Do (Do:output resol.) 28 <tfac>: transition width: Di+tfac*(Do-Di) (Di: input resol.) 29 30 Note that latitudes grid contains both poles. 31 17 32 18 33 Example to compile then run make_sso from a high-resolution Relief.nc file to … … 21 36 ./compile 22 37 file=Relief.nc 23 ./make_sso .e-i $file -res 180 91 -v z38 ./make_sso -i $file -res 180 91 -v z 24 39 25 Output file is ${file}_180x9140 Output file is make_sso_180x91_${file} 26 41 -
LMDZ6/trunk/tools/make_sso/compile
r4167 r4168 1 case ${HOSTNAME:0:5} in 2 irene) 3 module unload netcdf-fortran 4 module unload netcdf-c 5 module load netcdf-c 6 module load netcdf-fortran 7 module load fftw3/gnu 8 netcdf="-L$NETCDF_LIBDIR" 9 ;; 10 cicla) 11 module load intel 12 module load netcdf4/4.3.3.1-ifort 13 NETCDF=$(which ncdump); NETCDF=${NETCDF%%/bin*} 14 NETCDFFORTRAN_INCDIR=$NETCDF/include 15 NETCDFFORTRAN_LIBDIR=$NETCDF/lib 16 netcdf="" 17 ;; 18 esac 1 source make_sso.env 2 19 3 20 4 if [ ! -f Relief.nc ]; then 21 5 echo Attention missing Relief.nc file 22 6 echo I download it 23 wget https://web.lmd.jussieu.fr/~lmdz/pub/3DInputData/Limit/Relief.nc7 wget --no-check-certificate -nv https://web.lmd.jussieu.fr/~lmdz/pub/3DInputData/Limit/Relief.nc 24 8 fi 25 9 26 10 if [ ! -d SPHEREPACK ]; then 27 11 echo Missing SPHEREPACK library. I download it 28 wget https://web.lmd.jussieu.fr/~lmdz/pub/import/spherepack3.2.tgz12 wget --no-check-certificate -nv https://web.lmd.jussieu.fr/~lmdz/pub/import/spherepack3.2.tgz 29 13 tar -xvf spherepack3.2.tgz 14 mv spherepack3.2 SPHEREPACK 30 15 mv SPHEREPACK/make.inc SPHEREPACK/make.inc.old 16 17 # copy more adequate make.inc to SPHEREPACK 31 18 mv make.inc SPHEREPACK/. 19 # copy corrected Makefile to SPHEREPACK/test 20 mv SPHEREPACK/test/Makefile SPHEREPACK/test/Makefile.old 21 mv Makefile.test SPHEREPACK/test/Makefile 22 # clean up 32 23 rm spherepack3.2.tgz 33 24 fi -
LMDZ6/trunk/tools/make_sso/make_sso_SpherePack.f90
r4167 r4168 453 453 res_in=TRIM(int2str(nlon_in))//'x'//TRIM(int2str(nlat_in)) 454 454 res_ou=TRIM(int2str(nlon_ou))//'x'//TRIM(int2str(nlat_ou)) 455 f_ou= TRIM(f_in)//'_'//TRIM(res_ou)455 f_ou='make_sso_'//TRIM(res_ou)//'_'//TRIM(f_in) 456 456 fnam=f_ou 457 457 CALL nc(NF90_CREATE(f_ou,NF90_CLOBBER,fID))
Note: See TracChangeset
for help on using the changeset viewer.