Last change
on this file since 300 was
257,
checked in by sdipsl, 14 years ago
|
- 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
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Date Author Revision
|
File size:
1.0 KB
|
Line | |
---|
1 | #!/bin/ksh |
---|
2 | |
---|
3 | #************************************************************** |
---|
4 | # Author: Martial Mancip |
---|
5 | # Contact: Martial.Mancip_ipsl.jussieu.fr |
---|
6 | # $Date$ |
---|
7 | # $Author$ |
---|
8 | # $Revision$ |
---|
9 | # IPSL (2006) |
---|
10 | # This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC |
---|
11 | # |
---|
12 | #************************************************************** |
---|
13 | |
---|
14 | #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
15 | # We change _Fillvalue to old missing_value !!!! |
---|
16 | #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
17 | |
---|
18 | function IGCM_Patch_20090317_histcom__Fillvalue { |
---|
19 | IGCM_debug_PushStack "IGCM_Patch_histcom__Fillvalue" $@ |
---|
20 | |
---|
21 | typeset file |
---|
22 | |
---|
23 | file=t_$1 |
---|
24 | IGCM_sys_Mv ${1} ${file} |
---|
25 | IGCM_sys_Chmod 644 ${file} |
---|
26 | |
---|
27 | #IGCM_sys_ncrename -O --hst -a _Fillvalue,missing_value ${file} |
---|
28 | |
---|
29 | miss=$( ncdump -h ${file} | grep _Fillvalue | head -1 | awk "-F=" '{print $2}' | awk "-Ff" '{print $1}' ) |
---|
30 | |
---|
31 | [ ! X${miss} = X ] && IGCM_sys_ncatted -a missing_value,,c,f,${miss} ${file} |
---|
32 | |
---|
33 | IGCM_sys_Mv ${file} ${1} |
---|
34 | |
---|
35 | IGCM_debug_PopStack "IGCM_Patch_histcom__Fillvalue" |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.