bilinear_interp function

Help
Momo
2014-01-31
2014-02-04
  • Momo
    Momo
    2014-01-31

    Hi,
    I have a variable with three dimension in netcdf file and I would like to have the time series of this variable to a station which not correspond to grid point.I need help to do it.

    netcdf anom_tas_AMJ {
    dimensions:
    latitude = 180 ;
    longitude = 360 ;
    time = UNLIMITED ; // (105 currently)

    So I use ncap2 command like this:
    ncap2 -O -s "for ( idx=0 ; idx<104 ; idx++) tas_int=bilinear_interp(tas(idx,:,:),0.0,$lat,$lon,$lat,$lon);" anom_tas_AMJ.nc momo.nc

    I got a message:
    ncap2: ERROR bilinear_interp(): Dimension size mismatch with input variables

    Thank!

     
    Last edit: Momo 2014-01-31