Ignore:
Timestamp:
02/28/19 14:10:31 (5 years ago)
Author:
omamce
Message:

O.M. : corection on MOSAIX

  • add ORCA025.1 to known resolutions
  • Correct mask used to generate weigths
  • Suppress the second computation of uuid
  • OceMask? is now ocean fraction like it was in MOZAIC. OceFrac? still exists (and equals OceFrac?)
  • Add Oce2AtmMask as a 1/0 mask
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/MOSAIX/CalvingWeights.py

    r4259 r4298  
    3636 
    3737# Adding arguments 
    38 parser.add_argument ('--oce'     , help='oce model name', type=str, default='eORCA1.2', choices=['ORCA2.3', 'eORCA1.2', 'eORCA025'] ) 
     38parser.add_argument ('--oce'     , help='oce model name', type=str, default='eORCA1.2', choices=['ORCA2.3', 'eORCA1.2', 'eORCA025', 'eORCA025.1'] ) 
    3939parser.add_argument ('--atm'     , help='atm model name (ICO* or LMD*)', type=str, default='ICO40'    ) 
    4040parser.add_argument ('--type'    , help='Type of distribution', type=str, choices=['iceshelf', 'iceberg', 'nosouth', 'full'], default='full'  ) 
     
    111111 
    112112# 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 
     113if dst_Name == 'ORCA2.3'    : nperio_dst = 4 
     114if dst_Name == 'eORCA1.2'   : nperio_dst = 6 
     115if dst_Name == 'ORCA025'    : nperio_dst = 6 
     116if dst_Name == 'eORCA025'   : nperio_dst = 6 
     117if dst_Name == 'eORCA025.1' : nperio_dst = 6 
    117118print ('nperio_dst: ' + str(nperio_dst) ) 
    118119dst_mskutil = nemo.lbc_mask (dst_mskutil, nperio=nperio_dst, cd_type='T' ) 
     
    125126# Preparation by closing some straits 
    126127# ----------------------------------- 
    127 if dst_Name == 'eORCA025' : 
    128     print ('Filling some seas for eORCA025') 
     128if dst_Name in [ 'eORCA025', 'eORCA025.1' ] : 
     129    print ('Filling some seas for ' + dst_Name ) 
    129130    # Set Gibraltar strait to 0 to fill Mediterranean sea 
    130131    dst_mskutil[838:841,1125] = 0 
     
    315316f_calving.masksFile       = masks 
    316317f_calving.timeStamp       = time.asctime() 
    317 f_calving.uuid            = f_areas.uuid 
    318318f_calving.HOSTNAME        = platform.node() 
    319319#f_calving.LOGNAME         = os.getlogin() 
Note: See TracChangeset for help on using the changeset viewer.