Ignore:
Timestamp:
07/04/19 18:56:39 (5 years ago)
Author:
oboucher
Message:

netcdf files are now on /bdd/input4MIPs/ZALT
volc.sh is modified accordingly
zalt files are now compulsory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/CMIP6_FORCING/AER_STRAT/volc.sh

    r4473 r4605  
    11dirpwd=`pwd` 
    22 
     3#original CMIP6 files 
     4vv='v3' 
     5#corrected CMIP6 files + extended in time 
    36vv='v4' 
    47 
    58#--choose the resolution 
    69#--only LR and zoom works fully for now ! 
    7 #lmdz='VVLR' 
    8 #lmdz='VLR_L79' 
    9 #lmdz='VLR' 
    10 lmdz='LR' 
    11 #lmdz='MR' 
     10#lmdz='VVLR_l19' 
     11lmdz='VLR_l39' 
     12#lmdz='VLR_l79' 
     13#lmdz='LR_l79' 
     14#lmdz='MR_l79' 
    1215#--added for Frederique Cheruy 
    13 #lmdz='zoom_128x89' 
     16#lmdz='zoom_128x89_l79' 
    1417 
    1518dirout='/data/'${USER}'/CMIP6/VOLC/'${lmdz}'_'${vv}'/' 
     
    2629lmdz='${lmdz}' 
    2730; 
    28 if (lmdz eq 'VVLR') then begin 
     31if (lmdz eq 'VVLR_l19') then begin 
    2932dimlonlmdz=48 
    3033dimlatlmdz=37 
    3134dimz=19 
    32 output='/data/${USER}/CMIP6/VOLC/VVLR_${vv}/' 
     35output='/data/${USER}/CMIP6/VOLC/${lmdz}_${vv}/' 
    3336latfirst=90. 
    3437latinc=-180./float(dimlatlmdz-1) 
     
    3639endif 
    3740 
    38 if (lmdz eq 'VLR') then begin 
     41if (lmdz eq 'VLR_l39') then begin 
    3942dimlonlmdz=96 
    4043dimlatlmdz=96 
    4144dimz=39 
    42 output='/data/${USER}/CMIP6/VOLC/VLR_${vv}/' 
     45output='/data/${USER}/CMIP6/VOLC/${lmdz}_${vv}/' 
    4346latfirst=90. 
    4447latinc=-180./float(dimlatlmdz-1) 
     
    4649endif 
    4750 
    48 if (lmdz eq 'VLR_L79') then begin 
     51if (lmdz eq 'VLR_l79') then begin 
    4952dimlonlmdz=96 
    5053dimlatlmdz=96 
    5154dimz=79 
    52 output='/data/${USER}/CMIP6/VOLC/VLR_L79_${vv}/' 
     55output='/data/${USER}/CMIP6/VOLC/${lmdz}_${vv}/' 
    5356latfirst=90. 
    5457latinc=-180./float(dimlatlmdz-1) 
     
    5659endif 
    5760 
    58 if (lmdz eq 'LR') then begin 
     61if (lmdz eq 'LR_l79') then begin 
    5962dimlonlmdz=144 
    6063dimlatlmdz=143 
    6164dimz=79 
    62 output='/data/${USER}/CMIP6/VOLC/LR_${vv}/' 
     65output='/data/${USER}/CMIP6/VOLC/${lmdz}_${vv}/' 
    6366latfirst=90. 
    6467latinc=-180./float(dimlatlmdz-1) 
     
    6669endif 
    6770 
    68 if (lmdz eq 'MR') then begin 
     71if (lmdz eq 'MR_l79') then begin 
    6972dimlonlmdz=256 
    7073dimlatlmdz=257 
    7174dimz=79 
    72 output='/data/${USER}/CMIP6/VOLC/MR_${vv}/' 
     75output='/data/${USER}/CMIP6/VOLC/${lmdz}_${vv}/' 
    7376latfirst=90. 
    7477latinc=-180./float(dimlatlmdz-1) 
     
    7679endif 
    7780 
    78 if (lmdz eq 'zoom_128x89') then begin 
     81if (lmdz eq 'zoom_128x89_l79') then begin 
    7982dimlonlmdz=128 
    8083dimlatlmdz=89 
     
    152155zz=fltarr(dimz) 
    153156; 
    154 ;---approximate altitudes of LMDZ - L19 and L39 
    155 ;---NOT RECOMMENDED 
    156 ; 
    157 if (dimz eq 19) then begin 
    158 zz=[ 0.07125416, 0.2402302, 0.4865242, 0.8627044, 1.426484, 2.244528,    $ 
    159     3.394085, 4.952366, 6.950302, 9.26943, 11.59338, 13.71214, 15.83651, $ 
    160     18.27338, 21.16397, 24.63156, 28.9039, 34.57184, 44.51565] ; 
    161 endif 
    162 ; 
    163 if (dimz eq 39) then begin 
    164 zz=[0.0338988, 0.1106602, 0.2139233, 0.3609663, 0.5685416, 0.8534464,     $ 
    165     1.233232, 1.726868, 2.355076, 3.139813, 4.101937, 5.25541, 6.596076,  $ 
    166     8.085103, 9.636482, 11.13441, 12.50023, 13.75765, 15.00424, 16.32207, $ 
    167     17.74403, 19.27899, 20.93219, 22.70941, 24.61736, 26.66389, 28.85831, $ 
    168     31.21178, 33.73778, 36.45278, 39.37709, 42.53607, 45.96209, 49.69786, $ 
    169     53.80379, 58.37727, 63.61497, 70.07092, 80.52708] 
    170 endif 
    171 ; 
    172157;---exact altitudes of LMDZ -- L79 
    173 ;--only exists for LR, MR and zoom_128x89 at the moment 
    174 if (dimz eq 79) then begin 
    175   filename='./zalt_zonmean_${lmdz}_l79_rev.nc' 
    176   NETCDFREAD,filename,'GEOP',zz,dimzz 
    177   NETCDFREAD,filename,'LAT',zzlat,dimzzlat 
    178   NETCDFREAD,filename,'TIME_COUNTER',zztime,dimzztime 
    179   dimzzilat=dimzzlat[0] 
    180   dimzzitime=dimzztime[0] 
    181   ;--becareful zz comes with four dimensions 
    182   ;--lon lat k time  
    183   print, 'GEOP size=', size(zz) 
    184   ;--becareful zzlat comes with South Pole first 
    185   print, 'LAT from zalt field=', zzlat 
    186   if (dimzzilat ne dimlatlmdz) then begin 
    187     print , 'PB dimension latitude' 
    188   endif 
    189 endif 
    190 ; 
    191 if (dimz eq 39) then begin 
    192   filename='./zalt_zonmean_${lmdz}_l39_rev.nc' 
    193   NETCDFREAD,filename,'GEOP',zz,dimzz 
    194   NETCDFREAD,filename,'LAT',zzlat,dimzzlat 
    195   NETCDFREAD,filename,'TIME_COUNTER',zztime,dimzztime 
    196   dimzzilat=dimzzlat[0] 
    197   dimzzitime=dimzztime[0] 
    198   ;--becareful zz comes with four dimensions 
    199   ;--lon lat k time 
    200   print, 'GEOP size=', size(zz) 
    201   ;--becareful zzlat comes with South Pole first 
    202   print, 'LAT from zalt field=', zzlat 
    203   if (dimzzilat ne dimlatlmdz) then begin 
    204     print , 'PB dimension latitude' 
    205   endif 
     158;--only exists for VLR, LR, MR and zoom_128x89 at the moment 
     159; 
     160filename='/bdd/input4MIPs/ZALT/zalt_zonmean_${lmdz}_rev.nc' 
     161NETCDFREAD,filename,'GEOP',zz,dimzz 
     162NETCDFREAD,filename,'LAT',zzlat,dimzzlat 
     163NETCDFREAD,filename,'TIME_COUNTER',zztime,dimzztime 
     164dimzzilat=dimzzlat[0] 
     165dimzzitime=dimzztime[0] 
     166;--becareful zz comes with four dimensions 
     167;--lon lat k time  
     168print, 'GEOP size=', size(zz) 
     169;--becareful zzlat comes with South Pole first 
     170print, 'LAT from zalt field=', zzlat 
     171if (dimzzilat ne dimlatlmdz) then begin 
     172  print , 'PB dimension latitude' 
    206173endif 
    207174; 
     
    578545cd $dirpwd 
    579546 
    580 module load idl 
    581  
    582547idl << eof 
    583548.r netcdf  
Note: See TracChangeset for help on using the changeset viewer.