@zhiweiliu/koordinates-environment-nz
v1.0.4
Published
Datasets of Ministry for the Environment New Zealand on Koordinates
Downloads
3
Maintainers
Readme
Koordinates - Environment for New Zealand
The repository provides access to Environment for New Zealand datasets hosted by Koordinates. It is built on module @zhiweiliu/koordiates-base. Please refer to the base module for more details.
Supported datasets
- Daily temperature 30 sites, state, 1909 - 2022
- Annual and seasonal temperatures at 30 sites, trends, 1972-2022
- Annual and seasonal temperatures at 30 sites, state 1972 - 2022
- National Temperature, trends, 1909-2022
- National temperature, state, 1909-2022
Example
// import Koordinates modules
import { KoordinatesDataset } from "@zhiweiliu/koordinates-base";
import { environmentNzDatasets } from "@zhiweiliu/koordinates-environment-nz";
// Koordinates API key, it is recommended to load it at run time instead of hard-coding it in a file
import apiKey from "./api-key";
// Find dataset
let dt30Sites: KoordinatesDataset = environmentNzDatasets.find(
(d) => d.getName() === "Daily temperature 30 sites, state, 1909 - 2022"
) as KoordinatesDataset;
// Invoke methods on the dataset object
let json = await dt30Sites.getLayerCapabilitiesJson(apiKey);
console.log(json);