Skip to content

Commit c7d32e7

Browse files
Merge pull request #57 from ICOS-Carbon-Portal/upd_stiltStations
Update stiltStations.py
2 parents a9267ff + 1fdfa59 commit c7d32e7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

icos_jupyter_notebooks/station_characterization/stiltStations.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def getStilt():
2525
url="https://stilt.icos-cp.eu/viewer/stationinfo"
2626
df = pd.read_csv(url)
2727

28+
2829
# add ICOS flag to the station
2930
icosStations = cpstation.getIdList()
3031
icosStations = list(icosStations['id'][icosStations.theme=='AS'])
@@ -34,6 +35,10 @@ def getStilt():
3435

3536
# fill dictionary with ICOS station id, latitude, longitude and altitude
3637
for ist in sorted(allStations):
38+
39+
if not ist in df['STILT id'].values:
40+
continue
41+
3742
stations[ist] = {}
3843
# get filename of link (original stiltweb directory structure) and extract location information
3944

0 commit comments

Comments
 (0)