Changeset 51f9853 in flex_extract.git for python/getMARSdata.py
- Timestamp:
- Oct 5, 2018, 3:19:05 PM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- ceea034
- Parents:
- aa1af8c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/getMARSdata.py
re18f4b5 r51f9853 60 60 print "start date %s "%(c.start_date) 61 61 print "end date %s "%(c.end_date) 62 63 if c.request == '0' or c.request == '2': 64 print("Retrieving EC data!") 65 elif c.request == '1': 66 print("Printing mars requests!") 62 67 63 68 if ecapi: … … 91 96 92 97 datechunk=datetime.timedelta(days=int(c.date_chunk)) 93 print 'removing content of '+c.inputdir 94 tobecleaned=glob.glob(c.inputdir+'/*_acc_*.'+str(os.getppid())+'.*.grb') 95 for f in tobecleaned: 96 os.remove(f) 98 if c.request == '0' or c.request == '2': 99 print 'removing content of '+c.inputdir 100 tobecleaned=glob.glob(c.inputdir+'/*_acc_*.'+str(os.getppid())+'.*.grb') 101 for f in tobecleaned: 102 os.remove(f) 97 103 98 104 times=None … … 109 115 print "retrieve " + dates + " in dir " + c.inputdir 110 116 try: 111 flexpart.retrieve(server, c.public, dates, times, c.inputdir)117 flexpart.retrieve(server, c.public, dates, c.request, times, c.inputdir) 112 118 except IOError: 113 119 myerror(c,'MARS request failed') … … 125 131 126 132 print "retrieve " + dates + " in dir " + c.inputdir 127 flexpart.retrieve(server, c.public, dates, times, c.inputdir)133 flexpart.retrieve(server, c.public, dates, c.request, times, c.inputdir) 128 134 day+=datechunk 129 135 130 136 131 132 tobecleaned=glob.glob(c.inputdir+'/*__*.'+str(os.getppid())+'.*.grb') 133 for f in tobecleaned: 134 os.remove(f) 137 if c.request == '0' or c.request == '2': 138 print 'removing content of '+c.inputdir 139 tobecleaned=glob.glob(c.inputdir+'/*__*.'+str(os.getppid())+'.*.grb') 140 for f in tobecleaned: 141 os.remove(f) 142 135 143 day=start 136 144 times=None … … 145 153 print "retrieve " + dates + " in dir " + c.inputdir 146 154 147 flexpart.retrieve(server, c.public, dates, times, c.inputdir)155 flexpart.retrieve(server, c.public, dates, c.request, times, c.inputdir) 148 156 day+=datechunk 149 157
Note: See TracChangeset
for help on using the changeset viewer.