Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change region station names in select boxes #45

Open
AlexDo1 opened this issue Mar 16, 2022 · 2 comments
Open

Change region station names in select boxes #45

AlexDo1 opened this issue Mar 16, 2022 · 2 comments

Comments

@AlexDo1
Copy link
Collaborator

AlexDo1 commented Mar 16, 2022

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.

@AlexDo1 AlexDo1 added this to the APP: Weather Data milestone Mar 16, 2022
@AlexDo1 AlexDo1 changed the title Station names from weather data and stats.csv are different Change region station names in select boxes Mar 16, 2022
@mmaelicke
Copy link
Member

@cojacoo, when implementing this, should we use a hard-coded list of stations, or write something that derives the station names from the available netCDF?
Is it likely, that the list of stations might change?

@AlexDo1
Copy link
Collaborator Author

AlexDo1 commented Jul 20, 2022

This issue is still unsolved.

@cojacoo maybe you can give an answer to this comment:

@cojacoo, when implementing this, should we use a hard-coded list of stations, or write something that derives the station names from the available netCDF?
Is it likely, that the list of stations might change?

I guess the 'correct' and full station names are the following:

  • 'Norderney',
  • 'Emden-Nesserland',
  • 'Bremerhaven',
  • 'Cuxhaven',
  • 'Elpersbüttel',
  • 'Sankt Peter-Ording',
  • 'Soltau',
  • 'Diepholz',
  • 'Lüchow',
  • 'Braunschweig-Gliesmarode',
  • 'Alfeld',
  • 'Lingen',
  • 'Bremervörde (A)'
  • 'Krummhörn (region)'
  • 'Coastal (region)'
  • 'Niedersachsen (region)'
  • 'Inland (region)'

So for example 'Sankt Peter-Ording' instead of 'Ording' or 'Elpersbüttel' instead of 'Elpers'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants