Interface GridDataSource

  • All Superinterfaces:
    AutoCloseable, DataSource

    public interface GridDataSource
    extends DataSource
    Low-level interface to multidimensional grids, used by DataReadingStrategy. TODO axis order issues: should we define that the returned Array must have the x axis varying fastest, irrespective of the ordering of the underlying data grid? GG: Yes, probably...
    Author:
    Jon, Guy
    • Method Detail

      • read

        Array4D<Number> read​(String variableId,
                             int tmin,
                             int tmax,
                             int zmin,
                             int zmax,
                             int ymin,
                             int ymax,
                             int xmin,
                             int xmax)
                      throws IOException,
                             DataReadingException
        Read an Array4D of data from the underlying data source
        Parameters:
        variableId - The variable ID to read
        tmin - The minimum time index in the underlying data
        tmax - The maximum time index in the underlying data
        zmin - The minimum z index in the underlying data
        zmax - The maximum z index in the underlying data
        ymin - The minimum y index in the underlying data
        ymax - The maximum y index in the underlying data
        xmin - The minimum x index in the underlying data
        xmax - The maximum x index in the underlying data
        Returns:
        An Array4D containing the data which was read
        Throws:
        IOException - If there is an IO problem accessing the data
        DataReadingException - If there is another issue reading the data