Ignore:
Timestamp:
03/04/22 14:23:14 (2 years ago)
Author:
omamce
Message:

O.M: small corrections in MOSAIX

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/MOSAIX/CalvingWeights.py

    r6066 r6090  
    413413if myargs.type in ['iceberg', 'iceshelf' ]: f_calving.attrs['originalFiles'] = myargs.repartition_file 
    414414f_calving.attrs['associatedFiles'] = grids + " " + areas + " " + masks 
    415 f_calving.attrs['directory']       = os.getcwd () 
     415 
    416416f_calving.attrs['description']     = "Generated with XIOS http://forge.ipsl.jussieu.fr/ioserver and MOSAIX https://forge.ipsl.jussieu.fr/igcmg/browser/TOOLS/MOSAIX" 
    417417f_calving.attrs['title']           = calving 
    418 f_calving.attrs['Program']         = "Generated by " + sys.argv[0] + " with flags " + str(sys.argv[1:]) 
     418f_calving.attrs['Program']         = "Generated by " + sys.argv[0] + " with flags " + ' '.join (sys.argv[1:])  
     419 
    419420f_calving.attrs['repartitionType'] = myargs.type 
    420421if myargs.type in [ 'iceberg', 'iceshelf' ] : 
     
    425426f_calving.attrs['masksFile']       = masks 
    426427f_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() 
     428try    : f_calving.attrs['directory'] = os.getcwd () 
     429except : pass 
     430try    : f_runoff.attrs['HOSTNAME'] = platform.node () 
     431except : pass 
     432try    : f_runoff.attrs['LOGNAME']  = os.getlogin () 
     433except : pass 
     434try    : f_runoff.attrs['Python']   = "Python version " +  platform.python_version () 
     435except : pass 
     436try    : f_runoff.attrs['OS']       = platform.system () 
     437except : pass 
     438try    : f_runoff.attrs['release']  = platform.release () 
     439except : pass 
     440try    : f_runoff.attrs['hardware'] = platform.machine () 
     441except : pass 
    433442f_calving.attrs['conventions']     = "SCRIP" 
    434443if src_name == 'lmd' : f_calving.attrs['source_grid'] = "curvilinear" 
Note: See TracChangeset for help on using the changeset viewer.