Class for managing WX datasets. Do not use constructor directly. Use WxAPI to create instances of this class.

Example

    const wxdatasetManager = await wxapi.createDatasetManager('gfs.global');

Hierarchy

  • WxDataSetManager

Constructors

Properties

datasetName: string

dataset's name

wxAPI: WxAPI

a reference to the wxAPI object

Methods

  • Createts dataset's current URI ready for fetching tiles.

    Argument

    variable - variable of the dataset

    Argument

    validTime - time step of the dataset

    Argument

    ext - must be PNG

    Returns

    • dataset's current URI ready for fetching tiles

    Parameters

    • variable: string
    • validTime: string

    Returns string

  • Get the variable meta from the instanced dataset.

    Argument

    variable - variable name

    Argument

    instance - instance name

    Returns

    • dataset variable's meta for the given instance

    Parameters

    • variable: string
    • Optional instance: string

    Returns undefined | WxVariableMeta

  • Get nearest valid time to the given time.

    Argument

    time - time

    Returns

    • closest valid time from the dataset's time array

    Parameters

    Returns string

  • Check if given variable is available in the dataset.

    Argument

    variable - variable name

    Returns

    • true if variable is available in the dataset

    Parameters

    • variable: string

    Returns boolean

Generated using TypeDoc