Package ucar.nc2.grib

Class 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 Detail

      • QuasiRegular

        public QuasiRegular()
    • Method Detail

      • convertQuasiGrid

        public static float[] convertQuasiGrid​(float[] quasi,
                                               int[] linePts,
                                               int nx,
                                               int ny,
                                               GribData.InterpolationMethod interpolationMethod)
        Parameters:
        quasi - input data
        linePts - npts in each line
        nx - num parellels or undefined
        ny - 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)