- Timestamp:
- Nov 14, 2023, 2:23:10 PM (12 months ago)
- Location:
- BOL/LMDZ_Setup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/LMDZ_Setup/era2gcm_tuto.sh
r4748 r4749 30 30 #------------------------------------------------ 31 31 # Periode : 32 mth_i=20 000133 mth_f=20 000132 mth_i=202201 33 mth_f=202201 34 34 # 35 35 # Guidage en vent(u&v) et/ou temperature, humidite … … 43 43 44 44 GRID_DIR=./INIT 45 GRID_DIR=TEST_PROD_v20230629/INIT/ 45 46 #----------------------------------------------------------------------------- 46 47 #Utilite du block suivant a re-examiner : … … 109 110 echo -------- liens de telechargement a actualiser ---- 110 111 if [ "$rea" = "ERA5" ] ; then 111 if [ $an -le 2021 ] ; then 112 if [ $an -ge 2022 ] ; then 113 ANA_DIR='/gpfsstore/rech/psl/rpsl376/ergon/ERA5/NETCDF/GLOBAL_025/hourly' 114 suf="ap1e5.GLOBAL_025" 115 else 112 116 ANA_DIR='/gpfsstore/rech/psl/rpsl376/ergon/ERA5/NETCDF/GLOBAL_025/4xdaily' 113 117 suf="aphe5.GLOBAL_025" 114 else115 ANA_DIR='/gpfsstore/rech/psl/rpsl376/ergon/ERA5/NETCDF/GLOBAL_025/hourly'116 suf="ap1e5.GLOBAL_025"117 118 fi 118 119 elif [ "$rea" = "ERAI" ] ; then … … 140 141 fvshort="$ANA_DIR/AN_PL/$an/v.$an$mois.$suf.nc" 141 142 ftshort="$ANA_DIR/AN_PL/$an/ta.$an$mois.$suf.nc" 143 fqshort="$ANA_DIR/AN_PL/$an/r.$an$mois.$suf.nc" 142 144 fileu="$SCRATCH/u.$an$mois.$suf.nc" 143 145 filev="$SCRATCH/v.$an$mois.$suf.nc" 144 146 filet="$SCRATCH/ta.$an$mois.$suf.nc" 145 ncap2 -s 'u=float(u)' $fushort $fileu 146 ncap2 -s 'v=float(v)' $fvshort $filev 147 ncap2 -s 'ta=float(ta)' $ftshort $filet 148 #fileq pas teste ; a faire pour fileq aussi ? 149 fileq="$ANA_DIR/AN_PL/$an/r.$an$mois.$suf.nc" 147 fileq="$SCRATCH/r.$an$mois.$suf.nc" 148 if [ "$guide_uv" = "y" ] ; then 149 ncap2 -s 'u=float(u)' $fushort $fileu 150 ncap2 -s 'v=float(v)' $fvshort $filev 151 fi 152 if [ "$guide_t" = "y" ] ; then ncap2 -s 'ta=float(ta)' $ftshort $filet ; fi 153 if [ "$guide_q" = "y" ] ; then ncap2 -s 'q=float(q)' $fqshort $fileq ; fi 150 154 elif [ "$rea" = "ERA5" -a $an -ge 2022 ] ; then 155 echo Extract 0,6,12,18 hours from ERA5 hourly files 151 156 fu1h="$ANA_DIR/AN_PL/$an/u.$an$mois.$suf.nc" 152 157 fv1h="$ANA_DIR/AN_PL/$an/v.$an$mois.$suf.nc" … … 157 162 filet="$SCRATCH/ta.$an$mois.$suf.nc" 158 163 fileq="$SCRATCH/r.$an$mois.$suf.nc" 159 cdo selhour,0,6,12,18 $fu1h $fileu 160 cdo selhour,0,6,12,18 $fv1h $filev 161 cdo selhour,0,6,12,18 $ft1h $filet 162 cdo selhour,0,6,12,18 $fq1h $fileq 164 if [ "$guide_uv" = "y" ] ; then 165 cdo selhour,0,6,12,18 $fu1h $fileu 166 cdo selhour,0,6,12,18 $fv1h $filev 167 fi 168 if [ "$guide_t" = "y" ] ; then cdo selhour,0,6,12,18 $ft1h $filet ; fi 169 if [ "$guide_q" = "y" ] ; then cdo selhour,0,6,12,18 $fq1h $fileq ; fi 163 170 else 164 171 fileu="$ANA_DIR/AN_PL/$an/u.$an$mois.$suf.nc" -
BOL/LMDZ_Setup/test_ERAfiles_JeanZay.sh
r4748 r4749 25 25 echo -------- liens de telechargement a actualiser ---- 26 26 if [ "$rea" = "ERA5" ] ; then 27 if [ $an -le 2021 ] ; then 27 if [ $an -ge 2022 ] ; then 28 ANA_DIR='/gpfsstore/rech/psl/rpsl376/ergon/ERA5/NETCDF/GLOBAL_025/hourly' 29 suf="ap1e5.GLOBAL_025" 30 else 28 31 ANA_DIR='/gpfsstore/rech/psl/rpsl376/ergon/ERA5/NETCDF/GLOBAL_025/4xdaily' 29 32 suf="aphe5.GLOBAL_025" 30 else31 ANA_DIR='/gpfsstore/rech/psl/rpsl376/ergon/ERA5/NETCDF/GLOBAL_025/hourly'32 suf="ap1e5.GLOBAL_025"33 33 fi 34 34 elif [ "$rea" = "ERAI" ] ; then … … 43 43 fi 44 44 45 varu=u46 varv=v47 vart=ta # peut etre parfois juste "t"48 varq=q49 #varp=msl50 45 51 if [ "$rea" = "ERAI" ] ; then52 # variables en format "short" doivent etre transformees en "float" via NCO53 # This is done here with ncap2 ; also possible: "ncpdq --overwrite --unpack fin.nc fout.nc"54 fushort="$ANA_DIR/AN_PL/$an/u.$an$mois.$suf.nc"55 fvshort="$ANA_DIR/AN_PL/$an/v.$an$mois.$suf.nc"56 ftshort="$ANA_DIR/AN_PL/$an/ta.$an$mois.$suf.nc"57 fileu="$SCRATCH/u.$an$mois.$suf.nc"58 filev="$SCRATCH/v.$an$mois.$suf.nc"59 filet="$SCRATCH/ta.$an$mois.$suf.nc"60 ncap2 -s 'u=float(u)' $fushort $fileu61 ncap2 -s 'v=float(v)' $fvshort $filev62 ncap2 -s 'ta=float(ta)' $ftshort $filet63 #fileq pas teste ; a faire pour fileq aussi ?64 fileq="$ANA_DIR/AN_PL/$an/r.$an$mois.$suf.nc"65 elif [ "$rea" = "ERA5" -a $an -ge 2022 ] ; then66 fu1h="$ANA_DIR/AN_PL/$an/u.$an$mois.$suf.nc"67 fv1h="$ANA_DIR/AN_PL/$an/v.$an$mois.$suf.nc"68 ft1h="$ANA_DIR/AN_PL/$an/ta.$an$mois.$suf.nc"69 fq1h="$ANA_DIR/AN_PL/$an/r.$an$mois.$suf.nc"70 fileu="$SCRATCH/u.$an$mois.$suf.nc"71 filev="$SCRATCH/v.$an$mois.$suf.nc"72 filet="$SCRATCH/ta.$an$mois.$suf.nc"73 fileq="$SCRATCH/r.$an$mois.$suf.nc"74 cdo selhour,0,6,12,18 $fu1h $fileu75 cdo selhour,0,6,12,18 $fv1h $filev76 cdo selhour,0,6,12,18 $ft1h $filet77 cdo selhour,0,6,12,18 $fq1h $fileq78 else79 46 fileu="$ANA_DIR/AN_PL/$an/u.$an$mois.$suf.nc" 80 47 filev="$ANA_DIR/AN_PL/$an/v.$an$mois.$suf.nc" 81 48 filet="$ANA_DIR/AN_PL/$an/ta.$an$mois.$suf.nc" 82 49 fileq="$ANA_DIR/AN_PL/$an/r.$an$mois.$suf.nc" 83 fi84 50 85 51 # verifier disponibilite des fichiers
Note: See TracChangeset
for help on using the changeset viewer.