<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

Interpolation/

compute_fromreg_bilinear_weigaddr.pro

compute the weight and address needed to interpolate data from a "regular grid" to any grid using the bilinear method

topcompute_fromreg_bilinear_weigaddr Interpolation

compute_fromreg_bilinear_weigaddr, alonin, alatin, olonin, olat, weig, addr, NONORTHERNLINE=NONORTHERNLINE, NOSOUTHERNLINE=NOSOUTHERNLINE

Parameters

alonin        in required

longitude of the input data

alatin        in required

latitude of the input data

olonin        in required

longitude of the output data

olat        in required

latitude of the output data

weig        out

addr        out

2D arrays, weig and addr are the weight and addresses used to perform the interpolation: dataout = total(weig*datain[addr], 1) dataout = reform(dataout, jpio, jpjo, /over)

Keywords

NONORTHERNLINE       

activate if you don't want to take into account the northen line of the input data when performing the interpolation.

NOSOUTHERNLINE       

activate if you don't want to take into account the southern line of the input data when performing the interpolation.

Version history

Version

$Id: compute_fromreg_bilinear_weigaddr.pro 157 2006-08-21 09:01:50Z navarro $

History

November 2005: Sebastien Masson (smasson@lodyc.jussieu.fr)

Known issues

Restrictions

- the input grid must be a "regular grid", defined as a grid for which each longitudes lines have the same latitude and each latitudes columns have the same longitude. - We supposed the data are located on a sphere, with a periodicity along the longitude. - points located out of the southern and northern boundaries are interpolated using a linear interpolation only along the longitudinal direction.

Statistics

McCabe cyclic 30
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.