ICOS-Carbon-Portal / pylib

Python library for direct access to ICOS time series data.
12 stars 3 forks source link

Fix query and remove some sparql runs. #104

Closed altix closed 2 years ago

altix commented 2 years ago

Changes in the icoscp.sparql module:

  1. The query as delivered by sparqls.getStations() did not always set firstName, lastName of the PI, and the stationTheme was always None due to a bug in sparql. (Also, prepared the function so it can filter on theme on the client side).
  2. Removed the query of sparqls.stations_with_pi() which will now use sparqls.getStations() instead.

Changes in the icoscp.station module:

  1. Added the new parameter stations_df to the function station.get() which will lower the number of sparql calls from "one large call" + "many small calls" to just "one large call"