compute the weight and address needed to interpolate data from an "irregular 2D grid" (defined as a grid made of quadrilateral cells) to any grid using the bilinear method
extrapolate data (zinput) where maskinput equal 0 by filling step by step the coastline points with the mean value of the 8 neighbors (weighted by their mask values).
Case 1: extract from a NetCDF file longitude and latitude arrays, their dimensions and make sure it is 1D or 2D arrays Case 2: given longitude and latitude arrays, get their dimensions and make sure they are 1D or 2D arrays
This function returns the longitude and latitude [lon, lat] of a point a given arc distance (-pi <= Arc_Dist <= pi), and azimuth (Az), from a specified location Lon0, Lat0.
warm (or map) an arbitrary quadrilateral onto a unit square according to the 4-point correspondences: - (x0,y0) -> (0,0) - (x1,y1) -> (1,0) - (x2,y2) -> (1,1) - (x3,y3) -> (0,1) This is the inverse function of square2quadrilateral.
Given the arrays X and Y, which tabulate a function (with the X[i] AND Y[i] in ascending order), and given an input value X2, the spl_incr function returns an interpolated value for the given values of X2.
Given the arrays X and Y, which tabulate a function (with the X[i] AND Y[i] in ascending order), and given an input value X2, the spl_incr function returns an interpolated value for the given values of X2.
warm (or map) a unit square onto an arbitrary quadrilateral according to the 4-point correspondences: - (0,0) -> (x0,y0) - (1,0) -> (x1,y1) - (1,1) -> (x2,y2) - (0,1) -> (x3,y3) The mapping is done using perspective transformation which preserve lines in all orientations and permit quadrilateral to quadrilateral mappings.