Created
December 2, 2015 01:22
-
-
Save nikmolnar/42a9dbffe3435fd62a00 to your computer and use it in GitHub Desktop.
Example of importing a NetCDF dataset with the Data Basin client library.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from databasin.client import Client | |
c = Client() | |
c.login('user', 'pass') | |
# Package must have complete metadata and style necessary for one-step import | |
dataset = c.import_netcdf_dataset('/path/to/netcdf_with_metadata_and_style.zip') | |
# One-step imports are private by default | |
dataset.make_public() | |
print(dataset.id) | |
print(dataset.title) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment