Changeset fb8810c in flex_extract.git for python/FlexpartTools.py


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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG