Changeset 4971f63 in flex_extract.git for source/python/classes/EcFlexpart.py
- Timestamp:
- Sep 27, 2018, 12:31:47 PM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 82b624a
- Parents:
- 25b14be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/classes/EcFlexpart.py
r25b14be r4971f63 807 807 over all messages in each grib file which were passed through the 808 808 parameter "inputfiles" to seperate specific parameters into fort.* 809 files. Afterwards the FORTRAN program Convert2is called to convert809 files. Afterwards the FORTRAN program is called to convert 810 810 the data fields all to the same grid and put them in one file 811 811 per unique time step (combination of "date", "time" and … … 866 866 # per date e.g. time = 0, 1200 867 867 # per time e.g. step = 3, 6, 9, 12 868 # flag for Fortran program CONVERT2and file merging868 # flag for Fortran program and file merging 869 869 convertFlag = False 870 870 print('current prod: ', prod) … … 884 884 # Combine all temporary data files into final grib file if 885 885 # gid is at least one time not None. Therefore set convertFlag 886 # to save information. The fortran program CONVERT2is also887 # only doneif convertFlag is True886 # to save information. The Fortran program is also 887 # only executed if convertFlag is True 888 888 convertFlag = True 889 889 # remove old fort.* files and open new ones … … 997 997 f.close() 998 998 999 # call for CONVERT2if flag is True999 # call for Fortran program if flag is True 1000 1000 if convertFlag: 1001 1001 pwd = os.getcwd() … … 1009 1009 1010 1010 # create the corresponding output file fort.15 1011 # (generated by CONVERT2) + fort.16 (paramId 167 and 168)1012 p = subprocess.check_call([os.path.join( c.exedir, 'CONVERT2')],1013 1011 # (generated by Fortran program) + fort.16 (paramId 167 and 168) 1012 p = subprocess.check_call([os.path.join( 1013 c.exedir, _config.FORTRAN_EXECUTABLE)], shell=True) 1014 1014 os.chdir(pwd) 1015 1015
Note: See TracChangeset
for help on using the changeset viewer.