Changeset 5851 for BOL/LMDZ_Setup


Ignore:
Timestamp:
Oct 6, 2025, 6:05:47 PM (7 weeks ago)
Author:
fhourdin
Message:

Improvement era2gcm.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup/era2gcm.sh

    r5850 r5851  
    3333resol_rea=075
    3434
    35 #------------------------------------------------
    36 
    37 ERA5_PATH="/gpfsstore/rech/psl/rpsl376/ergon/ERA5/"
    38 ERAI_PATH="/gpfsstore/rech/psl/rpsl376/ergon/ERAI/"
    39 ERAI_PATH="/lustre/fswork/projects/rech/wfe/rgzi027/LMDZ/pub/3DInputData/ReAnalyses/ERAI"
    40 #/lustre/fswork/projects/rech/wfe/rgzi027/LMDZ/pub/3DInputData/ReAnalyses/ERAI/NETCDF/GLOBAL_075/4xdaily/AN_PL/2014/
    41 
    42 #@ADS ERA5_PATH="/lus/work/CT1/cad15221/abarral/ERA_TMP/"  # /!\ temp for test only !
    43 #@ADS ERAI_PATH=""  # /!\ temp for tests only!
    44 #@ADS echo "/!\ Nudging files are not available on Adastra for now !"; exit 1  # comment this line for tests
    45 #@ADS SCRATCH=$SCRATCHDIR
    46 
    47 set -u  # raise error if path if unset on machine
    48 echo "Paths: $ERA5_PATH $ERAI_PATH $SCRATCH"
    49 set +u
     35# Location of shared files
     36ERA_PATH="/gpfsstore/rech/psl/rpsl376/ergon/$rea/"
     37
     38# New location.
     39# The idea is to get files from the LMDZ web site and store them locally
     40# once for all.
     41# http://lmdz.lmd.jussieu.fr/pub/3DInputData/$rea
     42ERA_PATH="$LMDZ_INIT/3DInputData/ReAnalyses/$rea"
    5043
    5144GRID_DIR=./INIT
     
    119112   if [ "$rea" = "ERA5" ] ; then
    120113     if [[ $an -ge 2022 ]] ; then
    121       ANA_DIR="$ERA5_PATH/NETCDF/GLOBAL_025/hourly"
     114      ANA_DIR="$ERA_PATH/NETCDF/GLOBAL_025/hourly"
    122115      suf="ap1e5.GLOBAL_025"
    123116     else
    124       ANA_DIR="$ERA5_PATH/NETCDF/GLOBAL_025/4xdaily"
     117      ANA_DIR="$ERA_PATH/NETCDF/GLOBAL_025/4xdaily"
    125118      suf="aphe5.GLOBAL_025"
    126119     fi
    127120   elif [ "$rea" = "ERAI" ] ; then
    128       ANA_DIR="$ERAI_PATH/NETCDF/GLOBAL_$resol_rea/4xdaily"
     121      ANA_DIR="$ERA_PATH/NETCDF/GLOBAL_$resol_rea/4xdaily"
    129122      suf="aphei.GLOBAL_$resol_rea"
    130123   fi
     
    153146        # Automatically downloading reanalysis if needed
    154147        ############################################################################
    155         if [ "$( echo $ERAI_PATH | grep 3DInputData )" != "" ] ; then
     148        if [ "$( echo $ERA_PATH | grep 3DInputData )" != "" ] ; then
    156149             if [ ! -f $file_rea ] ; then
    157150                mkdir -p $( dirname $file_rea )
Note: See TracChangeset for help on using the changeset viewer.