Changeset fb8810c in flex_extract.git


Ignore:
Timestamp:
Nov 28, 2018, 4:36:11 PM (5 years ago)
Author:
anphi <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
ced5d27
Parents:
a9c7f3e
Message:

changed version string from 7.0.3 to 7.0.4

Location:
python
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • python/FlexpartTools.py

    ra9c7f3e rfb8810c  
    303303    # uncomment if user wants email notification directly from python
    304304    #for t in target:
    305         #p=subprocess.Popen(['mail','-s flex_extract v7.0.3 ERROR', os.path.expandvars(t)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,bufsize=1)
     305        #p=subprocess.Popen(['mail','-s flex_extract v7.0.4 ERROR', os.path.expandvars(t)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,bufsize=1)
    306306        #tr='\n'.join(traceback.format_stack())
    307307        #pout=p.communicate(input=message+'\n\n'+tr)[0]
     
    320320        # Uncomment if user wants notification directly from python
    321321        #for t in target:
    322             #p=subprocess.Popen(['mail','-s flex_extract v7.0.3 normal exit', os.path.expandvars(t)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,bufsize=1)
     322            #p=subprocess.Popen(['mail','-s flex_extract v7.0.4 normal exit', os.path.expandvars(t)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,bufsize=1)
    323323            #pout=p.communicate(input=message+'\n\n')[0]
    324324            #print pout.decode()
     
    10321032
    10331033                    if request == "0":
    1034                         MR.display_info()
    1035                         MR.data_retrieve()
     1034                        MR.displayInfo()
     1035                        MR.dataRetrieve()
    10361036                    elif request == "1":
    10371037                        MR.print_infodata_csv(self.inputdir, self.mreq_count)
    10381038                    elif request == "2":
    10391039                        MR.print_infodata_csv(self.inputdir, self.mreq_count)
    1040                         MR.display_info()
    1041                         MR.data_retrieve()
     1040                        MR.displayInfo()
     1041                        MR.dataRetrieve()
    10421042# The whole else section is only necessary for operational scripts. It could be removed
    10431043                else: # check if mars job requests fields beyond basetime. If yes eliminate those fields since they may not
     
    10711071
    10721072                            if request == "0":
    1073                                 MR.display_info()
    1074                                 MR.data_retrieve()
     1073                                MR.displayInfo()
     1074                                MR.dataRetrieve()
    10751075                            elif request == "1":
    10761076                                MR.print_infodata_csv(self.inputdir, self.mreq_count)
    10771077                            elif request == "2":
    10781078                                MR.print_infodata_csv(self.inputdir, self.mreq_count)
    1079                                 MR.display_info()
    1080                                 MR.data_retrieve()
     1079                                MR.displayInfo()
     1080                                MR.dataRetrieve()
    10811081
    10821082                            maxtime=elimit-datetime.timedelta(hours=12)
     
    10911091                                                date=mfdate, time=mftime,number=self.number,step=mfstep, expver=self.expver, param=pv[0])
    10921092                            if request == "0":
    1093                                 MR.display_info()
    1094                                 MR.data_retrieve()
     1093                                MR.displayInfo()
     1094                                MR.dataRetrieve()
    10951095                            elif request == "1":
    10961096                                MR.print_infodata_csv(self.inputdir, self.mreq_count)
    10971097                            elif request == "2":
    10981098                                MR.print_infodata_csv(self.inputdir, self.mreq_count)
    1099                                 MR.display_info()
    1100                                 MR.data_retrieve()
     1099                                MR.displayInfo()
     1100                                MR.dataRetrieve()
    11011101                        else:
    11021102                            # increase number of mars requests
     
    11081108
    11091109                            if request == "0":
    1110                                 MR.display_info()
    1111                                 MR.data_retrieve()
     1110                                MR.displayInfo()
     1111                                MR.dataRetrieve()
    11121112                            elif request == "1":
    11131113                                MR.print_infodata_csv(self.inputdir, self.mreq_count)
    11141114                            elif request == "2":
    11151115                                MR.print_infodata_csv(self.inputdir, self.mreq_count)
    1116                                 MR.display_info()
    1117                                 MR.data_retrieve()
     1116                                MR.displayInfo()
     1117                                MR.dataRetrieve()
    11181118                    else:
    11191119                        maxtime=elimit-datetime.timedelta(hours=24)
     
    11381138
    11391139                        if request == "0":
    1140                             MR.display_info()
    1141                             MR.data_retrieve()
     1140                            MR.displayInfo()
     1141                            MR.dataRetrieve()
    11421142                        elif request == "1":
    11431143                            MR.print_infodata_csv(self.inputdir, self.mreq_count)
    11441144                        elif request == "2":
    11451145                            MR.print_infodata_csv(self.inputdir, self.mreq_count)
    1146                             MR.display_info()
    1147                             MR.data_retrieve()
     1146                            MR.displayInfo()
     1147                            MR.dataRetrieve()
    11481148
    11491149                        if int(mftimesave.split('/')[0])==0 and int(mfstep.split('/')[0])==0 and pk!='OG_OROLSM__SL':
     
    11601160
    11611161                            if request == "0":
    1162                                 MR.display_info()
    1163                                 MR.data_retrieve()
     1162                                MR.displayInfo()
     1163                                MR.dataRetrieve()
    11641164                            elif request == "1":
    11651165                                MR.print_infodata_csv(self.inputdir, self.mreq_count)
    11661166                            elif request == "2":
    11671167                                MR.print_infodata_csv(self.inputdir, self.mreq_count)
    1168                                 MR.display_info()
    1169                                 MR.data_retrieve()
     1168                                MR.displayInfo()
     1169                                MR.dataRetrieve()
    11701170
    11711171
     
    14731473            key_vals = grib_index_get(iid,key)
    14741474            print key_vals
    1475             if key=='step':
    1476                 l=[]
    1477                 for k in key_vals:
    1478                     l.append(int(k))
    1479                 l.sort()
    1480                 key_vals=[]
    1481                 for k in l:
    1482                     key_vals.append(str(k))
    1483    
    1484                 index_vals.append(key_vals)
     1475
     1476            l=[]
     1477            for k in key_vals:
     1478                l.append(int(k))
     1479            l.sort()
     1480            key_vals=[]
     1481            for k in l:
     1482                key_vals.append(str(k))
     1483
     1484            index_vals.append(key_vals)
    14851485
    14861486
  • python/compilejob.temp

    rb38d750 rfb8810c  
    2525
    2626set -x
    27 export VERSION=7.0.3
     27export VERSION=7.0.4
    2828case $HOST in
    2929  *ecg*)
  • python/install.py

    re18f4b5 rfb8810c  
    106106                data='##PBS -o /scratch/ms/'+c.ecgid+'/'+c.ecuid+'flex_ecmwf.$Jobname.$Job_ID.out'
    107107            if  'export PATH=${PATH}:' in data:
    108                 data+=c.ec_flexpart_root_scripts+'/flex_extract_v7.0.3/python'
     108                data+=c.ec_flexpart_root_scripts+'/flex_extract_v7.0.4/python'
    109109
    110110            if 'cat>>' in data or 'cat >>' in data:
     
    137137            if os.path.abspath(ecd)!=os.path.abspath(c.flexpart_root_scripts):
    138138                os.chdir('/')
    139                 p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.3.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
     139                p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.4.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
    140140                try:
    141                     os.makedirs(c.flexpart_root_scripts+'/flex_extract_v7.0.3')
     141                    os.makedirs(c.flexpart_root_scripts+'/flex_extract_v7.0.4')
    142142                except:
    143143                    pass
    144                 os.chdir(c.flexpart_root_scripts+'/flex_extract_v7.0.3')
    145                 p=subprocess.check_call(['tar','-xvf',ecd+'../flex_extract_v7.0.3.tar'])
    146                 os.chdir(c.flexpart_root_scripts+'/flex_extract_v7.0.3/src')
     144                os.chdir(c.flexpart_root_scripts+'/flex_extract_v7.0.4')
     145                p=subprocess.check_call(['tar','-xvf',ecd+'../flex_extract_v7.0.4.tar'])
     146                os.chdir(c.flexpart_root_scripts+'/flex_extract_v7.0.4/src')
    147147
    148148        os.chdir('../src')
    149         print 'install flex_extract_v7.0.3 software on '+target+' in directory '+os.getcwd()
     149        print 'install flex_extract_v7.0.4 software on '+target+' in directory '+os.getcwd()
    150150        if c.makefile==None:
    151151            makefile='Makefile.local.ifort'
     
    167167    elif target.lower()=='ecgate':
    168168        os.chdir('/')
    169         p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.3.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
     169        p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.4.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
    170170        try:
    171             p=subprocess.check_call(['ecaccess-file-put',ecd+'../flex_extract_v7.0.3.tar','ecgate:/home/ms/'+c.ecgid+'/'+c.ecuid+'/flex_extract_v7.0.3.tar'])
     171            p=subprocess.check_call(['ecaccess-file-put',ecd+'../flex_extract_v7.0.4.tar','ecgate:/home/ms/'+c.ecgid+'/'+c.ecuid+'/flex_extract_v7.0.4.tar'])
    172172        except:
    173173            print 'ecaccess-file-put failed! Probably the eccert key has expired.'
    174174            exit(1)
    175175        p=subprocess.check_call(['ecaccess-job-submit','-queueName',target,ecd+'python/compilejob.ksh'])
    176         print 'compilejob.ksh has been submitted to ecgate for installation in '+c.ec_flexpart_root_scripts+'/flex_extract_v7.0.3'
     176        print 'compilejob.ksh has been submitted to ecgate for installation in '+c.ec_flexpart_root_scripts+'/flex_extract_v7.0.4'
    177177        print 'You should get an email with subject flexcompile within the next few minutes'
    178178    elif target.lower()=='cca':
    179179        os.chdir('/')
    180         p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.3.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
     180        p=subprocess.check_call(['tar','-cvf',ecd+'../flex_extract_v7.0.4.tar',ecd+'python',ecd+'grib_templates',ecd+'src'])
    181181        try:
    182             p=subprocess.check_call(['ecaccess-file-put',ecd+'../flex_extract_v7.0.3.tar','cca:/home/ms/'+c.ecgid+'/'+c.ecuid+'/flex_extract_v7.0.3.tar'])
     182            p=subprocess.check_call(['ecaccess-file-put',ecd+'../flex_extract_v7.0.4.tar','cca:/home/ms/'+c.ecgid+'/'+c.ecuid+'/flex_extract_v7.0.4.tar'])
    183183        except:
    184184            print 'ecaccess-file-put failed! Probably the eccert key has expired.'
     
    186186
    187187        p=subprocess.check_call(['ecaccess-job-submit','-queueName',target,ecd+'python/compilejob.ksh'])
    188         print 'compilejob.ksh has been submitted to cca for installation in '+c.ec_flexpart_root_scripts+'/flex_extract_v7.0.3'
     188        print 'compilejob.ksh has been submitted to cca for installation in '+c.ec_flexpart_root_scripts+'/flex_extract_v7.0.4'
    189189        print 'You should get an email with subject flexcompile within the next few minutes'
    190190    else:
  • python/job.temp.o

    rb38d750 rfb8810c  
    2525
    2626set -x
    27 export VERSION=7.0.3
     27export VERSION=7.0.4
    2828case $HOST in
    2929  *ecg*)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG