Class Uspln

    • Constructor Detail

      • Uspln

        public Uspln()
    • Method Detail

      • isValidFile

        public boolean isValidFile​(RandomAccessFile raf)
                            throws IOException
        Check if this is a valid file for this IOServiceProvider.
        Parameters:
        raf - RandomAccessFile
        Returns:
        true if valid.
        Throws:
        IOException - if read error
      • open

        public void open​(RandomAccessFile raf,
                         NetcdfFile ncfile,
                         CancelTask cancelTask)
                  throws IOException
        Open existing file, and populate ncfile with it. This method is only called by the NetcdfFile constructor on itself. The provided NetcdfFile object will be empty except for the location String and the IOServiceProvider associated with this NetcdfFile object.
        Specified by:
        open in interface IOServiceProvider
        Overrides:
        open in class AbstractIOServiceProvider
        Parameters:
        raf - the file to work on, it has already passed the isValidFile() test.
        ncfile - add objects to this empty NetcdfFile
        cancelTask - used to monitor user cancellation; may be null.
        Throws:
        IOException - if read error
      • readData

        public Array readData​(Variable v2,
                              Section section)
                       throws IOException
        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
        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
        See Also:
        Range
      • getFileTypeId

        public String getFileTypeId()
        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()
        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"