Changeset 4168 for LMDZ6/trunk


Ignore:
Timestamp:
Jun 9, 2022, 5:29:22 PM (2 years ago)
Author:
evignon
Message:

deuxieme phase de travail pour l'inclusion de make_sso
Ehouarn, David, Romain , Etienne

Location:
LMDZ6/trunk/tools/make_sso
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/tools/make_sso/README

    r4167 r4168  
    99- ifortran
    1010- netcdf
     11- an adequate environment defined in make_sso.env
    1112
    1213Options:
    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
    1732
    1833Example to compile then run make_sso from a high-resolution Relief.nc file to
     
    2136./compile
    2237file=Relief.nc
    23 ./make_sso.e -i $file -res 180 91 -v z
     38./make_sso -i $file -res 180 91 -v z
    2439
    25 Output file is ${file}_180x91
     40Output file is make_sso_180x91_${file}
    2641
  • 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
     1source make_sso.env
     2
    193
    204if [ ! -f Relief.nc ]; then
    215echo Attention missing Relief.nc file
    226echo I download it
    23 wget https://web.lmd.jussieu.fr/~lmdz/pub/3DInputData/Limit/Relief.nc
     7wget --no-check-certificate -nv https://web.lmd.jussieu.fr/~lmdz/pub/3DInputData/Limit/Relief.nc
    248fi
    259
    2610if [ ! -d SPHEREPACK ]; then
    2711echo Missing SPHEREPACK library. I download it
    28 wget https://web.lmd.jussieu.fr/~lmdz/pub/import/spherepack3.2.tgz
     12wget --no-check-certificate -nv https://web.lmd.jussieu.fr/~lmdz/pub/import/spherepack3.2.tgz
    2913tar -xvf spherepack3.2.tgz
     14mv spherepack3.2 SPHEREPACK
    3015mv SPHEREPACK/make.inc SPHEREPACK/make.inc.old
     16
     17# copy more adequate make.inc to SPHEREPACK
    3118mv make.inc SPHEREPACK/.
     19# copy corrected Makefile to SPHEREPACK/test
     20mv SPHEREPACK/test/Makefile SPHEREPACK/test/Makefile.old
     21mv  Makefile.test SPHEREPACK/test/Makefile
     22# clean up
    3223rm spherepack3.2.tgz
    3324fi
  • LMDZ6/trunk/tools/make_sso/make_sso_SpherePack.f90

    r4167 r4168  
    453453  res_in=TRIM(int2str(nlon_in))//'x'//TRIM(int2str(nlat_in))
    454454  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)
    456456  fnam=f_ou
    457457  CALL nc(NF90_CREATE(f_ou,NF90_CLOBBER,fID))
Note: See TracChangeset for help on using the changeset viewer.