gridfile

Catalogue and load gridded data sets


Description

The gridfile class creates and manages gridfile objects. These objects catalogue metadata and data source files for a gridded dataset. The catalogue is stored in a file with a “.grid” extension.

A key function of gridfile is to provide an interface for loading data from data source files with diverse formatting. This interface allows the user to efficiently:

  1. Load subsets of the catalogued data

  2. Order the dimensions of loaded data

  3. Apply linear or log transforms to loaded data, and

  4. Perform simple arithmetic on large gridded datasets

Another function of gridfile is to associate all gridded data with dimensional metadata. This allows data to be accessed using human-readable metadata, rather than array indices.

The following is an outline for using the gridfile class.

  1. Use the “new” command to initialize a new .grid file

  2. Use “add” to add data source file to the gridfile’s catalogue

  3. Use “fillValue”, “validRange”, and “transform” to apply data transformations when data is loaded from the source files

  4. Use the output of the “metadata” command to locate interesting subsets of the catalogued data.

  5. Use “load” to load data subsets in customizable dimension orders.

  6. Use “plus”, “minus”, “times”, or “divide” to implement arithmetic across multiple data catalogues.

The class also includes many methods for accessing and editing metadata, which are summarized in the methods list.


Key Methods

The following methods are the most essential methods for users.


All User Methods

The complete list of gridfile methods for users.

Create

Metadata

Metadata Attributes

Data Sources

Data Adjustments

Load

Arithmetic

Return Information


Utility Methods

Under-the-hood methods that help the class run. These are not intended for users, and do not implement error checking on their inputs.

File Interactions

Console Display

Load

Arithmetic

Unit Tests