Last change
on this file since 1598 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.6 KB
|
Line | |
---|
1 | #!/bin/ksh |
---|
2 | |
---|
3 | #************************************************************** |
---|
4 | # Author: Marie-Alice Foujols |
---|
5 | # Contact: Foujols_ipsl.jussieu.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 | #************************************************************** |
---|
13 | |
---|
14 | #------------------------------------------------------------ |
---|
15 | # ncks CPL files for 1D frequency, ncra for 1M averaged files |
---|
16 | #------------------------------------------------------------ |
---|
17 | |
---|
18 | function IGCM_Patch_20091116_ncks_ncra { |
---|
19 | IGCM_debug_PushStack "IGCM_Patch_ncks_ncra" $@ |
---|
20 | |
---|
21 | CPL_OkDay=y |
---|
22 | CPL_OkMonth=y |
---|
23 | |
---|
24 | PREFIX=TEMPO |
---|
25 | if [ -f FIRST_TIME_CPL ] ; then |
---|
26 | echo FIRST_TIME_CPL exists |
---|
27 | else |
---|
28 | # create FIRST_TIME_CPL file |
---|
29 | date > FIRST_TIME_CPL |
---|
30 | |
---|
31 | ls -l S*_out.*.nc C*_out.*.nc |
---|
32 | |
---|
33 | rm -f ${PREFIX}_*_cpl_*.nc |
---|
34 | |
---|
35 | for file in S*_out.*.nc C*_out.*.nc |
---|
36 | do |
---|
37 | [[ ${CPL_OkDay} = "y" ]] && IGCM_sys_ncks -A ${file} ${PREFIX}_1D_cpl_atm.nc > /dev/null 2>&1 |
---|
38 | [[ ${CPL_OkMonth} = "y" ]] && IGCM_sys_ncra -A ${file} ${PREFIX}_1M_cpl_atm.nc > /dev/null 2>&1 |
---|
39 | done |
---|
40 | rm -f S*_out.*.nc C*_out.*.nc |
---|
41 | |
---|
42 | ls -l O*_out.*.nc |
---|
43 | |
---|
44 | for file in O*_out.*.nc |
---|
45 | do |
---|
46 | [[ ${CPL_OkDay} = "y" ]] && IGCM_sys_ncks -A ${file} ${PREFIX}_1D_cpl_oce.nc > /dev/null 2>&1 |
---|
47 | [[ ${CPL_OkMonth} = "y" ]] && IGCM_sys_ncra -A ${file} ${PREFIX}_1M_cpl_oce.nc > /dev/null 2>&1 |
---|
48 | done |
---|
49 | rm -f O*_out.*.nc |
---|
50 | |
---|
51 | ls -s ${PREFIX}_*_cpl_*.nc |
---|
52 | |
---|
53 | fi |
---|
54 | |
---|
55 | IGCM_debug_PopStack "IGCM_Patch_ncks_ncra" |
---|
56 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.