@oceanum/datamesh / DataVar
Defined in: packages/datamesh/src/lib/datamodel.ts:260
Represents a data variable within a dataset.
S
extends TempZarr
| HttpZarr
new DataVar<
S
>(id
,dimensions
,attributes
,arr
):DataVar
<DType
,S
>
Defined in: packages/datamesh/src/lib/datamodel.ts:278
string
string
[]
Record
<string
, unknown
>
S
extends TempZarr
? Array
<DType
, Mutable
> : Array
<DType
, AsyncReadable
<unknown
>>
DataVar
<DType
, S
>
arr:
S
extendsTempZarr
?Array
<DType
,Mutable
> :Array
<DType
,AsyncReadable
<unknown
>>
Defined in: packages/datamesh/src/lib/datamodel.ts:275
attributes:
Record
<string
,unknown
>
Defined in: packages/datamesh/src/lib/datamodel.ts:274
dimensions:
string
[]
Defined in: packages/datamesh/src/lib/datamodel.ts:273
id:
string
Defined in: packages/datamesh/src/lib/datamodel.ts:272
Creates an instance of DataVar.
The identifier for the data variable.
The dimensions associated with the data variable.
The attributes of the data variable, represented as a record of key-value pairs.
The zarr array associated with the data variable.
get(
index?
):Promise
<Data
>
Defined in: packages/datamesh/src/lib/datamodel.ts:299
Retrieves the data from the zarr array. If the data is already cached, it returns the cached data.
Optional slice parameters to retrieve specific data from the zarr array.
string [] |
SliceDef |
Promise
<Data
>
A promise that resolves to the data of the zarr array.