GriddingMachine
Global datasets to feed CliMA Land model.
Install and use
using Pkg;
Pkg.add("GriddingMachine");
After installing GriddingMachine, you can use function query_collection
from submodule Collector to query data. The data will be automatically downloaded, and you will get the path to the data.
using GriddingMachine.Collector: query_collection;
file = query_collection("VCMAX_2X_1Y_V2");
@show file;
"/home/runner/GriddingMachine//published/f77d012b83e957bbb2c7498f4068e9169025d425/VCMAX_2X_1Y_V2.nc"
To read the data, you can use your preferred packages or our provided function read_LUT
in submodule Indexer. Function read_LUT
returns a vector of data: data itself and std (NaN for missing data).
using GriddingMachine.Indexer: read_LUT;
data = read_LUT(file);
@show data;
(Float32[NaN NaN … NaN NaN; NaN NaN … NaN NaN; … ; NaN NaN … NaN NaN; NaN NaN … NaN NaN], Float32[NaN NaN … NaN NaN; NaN NaN … NaN NaN; … ; NaN NaN … NaN NaN; NaN NaN … NaN NaN])