Changeset 6090 for TOOLS/MOSAIX/CalvingWeights.py
- Timestamp:
- 03/04/22 14:23:14 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/MOSAIX/CalvingWeights.py
r6066 r6090 413 413 if myargs.type in ['iceberg', 'iceshelf' ]: f_calving.attrs['originalFiles'] = myargs.repartition_file 414 414 f_calving.attrs['associatedFiles'] = grids + " " + areas + " " + masks 415 f_calving.attrs['directory'] = os.getcwd () 415 416 416 f_calving.attrs['description'] = "Generated with XIOS http://forge.ipsl.jussieu.fr/ioserver and MOSAIX https://forge.ipsl.jussieu.fr/igcmg/browser/TOOLS/MOSAIX" 417 417 f_calving.attrs['title'] = calving 418 f_calving.attrs['Program'] = "Generated by " + sys.argv[0] + " with flags " + str(sys.argv[1:]) 418 f_calving.attrs['Program'] = "Generated by " + sys.argv[0] + " with flags " + ' '.join (sys.argv[1:]) 419 419 420 f_calving.attrs['repartitionType'] = myargs.type 420 421 if myargs.type in [ 'iceberg', 'iceshelf' ] : … … 425 426 f_calving.attrs['masksFile'] = masks 426 427 f_calving.attrs['timeStamp'] = time.asctime() 427 f_calving.attrs['HOSTNAME'] = platform.node() 428 f_calving.attrs['LOGNAME'] = os.getlogin() 429 f_calving.attrs['Python'] = "Python version " + platform.python_version() 430 f_calving.attrs['OS'] = platform.system() 431 f_calving.attrs['release'] = platform.release() 432 f_calving.attrs['hardware'] = platform.machine() 428 try : f_calving.attrs['directory'] = os.getcwd () 429 except : pass 430 try : f_runoff.attrs['HOSTNAME'] = platform.node () 431 except : pass 432 try : f_runoff.attrs['LOGNAME'] = os.getlogin () 433 except : pass 434 try : f_runoff.attrs['Python'] = "Python version " + platform.python_version () 435 except : pass 436 try : f_runoff.attrs['OS'] = platform.system () 437 except : pass 438 try : f_runoff.attrs['release'] = platform.release () 439 except : pass 440 try : f_runoff.attrs['hardware'] = platform.machine () 441 except : pass 433 442 f_calving.attrs['conventions'] = "SCRIP" 434 443 if src_name == 'lmd' : f_calving.attrs['source_grid'] = "curvilinear"
Note: See TracChangeset
for help on using the changeset viewer.