Skip to content

Commit

Permalink
Merge pull request #230 from jarq6c/update-nwm-client-new-docs
Browse files Browse the repository at this point in the history
Update nwm client new docs
  • Loading branch information
jarq6c authored Aug 24, 2023
2 parents 8844904 + f923e55 commit b7baa7b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions python/nwm_client_new/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,19 @@ from hydrotools.nwm_client_new.HTTPFileCatalog import HTTPFileCatalog
from hydrotools.nwm_client_new.NWMClientDefaults import MeasurementUnitSystem
import ssl

# Create ssl context
context = ssl.create_default_context(cafile="/path/to/my/ca-bundle.crt")

# Instantiate model data client
catalog = HTTPFileCatalog(
"https://path-to-my-private-server.com/nwm-files",
ssl_context=ssl.create_default_context(ca_file="/path/to/my/ca-bundle.crt")
"https://path-to-my-private-server.com/nwm/2.2/",
ssl_context=context
)
model_data_client = NWMFileClient(catalog=catalog, unit_system=MeasurementUnitSystem.US)
model_data_client = NWMFileClient(
catalog=catalog,
unit_system=MeasurementUnitSystem.US,
ssl_context=context
)

# Retrieve forecast data
forecast_data = model_data_client.get(
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "7.1.0"
__version__ = "7.1.1"

0 comments on commit b7baa7b

Please sign in to comment.