Ignore:
Timestamp:
02/28/19 14:10:31 (5 years ago)
Author:
omamce
Message:

O.M. : corection on MOSAIX

  • add ORCA025.1 to known resolutions
  • Correct mask used to generate weigths
  • Suppress the second computation of uuid
  • OceMask? is now ocean fraction like it was in MOZAIC. OceFrac? still exists (and equals OceFrac?)
  • Add Oce2AtmMask as a 1/0 mask
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/MOSAIX/RunoffWeights.py

    r4259 r4298  
    5555 
    5656# Adding arguments 
    57 parser.add_argument ('--oce'          , help='oce model name', type=str, default='eORCA1.2', choices=['ORCA2.3', 'eORCA1.2', 'eORCA025'] ) 
     57parser.add_argument ('--oce'          , help='oce model name', type=str, default='eORCA1.2', choices=['ORCA2.3', 'eORCA1.2', 'eORCA025', 'eORCA025.1'] ) 
    5858parser.add_argument ('--atm'          , help='atm model name', type=str, default='LMD9695'    ) 
    5959parser.add_argument ('--atmCoastWidth', help='width of the coastal band in atmosphere (in grid points)', type=int, default=1 ) 
     
    6565parser.add_argument ('--areas' , help='masks file name', default='areas.nc' ) 
    6666parser.add_argument ('--masks' , help='areas file name', default='masks.nc' ) 
    67 parser.add_argument ('--o2a'   , help='o2a file name'  , default='o2a.nc' ) 
     67parser.add_argument ('--o2a'   , help='o2a file name'  , default='o2a.nc'   ) 
    6868parser.add_argument ('--output', help='output rmp file name', default='rmp_tlmd_to_torc_runoff.nc' ) 
    6969parser.add_argument ('--fmt'   , help='NetCDF file format, using nco syntax', default='netcdf4', choices=['classic', 'netcdf3', '64bit', '64bit_data', '64bit_data', 'netcdf4', 'netcdf4_classsic'] ) 
     
    152152oce_grid_imask = oce_grid_imask2D.ravel() 
    153153##  
    154 print ("Determination d'une bande cotiere ocean") 
     154print ("Computes an ocean coastal band") 
    155155 
    156156oceLand2D  = np.reshape ( np.where (oce_grid_pmask[:] < 0.5, True, False), (oce_jpj, oce_jpi) ) 
     
    179179oceCoast_address         = oce_address        [oceCoast] 
    180180 
    181 print ("Determination d'une bande cotiere atmosphere " ) 
     181print ("Computes an atmosphere coastal band " ) 
    182182atmLand      = np.where (o2aFrac[:] < epsfrac       , True, False) 
    183183atmLandFrac  = np.where (o2aFrac[:] < zone-epsfrac  , True, False) 
     
    186186atmOceanFrac = np.where (o2aFrac[:] > epsfrac       , True, False) 
    187187 
    188 ## La suite marche avec LMDZ seulement !! 
     188## For LMDZ only !! 
    189189if atmDomainType == 'rectilinear' : 
    190190    NNatm = 1+2*atmCoastWidth 
     
    270270f_runoff.o2aFile         = o2a 
    271271f_runoff.timeStamp       = time.asctime() 
    272 f_runoff.uuid            = areaFile.uuid 
    273272f_runoff.HOSTNAME        = platform.node() 
    274273#f_runoff.LOGNAME         = os.getlogin() 
Note: See TracChangeset for help on using the changeset viewer.