Changeset 5915 for TOOLS/MOSAIX/CalvingWeights.py
- Timestamp:
- 09/13/21 10:24:46 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/MOSAIX/CalvingWeights.py
r4298 r5915 44 44 parser.add_argument ('--output' , help='output rmp file name', default='rmp_tlmd_to_torc_calving.nc' ) 45 45 parser.add_argument ('--fmt' , help='NetCDF file format, using nco syntax', default='netcdf4', choices=['classic', 'netcdf3', '64bit', '64bit_data', '64bit_data', 'netcdf4', 'netcdf4_classsic'] ) 46 parser.add_argument ('--ocePerio' , help='periodicity of ocean grid', type=int, default=0 ) 46 47 47 48 # Parse command line … … 110 111 print ('dst_mskutil : ' + str(np.sum(dst_mskutil))) 111 112 113 # Ocean grid periodicity 114 nperio_dst=myargs.ocePerio 115 112 116 # Periodicity masking for NEMO 113 if dst_Name == 'ORCA2.3' : nperio_dst = 4 114 if dst_Name == 'eORCA1.2' : nperio_dst = 6 115 if dst_Name == 'ORCA025' : nperio_dst = 6 116 if dst_Name == 'eORCA025' : nperio_dst = 6 117 if dst_Name == 'eORCA025.1' : nperio_dst = 6 117 if nperio_dst == 0 : 118 if dst_Name == 'ORCA2.3' : nperio_dst = 4 119 if dst_Name == 'eORCA1.2' : nperio_dst = 6 120 if dst_Name == 'ORCA025' : nperio_dst = 6 121 if dst_Name == 'eORCA025' : nperio_dst = 6 122 if dst_Name == 'eORCA025.1' : nperio_dst = 6 118 123 print ('nperio_dst: ' + str(nperio_dst) ) 119 124 dst_mskutil = nemo.lbc_mask (dst_mskutil, nperio=nperio_dst, cd_type='T' )
Note: See TracChangeset
for help on using the changeset viewer.