Class NOWRadiosp

    • Field Detail

      • fileUsed

        protected int fileUsed
      • recStart

        protected int recStart
      • debug

        protected boolean debug
      • debugSize

        protected boolean debugSize
      • debugSPIO

        protected boolean debugSPIO
      • showHeaderBytes

        protected boolean showHeaderBytes
      • dimHash

        protected HashMap dimHash
      • fill

        protected boolean fill
      • readonly

        protected boolean readonly
    • Constructor Detail

      • NOWRadiosp

        public NOWRadiosp()
    • Method Detail

      • isValidFile

        public boolean isValidFile​(RandomAccessFile raf)
        Check if the file is a NOWRad file
        Parameters:
        raf - RandomAccessFile
        Returns:
        true if valid.
      • getFileTypeId

        public String getFileTypeId()
        Description copied from interface: IOServiceProvider
        Get a unique id for this file type.
        Returns:
        registered id of the file type
        See Also:
        "https://www.unidata.ucar.edu/software/netcdf-java/formats/FileTypes.html"
      • getFileTypeDescription

        public String getFileTypeDescription()
        Description copied from interface: IOServiceProvider
        Get a human-readable description for this file type.
        Returns:
        description of the file type
        See Also:
        "https://www.unidata.ucar.edu/software/netcdf-java/formats/FileTypes.html"
      • readData

        public Array readData​(Variable v2,
                              Section section)
                       throws IOException,
                              InvalidRangeException
        Read the data for each variable passed in
        Parameters:
        v2 - a top-level Variable
        section - the section of data to read. There must be a Range for each Dimension in the variable, in order. Note: no nulls allowed. IOSP may not modify.
        Returns:
        the requested data in a memory-resident Array
        Throws:
        IOException - if read error
        InvalidRangeException - if invalid section
        See Also:
        Range
      • readOneScanData

        public Object readOneScanData​(ByteBuffer bos,
                                      ucar.nc2.iosp.nowrad.NOWRadheader.Vinfo vinfo,
                                      String vName)
        Read one scan radar data
        Parameters:
        bos - Data buffer
        vinfo - variable info
        Returns:
        the data object of scan data
      • bytesToInt

        public static int bytesToInt​(short a,
                                     short b,
                                     boolean swapBytes)
      • bytesToInt

        public static int bytesToInt​(byte a,
                                     byte b,
                                     boolean swapBytes)
      • readOneRowData

        public byte[] readOneRowData​(byte[] ddata,
                                     int rLen,
                                     int xt)
        Read data from encoded values and run len into regular data array
        Parameters:
        ddata - is encoded data values
        Returns:
        the data array of row data