Class V5DStruct


  • public class V5DStruct
    extends Object
    An object representing the structure of a .v5d file
    • Field Detail

      • TAG_VARNAME

        public static final int TAG_VARNAME
        int*4 var; char*10 VarName[var]
        See Also:
        Constant Field Values
      • TAG_NL_VAR

        public static final int TAG_NL_VAR
        int*4 var; int*4 Nl[var]
        See Also:
        Constant Field Values
      • TAG_LOWLEV_VAR

        public static final int TAG_LOWLEV_VAR
        int*4 var; int*4 LowLev[var]
        See Also:
        Constant Field Values
      • TAG_MINVAL

        public static final int TAG_MINVAL
        int*4 var; real*4 MinVal[var]
        See Also:
        Constant Field Values
      • TAG_MAXVAL

        public static final int TAG_MAXVAL
        int*4 var; real*4 MaxVal[var]
        See Also:
        Constant Field Values
      • TAG_COMPRESS

        public static final int TAG_COMPRESS
        int*4 CompressMode; (#bytes/grid)
        See Also:
        Constant Field Values
      • TAG_UNITS

        public static final int TAG_UNITS
        int *4 var; char*20 Units[var]
        See Also:
        Constant Field Values
      • TAG_VERTICAL_SYSTEM

        public static final int TAG_VERTICAL_SYSTEM
        int*4 VerticalSystem
        See Also:
        Constant Field Values
      • TAG_VERT_ARGS

        public static final int TAG_VERT_ARGS
        int*4 n; real*4 VertArgs[0..n-1]
        See Also:
        Constant Field Values
      • TAG_BOTTOMBOUND

        public static final int TAG_BOTTOMBOUND
        real*4 BottomBound (PHASED OUT)
        See Also:
        Constant Field Values
      • TAG_LEVINC

        public static final int TAG_LEVINC
        real*4 LevInc (PHASED OUT)
        See Also:
        Constant Field Values
      • TAG_HEIGHT

        public static final int TAG_HEIGHT
        int*4 l; real*4 Height[l] (PHASED OUT)
        See Also:
        Constant Field Values
      • TAG_PROJECTION

        public static final int TAG_PROJECTION
        int*4 projection.
      • 0 = generic linear
      • 1 = cylindrical equidistant
      • 2 = Lambert conformal/Polar Stereo
      • 3 = rotated equidistant
See Also:
Constant Field Values
  • Method Detail

    • v5d_open

      public static V5DStruct v5d_open​(RandomAccessFile raf,
                                       int[] sizes,
                                       int[] n_levels,
                                       String[] var_names,
                                       String[] var_units,
                                       int[] map_proj,
                                       float[] projargs,
                                       int[] vert_sys,
                                       float[] vert_args,
                                       double[] times)
                                throws IOException,
                                       visad.data.BadFormException
      Open a Vis5D file
      Throws:
      IOException
      visad.data.BadFormException
    • v5d_read

      public void v5d_read​(int time,
                           int vr,
                           float[] ranges,
                           float[] data)
                    throws IOException,
                           visad.data.BadFormException
      Read from a Vis5D file
      Throws:
      IOException
      visad.data.BadFormException
    • getUnsignedByte

      public static int getUnsignedByte​(byte b)
      Convert a signed byte to an unsigned one, and return it in an int
    • getUnsignedShort

      public static int getUnsignedShort​(byte b1,
                                         byte b2)
      Convert two signed bytes to an unsigned short, and return it in an int
    • getUnsignedInt

      public static int getUnsignedInt​(byte b1,
                                       byte b2,
                                       byte b3,
                                       byte b4)
      Convert four signed bytes to an unsigned short, and return it in an int
    • v5dOpenFile

      public static V5DStruct v5dOpenFile​(RandomAccessFile fd)
                                   throws IOException,
                                          visad.data.BadFormException
      Open a v5d file for reading.
      Returns:
      null if error, else a pointer to a new V5DStruct
      Throws:
      IOException
      visad.data.BadFormException