Skip to content

Yujie-W/octave-griddingmachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GriddingMachine for Octave and Matlab

The package is a simplification of GriddingMachine.jl, where a full suite of functions are available.

Installation and Uninstallation

For Octave (tested on v6.2.0):

% To install
pkg install "https://github.com/gnu-octave/pkg-json/archive/v1.5.0.tar.gz";
pkg install "https://github.com/Yujie-W/octave-griddingmachine/archive/v0.1.1.tar.gz";
% To uninstiall
pkg uninstall json;
pkg uninstall griddingmachine;

For Matlab (tested on R2021b):

% To install
urlwrite('https://github.com/Yujie-W/octave-griddingmachine/raw/main/GriddingMachine.mltbx', 'GriddingMachine.mltbx');
matlab.addons.toolbox.installToolbox('GriddingMachine.mltbx');
delete('GriddingMachine.mltbx');
% To uninstall
matlab.addons.uninstall('GriddingMachine');

API

update_GM

Update the GriddingMachine.jl artifact library.

update_GM();

query_collection

Query the dataset path; if the dataset does not exist, the dataset will be downloaded and unzipped automatically.

file_path = query_collection('VCMAX_2X_1Y_V1');

The dataset is a NetCDF file with data labeled as data and error labeled as std.

request_LUT

Request the data for a given latitude and longitude from the server without downloading the datasets.

[vcmax,error] = request_LUT('VCMAX_2X_1Y_V1', 35.1, 115.2);

Note that the function also allows for other input variables, including cyc, user, interpolation, server, and port. For example, if interpolation is true, the dataset would be interpolated.

[vcmax,error] = request_LUT('VCMAX_2X_1Y_V1', 35.1, 115.2, 'interpolation', true);

About

An Octave/Matlab wrapper for GriddingMachine.jl

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages