Ignore:
Timestamp:
04/09/10 12:08:01 (14 years ago)
Author:
sdipsl
Message:
  • Add mercure-new : libIGCM_sys_mercure.ksh
  • SX9 use mercure-new for post-processing
  • Few feature missing on mercure-new dmget not yet install for example
  • Properly reset all svn:keywords feature
  • Bugfix in libIGCM_post.ksh when RebuildFromArchive? was false
  • Bugfix in IGCM_Patch_20090317_histcomFillvalue.ksh when renaming _Fillvalue we now just add missing_value to be retro-compatible
  • Some more comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_post/IGCM_Patch_20091118_mask.ksh

    • Property svn:keywords set to Date Author Revision
    r242 r257  
    11#!/bin/ksh 
     2 
     3#************************************************************** 
     4# Author: Arnaud Caubel 
     5# Contact: Arnaud.Caubel_lsce.ipsl.fr 
     6# $Date$ 
     7# $Author$ 
     8# $Revision$ 
     9# IPSL (2009) 
     10#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC 
     11# 
     12#************************************************************** 
    213 
    314#------------------------------------------------------------ 
     
    718function IGCM_Patch_20091118_mask { 
    819 
    9     set -vx 
    1020    IGCM_debug_PushStack "IGCM_Patch_mask" $@ 
    1121 
     
    3848    fi 
    3949 
    40 #============================================ 
    41 # Remove nav_lon, nav_lat file 
     50    #============================================ 
     51    # Remove nav_lon, nav_lat file 
    4252    IGCM_sys_ncks -Oh -x -v nav_lon,nav_lat ${filename} file1.nc 
    4353 
    44 #============================================ 
    45 # Extract mask variable 
     54    #============================================ 
     55    # Extract mask variable 
    4656    IGCM_sys_ncks -Oh -v ${mask} ${config_UserChoices_JobName}_mesh_mask.nc mask3D.nc 
    4757 
    48 #============================================ 
    49 # Rename deptht dimension 
     58    #============================================ 
     59    # Rename deptht dimension 
    5060    IGCM_sys_ncrename -Oh -d z,${depth} mask3D.nc 
    5161 
    52 #============================================ 
    53 # Remove single dimension t 
     62    #============================================ 
     63    # Remove single dimension t 
    5464    IGCM_sys_ncwa -Oh -a t mask3D.nc mask3D.nc 
    5565 
    56 #============================================ 
    57 # Create mask2D  
     66    #============================================ 
     67    # Create mask2D  
    5868    IGCM_sys_ncks -Oh -d ${depth},0,0 mask3D.nc mask2D.nc 
    5969    IGCM_sys_ncwa -Oh -a ${depth} mask2D.nc mask2D.nc 
    6070    IGCM_sys_ncrename -h -v ${mask},mask2D mask2D.nc 
    6171 
    62 #============================================ 
    63 # Append mask (2D) to file1.nc 
     72    #============================================ 
     73    # Append mask (2D) to file1.nc 
    6474    IGCM_sys_ncks -Ah -c -v mask2D mask2D.nc file1.nc 
    6575 
    6676    if [ ${filename} = ${chaineIce} ]; then 
    6777 
    68 #============================================ 
    69 # Append mask (3D) only for oceanic files 
     78        #============================================ 
     79        # Append mask (3D) only for oceanic files 
    7080        IGCM_sys_ncks -Ah -v ${mask} mask3D.nc file1.nc 
    7181        IGCM_sys_ncrename -h -v ${mask},mask3D file1.nc 
    7282 
    73 #============================================ 
    74 # Add record dimension only for oceanic files 
     83        #============================================ 
     84        # Add record dimension only for oceanic files 
    7585        IGCM_sys_ncecat -Oh file1.nc file1.nc 
    7686 
    77 #============================================ 
    78 # Apply mask 3D only for oceanic files 
     87        #============================================ 
     88        # Apply mask 3D only for oceanic files 
    7989        IGCM_sys_ncwa -Oh -a record -B 'mask3D==1' file1.nc file1.nc 
    8090 
    8191    fi 
    8292 
    83 #============================================ 
    84 # Add record dimension 
     93    #============================================ 
     94    # Add record dimension 
    8595    IGCM_sys_ncecat -Oh file1.nc file1.nc 
    8696 
    87 #============================================ 
    88 # Apply mask 2D 
     97    #============================================ 
     98    # Apply mask 2D 
    8999    IGCM_sys_ncwa -Oh -b -a record -B 'mask2D==1' file1.nc file1.nc 
    90100 
    91 #============================================ 
    92 # Permute record dimension in time_counter dimension 
    93  
     101    #============================================ 
     102    # Permute record dimension in time_counter dimension 
    94103    IGCM_sys_ncpdq -Oh -a time_counter,record file1.nc file1.nc 
    95104    IGCM_sys_ncwa -Oh -a record file1.nc file1.nc 
    96105 
    97 #============================================ 
    98 # Remove mask 
     106    #============================================ 
     107    # Remove mask 
    99108    IGCM_sys_ncks -Oh -x -v mask2D,mask3D file1.nc file_mask.nc 
    100109 
    101 #============================================ 
    102 # Add nav_lon nav_lat 
     110    #============================================ 
     111    # Add nav_lon nav_lat 
    103112    IGCM_sys_ncks -Ah -v nav_lon,nav_lat ${filename} file_mask.nc 
    104113 
    105 #============================================ 
    106 # Cleaning 
     114    #============================================ 
     115    # Cleaning 
    107116    IGCM_debug_Verif_Exit_Post 
    108117    IGCM_sys_Mv file_mask.nc ${filename} 
Note: See TracChangeset for help on using the changeset viewer.