gridfile.load
Load data from the sources catalogued in a gridfile.
Syntax
Description
Loads all the data catalogued in a gridfile. Returns the loaded data array and grid metadata for the array.
Returns the loaded data in a custom dimension order. The order of dimensions in the loaded array will match the order specified in the dimensions list. If the gridfile has dimension that are not specified in the dimension order, the unspecified dimensions are moved to the end of the order.
Specify which elements to load along each dimension. The order of elements in the returned array will match the order of specified indices. Returned metadata will only hold metadata for the specified indices, and the rows of the metadata will match the order of the indices. If indices are not specified for a dimension, the method loads all data elements along that dimension.
Specify the numeric precision of the loaded array. By default, uses double precision when either 1. Requested data includes double, (u)int32, or (u)int64 data types, or 2. Requested data is not in any data source. Uses single precision if all requested data is of single, char, logical, (u)int8, or (u)int16 data types.
Input Arguments
dimensions
indices
If only a single dimension is listed in the dimension order, the dimension’s indices may be provided directly, instead of in a scalar cell. However, the cell syntax is still permitted.
Note: Any dimensions not listed in the dimension order will be loaded in full.