Skip to content

Yujie-W/python-griddingmachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-griddingmachine

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

Installation and Uninstallation

To install griddingmachine, do

$ pip install python-griddingmachine

To uninstall griddingmachine, do

$ pip uninstall python-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. E.g., if interpolation is true, the dataset would be interpolated.

vcmax,error = request_LUT('VCMAX_2X_1Y_V1', 35.1, 115.2, interpolation=True);

Note

  1. Build the package before unloaded it to PyPI:
$ poetry build
  1. Upload the package to PyPI
$ poetry publish