Last change
on this file since 6042 was
3665,
checked in by omamce, 6 years ago
|
O.M. : mise a jour des properties
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Date Revision HeadURL Author Id
|
File size:
889 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | # ncap2 --overwrite --script-file build.nco ORCA2_coordinates.nc ORCA2_coordinates_mask.nc |
---|
6 | |
---|
7 | cp ORCA2_coordinates.nc ORCA2.3_coordinates_mask.nc |
---|
8 | |
---|
9 | ncks --overwrite -v maskper /ccc/work/cont003/dsm/p86mart/GRAF/DATA/orca2.3.nc ORCA2_maskutil.nc |
---|
10 | ncrename -v maskper,maskutil_T ORCA2_maskutil.nc |
---|
11 | ncrename -d x,x_grid_T ORCA2_maskutil.nc |
---|
12 | ncrename -d y,y_grid_T ORCA2_maskutil.nc |
---|
13 | |
---|
14 | ncks --append ORCA2_maskutil.nc ORCA2.3_coordinates_mask.nc |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | ncatted -a cell_measures,maskutil_T,c,c,"area: area_grid_T" ORCA2.3_coordinates_mask.nc |
---|
19 | ncatted -a coordinates,maskutil_T,c,c,"nav_lat_grid_T nav_lon_grid_T" ORCA2.3_coordinates_mask.nc |
---|
20 | |
---|
21 | |
---|
22 | cat <<EOF > build.nco |
---|
23 | mask_T = mask_T == 1 || maskutil_T == 1 ; |
---|
24 | EOF |
---|
25 | |
---|
26 | ncap2 --script-file build.nco --overwrite ORCA2.3_coordinates_mask.nc ORCA2.3_coordinates_mask_tmp.nc |
---|
27 | mv ORCA2.3_coordinates_mask_tmp.nc ORCA2.3_coordinates_mask.nc |
---|
Note: See
TracBrowser
for help on using the repository browser.