Changes between Version 1 and Version 2 of Users/Setup New Configuration/cdo-interpolation


Ignore:
Timestamp:
2017-03-31T21:06:13+02:00 (3 years ago)
Author:
nicolasmartin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Users/Setup New Configuration/cdo-interpolation

    v1 v2  
    4747 
    4848 
    49 {{{ 
     49{{{#!sh 
    5050# select glamt and gphit variables from the coordinates file 
    5151ncks -O -C -a -v glamt,gphit coordinates_ORCA_R2.nc grid_ORCA2_T.nc 
     
    5656 
    5757 
    58 {{{ 
     58{{{#!sh 
    5959# remove degenerated dimention time (if existing) 
    6060ncwa -O -a time grid_ORCA2_T.nc  grid_ORCA2_T.nc 
     
    6363}}} 
    6464 
    65 {{{ 
     65{{{#!sh 
    6666# add a dummy variable 
    6767ncap2 -O -s 'dummy[y,x]=1b' grid_ORCA2_T.nc grid_ORCA2_T.nc 
     
    105105 
    106106   
    107 {{{ 
     107{{{#!sh 
    108108 
    109109    cdo genbil,grid_ORCA2_T.nc $file bil_orca2_weights.nc 
     
    124124 
    125125 
    126 {{{ 
     126{{{#!sh 
    127127 
    128128    cdo genbic,grid_ORCA2_T.nc $file bic_orca2_weights.nc 
     
    1561562. 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 
    157157 
    158 {{{ 
     158{{{#!sh 
    159159#convert in float (from short) land variable 
    160160ncap -O -s "land=float(land)" ${file_mask_land}.SN.nc ${file_mask_land}.SN.float.nc 
     
    1631633. 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 
    164164 
    165 {{{ 
     165{{{#!sh 
    166166#convert land=0 on earth, 1 on ocean 
    167167ncap -O -s 'land=1-land' mask.nc mask.nc 
    168168}}} 
    169169 
    170 {{{ 
     170{{{#!sh 
    171171#rename "land" in "mask" 
    172172ncrename -v land,mask mask.nc 
     
    1761764. 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) 
    177177 
    178 {{{ 
     178{{{#!sh 
    179179ncatted -a calendar,${variable},m,c,365_day ${file}.nc ${file}_365.nc 
    180180}}} 
     
    183183'''main programm: interpolation_loop.sh ''' 
    184184 
    185 {{{ 
     185{{{#!sh 
    186186#!/bin/bash 
    187187#script to interpolate files on ORCA2 grids 
     
    260260 
    261261'''first sub-programm: file create_orca2.sh''' 
    262 {{{ 
     262{{{#!sh 
    263263#!/bin/bash 
    264264#script to create ORCA2 grid 
     
    283283 
    284284'''Second sub-programm: prepare_mask.sh''' 
    285 {{{ 
     285{{{#!sh 
    286286#!/bin/bash 
    287287#preparing mask file 
     
    315315 
    316316'''Third sub-programm: bicweights.sh''' 
    317 {{{ 
     317{{{#!sh 
    318318#!/bin/bash 
    319319 
     
    326326 
    327327'''Forth sub-programm: bicweights.sh''' 
    328 {{{ 
     328{{{#!sh 
    329329#!/bin/bash 
    330330