From 1006b58bc9830e6ec2a80b2b162f429ce89d8d4b Mon Sep 17 00:00:00 2001 From: "Jason A. Regina" Date: Thu, 5 Aug 2021 12:56:25 -0500 Subject: [PATCH] Delete nwm_client/main.py File accidentally let over from testing. Closes #121 --- python/nwm_client/main.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 python/nwm_client/main.py diff --git a/python/nwm_client/main.py b/python/nwm_client/main.py deleted file mode 100644 index bc4275e7..00000000 --- a/python/nwm_client/main.py +++ /dev/null @@ -1,27 +0,0 @@ -# Import the nwm Client -from hydrotools.nwm_client import http as nwm -import pandas as pd - -# Path to server (NOMADS in this case) -# server = "https://nomads.ncep.noaa.gov/pub/data/nccf/com/nwm/prod/" -server = "http://0.0.0.0:8000/data/" - -# Instantiate model data service -model_data_service = nwm.NWMDataService(server) - -# Set reference time -yesterday = pd.Timestamp.utcnow() - pd.Timedelta("1D") -reference_time = yesterday.strftime("%Y%m%dT%-HZ") - -# Retrieve forecast data -# By default, only retrieves data at USGS gaging sites in -# CONUS that are used for model assimilation -forecast_data = model_data_service.get( - configuration = "short_range", - reference_time = "20210601T01Z", - # reference_time = reference_time - ) - -# Look at the data -print(forecast_data.info(memory_usage='deep')) -print(forecast_data[['value_time', 'value']].head())