source: flexpart.git/preprocessing/flex_extract_ecgate_V6.0/ecmwf_idc_ops_multi_footer @ ba05105

10.4.1_peseiFPv9.3.1FPv9.3.1b_testingFPv9.3.2GFS_025bugfixes+enhancementsdevfp9.3.1-20161214-nc4grib2nc4_repairrelease-10release-10.4.1scaling-bugunivie
Last change on this file since ba05105 was ba05105, checked in by flexpart <>, 9 years ago

add preprocessing routines flex_extract_ecgate_V6.0

  • Property mode set to 100644
File size: 687 bytes
Line 
1# go to next date 12 hours later
2
3       if [ $(($MSJ%100)) -eq 0 ] ; then
4          MSJ=$(($MSJ+12))
5       else
6          MSJ=$(($MSJ+88))
7       fi
8
9       
10          if [ $MSJ_MONTH -eq 2 ]
11          then
12          DDD=28
13          [ `expr \$YYY \% 4` -eq 0 ] && DDD=29
14          elif [ $MSJ_MONTH -eq 4 -o $MSJ_MONTH -eq 6 -o $MSJ_MONTH -eq 9 -o $MSJ_MONTH -eq 11 ]
15          then
16          DDD=30
17          else
18          DDD=31
19          fi
20
21       if [ $MSJ_DAY -gt $DDD ] ; then
22          MSJ_DAY=1
23          MSJ_MONTH=$(($MSJ_MONTH+1))
24       fi
25       if [ $MSJ_MONTH -gt 12 ] ; then
26          MSJ_MONTH=1
27          MSJ_YEAR=$(($MSJ_YEAR+1))
28       fi
29       
30
31
32# close
33done
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG