Ignore:
Timestamp:
02/24/22 09:58:49 (2 years ago)
Author:
omamce
Message:

O.M. : changes in MOSAIX

  • Correct ocean mask to remove periodic duplicated points, to have full conservation of run-off
  • Suppress creation of corc mask, which is not used
  • Put SVN keywords in make_mosaic
  • Update nemo.py with somùe additionnal utilities
  • Adapt RunOffWeights?.py to new nemo module
  • Adapt CalvingWeights?.py to new ORCA configurations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/MOSAIX/CalvingWeights.py

    r5915 r6064  
    122122    if dst_Name == 'eORCA025.1' : nperio_dst = 6 
    123123print ('nperio_dst: ' + str(nperio_dst) ) 
    124 dst_mskutil = nemo.lbc_mask (dst_mskutil, nperio=nperio_dst, cd_type='T' ) 
     124dst_mskutil = nemo.lbc_mask (dst_mskutil, nperio=nperio_dst, cd_type='T', sval=0 ) 
    125125print ('dst_mskutil : ' + str(np.sum(dst_mskutil))) 
    126126 
     
    131131# Preparation by closing some straits 
    132132# ----------------------------------- 
    133 if dst_Name in [ 'eORCA025', 'eORCA025.1' ] : 
     133if dst_Name in [ 'eORCA025', 'eORCA025.1', 'eORCA025.4' ] : 
    134134    print ('Filling some seas for ' + dst_Name ) 
    135135    # Set Gibraltar strait to 0 to fill Mediterranean sea 
     
    144144    dst_mskutil[997:1012,907] = 0 
    145145     
    146 if dst_Name == 'eORCA1.2' : 
    147     print ('Filling some seas for eORCA1.2') 
     146if dst_Name in [ 'eORCA1.2', 'eORCA1.3', 'eORCA1.4' ] : 
     147    print ('Filling some seas for ' + dst_Name) 
    148148    # Set Gibraltar strait to 0 to fill Mediterrean sea 
    149149    dst_mskutil[240, 283] = 0 
     
    157157    dst_mskutil[284,222:225] = 0 
    158158     
    159 if dst_Name == 'ORCA2.3' : 
    160     print ('Filling some seas for ORCA2.3') 
     159if dst_Name in [ 'ORCA2.3', 'ORCA2.4' ] : 
     160    print ('Filling some seas for ' + dst_Name) 
    161161    # Set Gibraltar strait to 0 to fill Mediterrean sea 
    162162    dst_mskutil[101,139] = 0 
     
    175175# Fill closed seas with image processing library 
    176176# ---------------------------------------------- 
    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' ) 
     177dst_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) 
    178178 
    179179# Surfaces 
Note: See TracChangeset for help on using the changeset viewer.