Changeset 4298 for TOOLS/MOSAIX/RunoffWeights.py
- Timestamp:
- 02/28/19 14:10:31 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/MOSAIX/RunoffWeights.py
r4259 r4298 55 55 56 56 # Adding arguments 57 parser.add_argument ('--oce' , help='oce model name', type=str, default='eORCA1.2', choices=['ORCA2.3', 'eORCA1.2', 'eORCA025' ] )57 parser.add_argument ('--oce' , help='oce model name', type=str, default='eORCA1.2', choices=['ORCA2.3', 'eORCA1.2', 'eORCA025', 'eORCA025.1'] ) 58 58 parser.add_argument ('--atm' , help='atm model name', type=str, default='LMD9695' ) 59 59 parser.add_argument ('--atmCoastWidth', help='width of the coastal band in atmosphere (in grid points)', type=int, default=1 ) … … 65 65 parser.add_argument ('--areas' , help='masks file name', default='areas.nc' ) 66 66 parser.add_argument ('--masks' , help='areas file name', default='masks.nc' ) 67 parser.add_argument ('--o2a' , help='o2a file name' , default='o2a.nc' )67 parser.add_argument ('--o2a' , help='o2a file name' , default='o2a.nc' ) 68 68 parser.add_argument ('--output', help='output rmp file name', default='rmp_tlmd_to_torc_runoff.nc' ) 69 69 parser.add_argument ('--fmt' , help='NetCDF file format, using nco syntax', default='netcdf4', choices=['classic', 'netcdf3', '64bit', '64bit_data', '64bit_data', 'netcdf4', 'netcdf4_classsic'] ) … … 152 152 oce_grid_imask = oce_grid_imask2D.ravel() 153 153 ## 154 print (" Determination d'une bande cotiere ocean")154 print ("Computes an ocean coastal band") 155 155 156 156 oceLand2D = np.reshape ( np.where (oce_grid_pmask[:] < 0.5, True, False), (oce_jpj, oce_jpi) ) … … 179 179 oceCoast_address = oce_address [oceCoast] 180 180 181 print (" Determination d'une bande cotiere atmosphere" )181 print ("Computes an atmosphere coastal band " ) 182 182 atmLand = np.where (o2aFrac[:] < epsfrac , True, False) 183 183 atmLandFrac = np.where (o2aFrac[:] < zone-epsfrac , True, False) … … 186 186 atmOceanFrac = np.where (o2aFrac[:] > epsfrac , True, False) 187 187 188 ## La suite marche avec LMDZ seulement!!188 ## For LMDZ only !! 189 189 if atmDomainType == 'rectilinear' : 190 190 NNatm = 1+2*atmCoastWidth … … 270 270 f_runoff.o2aFile = o2a 271 271 f_runoff.timeStamp = time.asctime() 272 f_runoff.uuid = areaFile.uuid273 272 f_runoff.HOSTNAME = platform.node() 274 273 #f_runoff.LOGNAME = os.getlogin()
Note: See TracChangeset
for help on using the changeset viewer.