Skip to content

Instantly share code, notes, and snippets.

@nikmolnar
Created December 2, 2015 01:22
Show Gist options
  • Save nikmolnar/42a9dbffe3435fd62a00 to your computer and use it in GitHub Desktop.
Save nikmolnar/42a9dbffe3435fd62a00 to your computer and use it in GitHub Desktop.
Example of importing a NetCDF dataset with the Data Basin client library.
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