Changeset 3912


Ignore:
Timestamp:
06/12/18 17:08:05 (2 years ago)
Author:
omamce
Message:

O.M. : small change to bypass a bug in nco

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/MOSAIX/CreateWeightsMask.bash

    r3901 r3912  
    147147# 
    148148# Creates OCEAN C grid : redundant point removed to compute proper integrals # A passer dans CreateWeights 
    149 # ---------------------------------------------------------------------------- 
     149# -------------------------------------------------------------------------------------------------------- 
    150150cat <<EOF >add_c_grid.nco 
    151151nav_lon_grid_C    = nav_lon_grid_T    ; 
     
    153153bounds_lon_grid_C = bounds_lon_grid_T ; 
    154154bounds_lat_grid_C = bounds_lat_grid_T ; 
     155mask_C            = maskutil_T        ;  
    155156area_grid_C       = area_grid_T       ; 
    156 mask_C            = maskutil_T        ;  
    157157EOF 
    158158 
    159159ncap2 --overwrite --history --script-file add_c_grid.nco ${OCE}_coordinates_mask.nc tmp_${OCE}_coordinates_mask.nc 
    160 ncks --overwrite --variable nav_lon_grid_C,nav_lat_grid_C,bounds_lon_grid_C,bounds_lat_grid_C,area_grid_C,mask_C tmp_${OCE}_coordinates_mask.nc C_${OCE}_coordinates_mask.nc 
    161 rm tmp_${OCE}_coordinates_mask_${FMT_OASIS}.nc 
     160ncks --overwrite --variable nav_lon_grid_C,nav_lat_grid_C       tmp_${OCE}_coordinates_mask.nc C_${OCE}_coordinates_mask.nc 
     161ncks --append    --variable bounds_lon_grid_C,bounds_lat_grid_C tmp_${OCE}_coordinates_mask.nc C_${OCE}_coordinates_mask.nc 
     162#ncks --append    --variable mask_C                  tmp_${OCE}_coordinates_mask.nc C_${OCE}_coordinates_mask.nc  
     163ncks --append    --variable area_grid_C             tmp_${OCE}_coordinates_mask.nc C_${OCE}_coordinates_mask.nc  
     164 
    162165ncrename --dimension x_grid_T,x_grid_C                C_${OCE}_coordinates_mask.nc 
    163166ncrename --dimension y_grid_T,y_grid_C                C_${OCE}_coordinates_mask.nc 
     
    166169rm C_${OCE}_coordinates_mask.nc 
    167170 
    168 ncks --overwrite --fl_fmt=${FMT_OASIS} --history {OCE}_coordinates_mask.nc ${OCE}_coordinates_mask_${FMT_OASIS}.nc 
     171ncks --overwrite --fl_fmt=${FMT_OASIS} --history ${OCE}_coordinates_mask.nc ${OCE}_coordinates_mask_${FMT_OASIS}.nc 
    169172 
    170173ls -al 
Note: See TracChangeset for help on using the changeset viewer.