obsio is a Python package that provides a consistent generic interface for accessing weather and climate observations from multiple different data providers.
GNU General Public License v3.0
17
stars
7
forks
source link
AttributeError: 'NoneType' object has no attribute 'promotePrefixes' #3
import obsio
import pandas as pd
# List of elements to obtain
elems = ['tmin', 'tmax', 'swe']
# Lat/Lon bounding box for the Pacific Northwest
bbox = obsio.BBox(west_lon=-126, south_lat=42, east_lon=-111, north_lat=50)
# Start, end dates as pandas Timestamp objects
start_date = pd.Timestamp('2015-01-01')
end_date = pd.Timestamp('2015-01-31')
# Initialize factory with specified parameters
obsiof = obsio.ObsIoFactory(elems, bbox, start_date, end_date)
# Create ObsIO object for accessing daily NRCS observations
nrcs_io = obsiof.create_obsio_dly_nrcs()
# All ObsIO objects contain a stns attribute. This is a pandas DataFrame
# containing metadata for all stations that met the specified parameters.
print(nrcs_io.stns)
suds-py3 error when running below code that queries NRCS AWDB web service. Possibility due to: https://github.com/cackharot/suds-py3/issues/37 .