Package ucar.nc2.grib
Class QuasiRegular
- java.lang.Object
-
- ucar.nc2.grib.QuasiRegular
-
public class QuasiRegular extends Object
Converts a QuasiRegular grid into a regular rectanglar (lat/lon) grid.- Since:
- 9/10/11
- See Also:
- "http://lost-contact.mit.edu/afs/eos.ncsu.edu/service/pams/meteorology/nawips/unidata/ldmbridge/dcgrib2/qlin.c"
-
-
Constructor Summary
Constructors Constructor Description QuasiRegular()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static float[]
convertQuasiGrid(float[] quasi, int[] linePts, int nx, int ny, GribData.InterpolationMethod interpolationMethod)
static void
cubicSpline(float[] inpt, int iIdx, double[] y2d, double x, float[] outpt, int oIdx)
static int
getMax(int[] vals)
static void
linear(float[] inpt, int iIdx, double x, float[] outpt, int oIdx, int npoints)
static void
secondDerivative(float[] inpt, int idx, int n, double x1d, double xnd, double[] y2d)
-
-
-
Method Detail
-
convertQuasiGrid
public static float[] convertQuasiGrid(float[] quasi, int[] linePts, int nx, int ny, GribData.InterpolationMethod interpolationMethod)
- Parameters:
quasi
- input datalinePts
- npts in each linenx
- num parellels or undefinedny
- num parellels or undefined- Returns:
- regular grid
-
getMax
public static int getMax(int[] vals)
-
secondDerivative
public static void secondDerivative(float[] inpt, int idx, int n, double x1d, double xnd, double[] y2d)
-
cubicSpline
public static void cubicSpline(float[] inpt, int iIdx, double[] y2d, double x, float[] outpt, int oIdx)
-
linear
public static void linear(float[] inpt, int iIdx, double x, float[] outpt, int oIdx, int npoints)
-
-