We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing of fmi::observations::weather::mast::multipointcoverage fails with
fmi::observations::weather::mast::multipointcoverage
data = download_stored_query("fmi::observations::weather::mast::multipointcoverage") --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-19-2fb36c180ad2> in <module> ----> 1 data = download_stored_query("fmi::observations::weather::mast::multipointcoverage") ~/Software/fmiopendata/fmiopendata/wfs.py in download_stored_query(query_id, args) 124 raise NotImplementedError("No parser available for %s" % query_id) 125 --> 126 return download_and_parse(query_id, args=args) ~/Software/fmiopendata/fmiopendata/multipoint.py in download_and_parse(query_id, args) 162 url = url + "&" + "&".join(args) 163 xml = read_url(url) --> 164 return MultiPoint(xml, query_id, timeseries=timeseries) ~/Software/fmiopendata/fmiopendata/multipoint.py in __init__(self, xml, query_id, timeseries) 48 self._parse_radionuclide() 49 else: ---> 50 self._parse(self._xml) 51 52 def _parse_radionuclide(self): ~/Software/fmiopendata/fmiopendata/multipoint.py in _parse(self, xml) 80 longitudes = positions[1::3] 81 times = _parse_times(xml, positions) ---> 82 measurements = _parse_measurements(xml, (len(times), len(type2obs))) 83 84 if self._timeseries: ~/Software/fmiopendata/fmiopendata/multipoint.py in _parse_measurements(xml, shape) 126 def _parse_measurements(xml, shape): 127 measurements = np.fromstring(xml.findtext(wfs.GML_DOUBLE_OR_NIL_REASON_TUPLE_LIST), dtype=float, sep=" ") --> 128 return np.reshape(measurements, shape) 129 130 <__array_function__ internals> in reshape(*args, **kwargs) ~/miniconda3/envs/fmiopendata/lib/python3.8/site-packages/numpy/core/fromnumeric.py in reshape(a, newshape, order) 296 [5, 6]]) 297 """ --> 298 return _wrapfunc(a, 'reshape', newshape, order=order) 299 300 ~/miniconda3/envs/fmiopendata/lib/python3.8/site-packages/numpy/core/fromnumeric.py in _wrapfunc(obj, method, *args, **kwds) 55 56 try: ---> 57 return bound(*args, **kwds) 58 except TypeError: 59 # A TypeError occurs if the object does have such a method in its ValueError: cannot reshape array of size 8 into shape (2,6)
The text was updated successfully, but these errors were encountered:
pnuu
No branches or pull requests
Parsing of
fmi::observations::weather::mast::multipointcoverage
fails withThe text was updated successfully, but these errors were encountered: