Skip to content

Change region station names in select boxes #45

@AlexDo1

Description

@AlexDo1

Obtaining the station names from the weather data

weather = dataManager['weather'].read()
statios = list(weather.keys())

results in the following list of station names:

'Norderney', 'Emden', 'Bremerhaven', 'Cuxhaven', 'Elpers', 'Ording', 'Soltau', 'Diepholz', 'Lüchow', 'Braunschweig', 'Alfeld', 'Lingen', 'Bremervörde', 'krummhoern', 'coast', 'niedersachsen', 'inland'.

In the text in station selectboxes, e.g.:

stat1 = st.selectbox('Select station/group (see map in sidebar for location):', statios)

'krummhoern', 'coast', 'niedersachsen', 'inland' should be capatilized, 'oe' should be replaced by 'ö' and it would be helpful to add something like 'Krummhörn (region)' to make clear which selections are regions.
This could be achieved with a dictionary for label names of the stations.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions