msbentley / psa_utils Goto Github PK
View Code? Open in Web Editor NEWA set of utilities to work with ESA's Planetary Science Archive (PSA)
License: GNU General Public License v3.0
A set of utilities to work with ESA's Planetary Science Archive (PSA)
License: GNU General Public License v3.0
Searching the PSA with query:
dos_v1=psa.query("select granule_uid, time_min, time_max from epn_core where granule_uid like '%frd_raw_sc%::1.%'")
IndexError Traceback (most recent call last)
Input In [63], in <cell line: 1>()
----> 1 dos_v1=psa.query("select granule_uid, time_min, time_max from epn_core where granule_uid like '%frd_raw_sc%::1.%'")
File ~/opt/anaconda3/envs/test/lib/python3.8/site-packages/psa_utils-0.2.3-py3.8.egg/psa_utils/tap.py:56, in PsaTap.query(self, q, sync, dropna, verbose, job_wait_cycles, job_wait_time)
53 for col, dtype in data.dtypes.items():
54 if dtype == np.object:
55 # check if we really have bytes here or a string
---> 56 if not isinstance(data[col].iloc[0], str):
57 data[col] = data[col].str.decode('utf-8')
59 else:
File ~/opt/anaconda3/envs/test/lib/python3.8/site-packages/pandas-1.4.2-py3.8-macosx-10.9-x86_64.egg/pandas/core/indexing.py:967, in _LocationIndexer.getitem(self, key)
964 axis = self.axis or 0
966 maybe_callable = com.apply_if_callable(key, self.obj)
--> 967 return self._getitem_axis(maybe_callable, axis=axis)
File ~/opt/anaconda3/envs/test/lib/python3.8/site-packages/pandas-1.4.2-py3.8-macosx-10.9-x86_64.egg/pandas/core/indexing.py:1520, in _iLocIndexer._getitem_axis(self, key, axis)
1517 raise TypeError("Cannot index by location index with a non-integer key")
1519 # validate the location
-> 1520 self._validate_integer(key, axis)
1522 return self.obj._ixs(key, axis=axis)
File ~/opt/anaconda3/envs/test/lib/python3.8/site-packages/pandas-1.4.2-py3.8-macosx-10.9-x86_64.egg/pandas/core/indexing.py:1452, in _iLocIndexer._validate_integer(self, key, axis)
1450 len_axis = len(self.obj._get_axis(axis))
1451 if key >= len_axis or key < -len_axis:
-> 1452 raise IndexError("single positional indexer is out-of-bounds")
IndexError: single positional indexer is out-of-bounds
`
When executing the get_datasets()
call I get these warnings:
dsets = p.get_datasets()
WARNING: W42: None:1:81: W42: No XML namespace specified [astropy.io.votable.tree]
WARNING: W15: None:2:46: W15: FIELD element missing required 'name' attribute [astropy.io.votable.tree]
WARNING: W15: None:2:161: W15: FIELD element missing required 'name' attribute [astropy.io.votable.tree]
WARNING: W15: None:2:282: W15: FIELD element missing required 'name' attribute [astropy.io.votable.tree]
WARNING: W15: None:2:427: W15: FIELD element missing required 'name' attribute [astropy.io.votable.tree]
WARNING: W15: None:2:554: W15: FIELD element missing required 'name' attribute [astropy.io.votable.tree]
WARNING: W15: None:2:681: W15: FIELD element missing required 'name' attribute [astropy.io.votable.tree]
WARNING: W15: None:2:829: W15: FIELD element missing required 'name' attribute [astropy.io.votable.tree]
WARNING: W15: None:2:956: W15: FIELD element missing required 'name' attribute [astropy.io.votable.tree]
WARNING: W15: None:2:1068: W15: FIELD element missing required 'name' attribute [astropy.io.votable.tree]
WARNING: W15: None:2:1177: W15: FIELD element missing required 'name' attribute (suppressing further warnings of this type...) [astropy.io.votable.tree]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.