Changeset 5915 for TOOLS/MOSAIX/RunoffWeights.py
- Timestamp:
- 09/13/21 10:24:46 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/MOSAIX/RunoffWeights.py
r4298 r5915 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'] ) 70 parser.add_argument ('--ocePerio' , help='periodicity of ocean grid', type=int, default=0 ) 70 71 71 72 # Parse command line … … 101 102 print ('atmQuantity : ' + str (myargs.atmQuantity) ) 102 103 print ('oceQuantity : ' + str (myargs.oceQuantity) ) 103 104 105 # Ocean grid periodicity 106 oce_perio=myargs.ocePerio 107 104 108 ### Read coordinates of all models 105 109 ### … … 141 145 oce_grid_imask = 1-maskFile['torc.msk'][:].ravel() 142 146 oce_grid_dims = gridFile['torc.lat'][:].shape 143 if oce_jpi == 182 : oce_perio = 4 # ORCA 2 144 if oce_jpi == 362 : oce_perio = 6 # ORCA 1 145 if oce_jpi == 1442 : oce_perio = 6 # ORCA 025 147 if oce_perio == 0 : 148 if oce_jpi == 182 : oce_perio = 4 # ORCA 2 149 if oce_jpi == 362 : oce_perio = 6 # ORCA 1 150 if oce_jpi == 1442 : oce_perio = 6 # ORCA 025 151 print(f"oce_perio = {oce_perio}") 146 152 oce_grid_pmask = nemo.lbc_mask (np.reshape(oce_grid_imask, (oce_jpj,oce_jpi)), 'T', oce_perio).ravel() 147 153 oce_address = np.arange(oce_jpj*oce_jpi)
Note: See TracChangeset
for help on using the changeset viewer.