Changeset 5159


Ignore:
Timestamp:
09/24/20 16:38:47 (4 years ago)
Author:
omamce
Message:

O.M. : MOSAIX coorect dimension in OASIS files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/MOSAIX/CreateOasisGrids.bash

    r5158 r5159  
    3838#ATM=ICO450 
    3939#ATM=LMD144142 
    40 ATM=LMD9695 
     40#ATM=LMD9695 
    4141 
    4242## =========================================================================== 
     
    4949# ================ 
    5050if [[ $(hostname) = curie* ]]    ; then arch=curie ; center=tgcc ; fi 
    51 if [[ $(hostname) = irene* ]]    ; then arch=irene ;1 center=tgcc ; fi 
     51if [[ $(hostname) = irene* ]]    ; then arch=irene ; center=tgcc ; fi 
    5252if [[ $(hostname) = lsce3005* ]] ; then arch=spip  ; center=spip ; fi 
    5353 
     
    213213 
    214214ncap2 --history --append --script "Oce2AtmMask=int(1-Oce2AtmMask)" OceMask_tmp.nc masks_${CplModel}.nc # For OASIS, ocean=0, land=1 
    215 rm OceMask_tmp.nc 
     215#rm OceMask_tmp.nc 
    216216ncatted --history \ 
    217217        --attribute long_name,Oce2AtmMask,o,c,"Land-sea mask"   \ 
     
    252252    mv masks_${CplModel}.nc masks_${CplModel}_tmp.nc 
    253253    ncap2 --history --append --script 'OceFrac    [ycell,xcell]=OceFrac'      masks_${CplModel}_tmp.nc masks_${CplModel}.nc 
     254    mv masks_${CplModel}.nc masks_${CplModel}_tmp.nc 
    254255    ncap2 --history --append --script 'OceMask    [ycell,xcell]=OceMask'      masks_${CplModel}_tmp.nc masks_${CplModel}.nc 
     256    mv masks_${CplModel}.nc masks_${CplModel}_tmp.nc 
    255257    ncap2 --history --append --script 'Oce2AtmMask[ycell,xcell]=Oce2AtmMask'  masks_${CplModel}_tmp.nc masks_${CplModel}.nc 
    256  
    257258    mv areas_${CplModel}.nc areas_${CplModel}_tmp.nc 
    258259    ncap2 --history --append --script 'defdim("xcell",1) ; aire[ycell,xcell]=aire ; ' areas_${CplModel}_tmp.nc areas_${CplModel}.nc 
    259  
    260260    rm -f grids_${CplModel}_tmp.nc areas_${CplModel}_tmp.nc masks_${CplModel}_tmp.nc 
    261261fi 
Note: See TracChangeset for help on using the changeset viewer.