Changeset 4298 for TOOLS/MOSAIX/CalvingWeights.py
- Timestamp:
- 02/28/19 14:10:31 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/MOSAIX/CalvingWeights.py
r4259 r4298 36 36 37 37 # Adding arguments 38 parser.add_argument ('--oce' , help='oce model name', type=str, default='eORCA1.2', choices=['ORCA2.3', 'eORCA1.2', 'eORCA025' ] )38 parser.add_argument ('--oce' , help='oce model name', type=str, default='eORCA1.2', choices=['ORCA2.3', 'eORCA1.2', 'eORCA025', 'eORCA025.1'] ) 39 39 parser.add_argument ('--atm' , help='atm model name (ICO* or LMD*)', type=str, default='ICO40' ) 40 40 parser.add_argument ('--type' , help='Type of distribution', type=str, choices=['iceshelf', 'iceberg', 'nosouth', 'full'], default='full' ) … … 111 111 112 112 # 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 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 118 print ('nperio_dst: ' + str(nperio_dst) ) 118 119 dst_mskutil = nemo.lbc_mask (dst_mskutil, nperio=nperio_dst, cd_type='T' ) … … 125 126 # Preparation by closing some straits 126 127 # ----------------------------------- 127 if dst_Name == 'eORCA025':128 print ('Filling some seas for eORCA025')128 if dst_Name in [ 'eORCA025', 'eORCA025.1' ] : 129 print ('Filling some seas for ' + dst_Name ) 129 130 # Set Gibraltar strait to 0 to fill Mediterranean sea 130 131 dst_mskutil[838:841,1125] = 0 … … 315 316 f_calving.masksFile = masks 316 317 f_calving.timeStamp = time.asctime() 317 f_calving.uuid = f_areas.uuid318 318 f_calving.HOSTNAME = platform.node() 319 319 #f_calving.LOGNAME = os.getlogin()
Note: See TracChangeset
for help on using the changeset viewer.