Changeset 6064 for TOOLS/MOSAIX/CalvingWeights.py
- Timestamp:
- 02/24/22 09:58:49 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/MOSAIX/CalvingWeights.py
r5915 r6064 122 122 if dst_Name == 'eORCA025.1' : nperio_dst = 6 123 123 print ('nperio_dst: ' + str(nperio_dst) ) 124 dst_mskutil = nemo.lbc_mask (dst_mskutil, nperio=nperio_dst, cd_type='T' )124 dst_mskutil = nemo.lbc_mask (dst_mskutil, nperio=nperio_dst, cd_type='T', sval=0 ) 125 125 print ('dst_mskutil : ' + str(np.sum(dst_mskutil))) 126 126 … … 131 131 # Preparation by closing some straits 132 132 # ----------------------------------- 133 if dst_Name in [ 'eORCA025', 'eORCA025.1' ] :133 if dst_Name in [ 'eORCA025', 'eORCA025.1', 'eORCA025.4' ] : 134 134 print ('Filling some seas for ' + dst_Name ) 135 135 # Set Gibraltar strait to 0 to fill Mediterranean sea … … 144 144 dst_mskutil[997:1012,907] = 0 145 145 146 if dst_Name == 'eORCA1.2':147 print ('Filling some seas for eORCA1.2')146 if dst_Name in [ 'eORCA1.2', 'eORCA1.3', 'eORCA1.4' ] : 147 print ('Filling some seas for ' + dst_Name) 148 148 # Set Gibraltar strait to 0 to fill Mediterrean sea 149 149 dst_mskutil[240, 283] = 0 … … 157 157 dst_mskutil[284,222:225] = 0 158 158 159 if dst_Name == 'ORCA2.3':160 print ('Filling some seas for ORCA2.3')159 if dst_Name in [ 'ORCA2.3', 'ORCA2.4' ] : 160 print ('Filling some seas for ' + dst_Name) 161 161 # Set Gibraltar strait to 0 to fill Mediterrean sea 162 162 dst_mskutil[101,139] = 0 … … 175 175 # Fill closed seas with image processing library 176 176 # ---------------------------------------------- 177 dst_mskutil = nemo.lbc_mask ( 1-ndimage.binary_fill_holes (1-nemo.lbc(dst_mskutil, nperio=nperio_dst, cd_type='T')), nperio=nperio_dst, cd_type='T' 177 dst_mskutil = nemo.lbc_mask ( 1-ndimage.binary_fill_holes (1-nemo.lbc(dst_mskutil, nperio=nperio_dst, cd_type='T')), nperio=nperio_dst, cd_type='T', sval=0) 178 178 179 179 # Surfaces
Note: See TracChangeset
for help on using the changeset viewer.