Documentation issue In station.getIdList() there are two parameters: project and theme.
The default return value of the function is a dataframe df with the columns:
['uri', 'id', 'name', 'icosClass', 'country', 'lat', 'lon', 'elevation', 'stationTheme', 'firstName', 'lastName', 'email', 'siteType', 'project', 'theme']
It should be emphasized better that the parameter project, that is project != 'ICOS' is the same as project =ALL.
In particular it has nothing to do with the values of the column df.project.
On the other hand, the user can find all themes using
of these only AS_JFJ has an icosClass, however the df.project of the station http://meta.icos-cp.eu/resources/stations/ES_IE-Cra is set to ICOS because of the ES in ES_IE-Cra.
This is handled by the internal function station.__project() which is just looking at the uri, but it should consider the icosClass too.
Moreover, the station object of JFJ fetch some data from the ICOS station: Jungfraujoch and some data from non-ICOS station: Jungfraujoch LaboratorySolution for 2: Add the parameter icosClass into station.__project()
Bug: Running station.get('IE-CRA') leads to a crash because the station 'IE-Cra' lacks information such as elevation (None can not be casted to a float).
Solution for 3: add validation of the entries, replace 'None' values by relevant types.
station.getIdList()
there are two parameters:project
andtheme
. The default return value of the function is a dataframedf
with the columns:['uri', 'id', 'name', 'icosClass', 'country', 'lat', 'lon', 'elevation', 'stationTheme', 'firstName', 'lastName', 'email', 'siteType', 'project', 'theme']
It should be emphasized better that the parameter
project
, that isproject != 'ICOS'
is the same asproject =ALL
. In particular it has nothing to do with the values of the columndf.project
.On the other hand, the user can find all themes using
and in a second call, run
df = getIdList(project='whatever', theme = 'FluxnetStation')
to fetch allFLUXNET
-stationsSolution for 1: update the documentations.
station.getIdList()
we find two station idsES-Cra
andJFJ
having two different urisof these only
AS_JFJ
has anicosClass
, however thedf.project
of the stationhttp://meta.icos-cp.eu/resources/stations/ES_IE-Cra
is set toICOS
because of theES
inES_IE-Cra
.This is handled by the internal function
station.__project()
which is just looking at theuri
, but it should consider theicosClass
too.Moreover, the station object of
JFJ
fetch some data from the ICOS station:Jungfraujoch
and some data from non-ICOS station:Jungfraujoch Laboratory
Solution for 2: Add the parametericosClass
intostation.__project()
station.get('IE-CRA')
leads to a crash because the station 'IE-Cra' lacks information such aselevation
(None can not be casted to a float). Solution for 3: add validation of the entries, replace 'None' values by relevant types.