Class UAMIVServiceProvider

    • Constructor Detail

      • UAMIVServiceProvider

        public UAMIVServiceProvider()
    • Method Detail

      • isValidFile

        public boolean isValidFile​(RandomAccessFile raf)
        Check if this is a valid file for this IOServiceProvider.
        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 wantSection)
                       throws IOException,
                              InvalidRangeException
        Read data from a top level Variable and return a memory resident Array. This Array has the same element type as the Variable, and the requested shape.
        Parameters:
        v2 - a top-level Variable
        wantSection - List of type Range specifying the section of data to read. There must be a Range for each Dimension in the variable, in order. Note: no nulls.
        Returns:
        the requested data in a memory-resident Array
        Throws:
        IOException - if read error
        InvalidRangeException - if invalid section
        See Also:
        Range