Open scollis opened 6 years ago
Note: no error when using time instead of time_range
now when using
datetime.utcnow() - timedelta(minutes=5))
I get
HTTPError Traceback (most recent call last)
<ipython-input-61-1687871e6b78> in <module>()
12
13
---> 14 data = ncss.get_data(query)
15 #Pass the bounding box through
16 #query.lonlat_box(**bb)
~/anaconda3/envs/pchange/lib/python3.6/site-packages/siphon/ncss.py in get_data(self, query)
112
113 """
--> 114 resp = self.get_query(query)
115 return response_handlers(resp, self.unit_handler)
116
~/anaconda3/envs/pchange/lib/python3.6/site-packages/siphon/http_util.py in get_query(self, query)
400 """
401 url = self._base[:-1] if self._base[-1] == '/' else self._base
--> 402 return self.get(url, query)
403
404 def url_path(self, path):
~/anaconda3/envs/pchange/lib/python3.6/site-packages/siphon/http_util.py in get(self, path, params)
485 'Server Error ({1:d}: {2})'.format(resp.request.url,
486 resp.status_code,
--> 487 text))
488 return resp
489
HTTPError: Error accessing http://thredds.ucar.edu/thredds/ncss/nws/metar/ncdecoded/Metar_Station_Data_fc.cdmr?var=wind_speed&var=weather&var=dew_point_temperature&var=report_id&var=cloud_area_fraction&var=wind_from_direction&var=inches_ALTIM&var=air_temperature&time_start=2018-09-07T03%3A17%3A09.613948&time_end=2018-09-07T15%3A12%3A09.613958&west=-170.0&east=-140.0&south=60.0&north=75&accept=csv
Server Error (502: badgateway)
:)
Hey Developers. Could be a thredds issue.. Please close if not the right place. trying to find obs in Alaska for a project.. Specifically narrowed the variables required so I don't just get Anchorage..
Code:
Error: