Changes between Version 1 and Version 2 of Users/SetupNewConfiguration/cdo-interpolation
- Timestamp:
- 2017-03-31T21:06:13+02:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Users/SetupNewConfiguration/cdo-interpolation
v1 v2 47 47 48 48 49 {{{ 49 {{{#!sh 50 50 # select glamt and gphit variables from the coordinates file 51 51 ncks -O -C -a -v glamt,gphit coordinates_ORCA_R2.nc grid_ORCA2_T.nc … … 56 56 57 57 58 {{{ 58 {{{#!sh 59 59 # remove degenerated dimention time (if existing) 60 60 ncwa -O -a time grid_ORCA2_T.nc grid_ORCA2_T.nc … … 63 63 }}} 64 64 65 {{{ 65 {{{#!sh 66 66 # add a dummy variable 67 67 ncap2 -O -s 'dummy[y,x]=1b' grid_ORCA2_T.nc grid_ORCA2_T.nc … … 105 105 106 106 107 {{{ 107 {{{#!sh 108 108 109 109 cdo genbil,grid_ORCA2_T.nc $file bil_orca2_weights.nc … … 124 124 125 125 126 {{{ 126 {{{#!sh 127 127 128 128 cdo genbic,grid_ORCA2_T.nc $file bic_orca2_weights.nc … … 156 156 2. control format of land variable, if it is short and your file has float format you will have problems with cdo created missing values, and filling missing values 157 157 158 {{{ 158 {{{#!sh 159 159 #convert in float (from short) land variable 160 160 ncap -O -s "land=float(land)" ${file_mask_land}.SN.nc ${file_mask_land}.SN.float.nc … … 163 163 3. control values of your land variable, if it is 1 on earth and 0 on ocean is not good if you are interpolating files for ocean forcing 164 164 165 {{{ 165 {{{#!sh 166 166 #convert land=0 on earth, 1 on ocean 167 167 ncap -O -s 'land=1-land' mask.nc mask.nc 168 168 }}} 169 169 170 {{{ 170 {{{#!sh 171 171 #rename "land" in "mask" 172 172 ncrename -v land,mask mask.nc … … 176 176 4. control values of calendar's attribute in your file, if it is "NOLEAP" it is better to convert it in a recognized format by nccated (ex. 365_day) 177 177 178 {{{ 178 {{{#!sh 179 179 ncatted -a calendar,${variable},m,c,365_day ${file}.nc ${file}_365.nc 180 180 }}} … … 183 183 '''main programm: interpolation_loop.sh ''' 184 184 185 {{{ 185 {{{#!sh 186 186 #!/bin/bash 187 187 #script to interpolate files on ORCA2 grids … … 260 260 261 261 '''first sub-programm: file create_orca2.sh''' 262 {{{ 262 {{{#!sh 263 263 #!/bin/bash 264 264 #script to create ORCA2 grid … … 283 283 284 284 '''Second sub-programm: prepare_mask.sh''' 285 {{{ 285 {{{#!sh 286 286 #!/bin/bash 287 287 #preparing mask file … … 315 315 316 316 '''Third sub-programm: bicweights.sh''' 317 {{{ 317 {{{#!sh 318 318 #!/bin/bash 319 319 … … 326 326 327 327 '''Forth sub-programm: bicweights.sh''' 328 {{{ 328 {{{#!sh 329 329 #!/bin/bash 330 330