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

Geosphere Dataset Update #1290

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

bluearrow98
Copy link

  • Updated dataset source
  • Fixed bugs in specifying dates

Copy link
Member

@gutzbenj gutzbenj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear @bluearrow98 ,

Thanks for handing in this PR!

I will have to continue looking through all parameters tomorrow and just dropped you some small comments.

wetterdienst/provider/geosphere/observation/api.py Outdated Show resolved Hide resolved
wetterdienst/provider/geosphere/observation/api.py Outdated Show resolved Hide resolved
wetterdienst/provider/geosphere/observation/api.py Outdated Show resolved Hide resolved
wetterdienst/provider/geosphere/observation/api.py Outdated Show resolved Hide resolved
WIND_DIRECTION_GUST_MAX = "ddx" # Windrichtung zum Böenspitzenwert °
WIND_GUST_MAX = "ffx" # maximale Windgeschwindigkeit m/s
WIND_SPEED = "ff" # vektorielle Windgeschwindigkeit m/s
WIND_SPEED_MEAN_100 = "ffam" # vektorielle Windgeschwindigkeit in 10m Höhe m/s
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear @bluearrow98 ,

if we follow my "logic" of parameter naming this would be

Suggested change
WIND_SPEED_MEAN_100 = "ffam" # vektorielle Windgeschwindigkeit in 10m Höhe m/s
WIND_SPEED_MEAN_1000 = "ffam" # vektorielle Windgeschwindigkeit in 10m Höhe m/s

What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just recognized that we probably should adjust all parameter names to either one of TEMPERATURE_AIR_MEAN_0001 or TEMPERATURE_AIR_MEAN_1 to get a consistent schema...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, thanks for your suggestions! I'll fix this in my next commit.

TEMPERATURE_SOIL_MEAN_010 = MINUTE_10.TEMPERATURE_SOIL_MEAN_010
TEMPERATURE_SOIL_MEAN_020 = MINUTE_10.TEMPERATURE_SOIL_MEAN_020
TEMPERATURE_SOIL_MEAN_050 = MINUTE_10.TEMPERATURE_SOIL_MEAN_050
WIND_DIRECTION = MINUTE_10.WIND_DIRECTION
WIND_DIRECTION_GUST_MAX = MINUTE_10.WIND_DIRECTION_GUST_MAX
WIND_GUST_MAX = MINUTE_10.WIND_GUST_MAX
WIND_SPEED = MINUTE_10.WIND_SPEED
WIND_SPEED_MEAN_100 = MINUTE_10.WIND_SPEED_MEAN_100
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
WIND_SPEED_MEAN_100 = MINUTE_10.WIND_SPEED_MEAN_100
WIND_SPEED_MEAN_1000 = MINUTE_10.WIND_SPEED_MEAN_1000

WIND_GUST_MAX = "ffx" # maximale Windgeschwindigkeit m/s
WIND_SPEED = "ff" # vektorielle Windgeschwindigkeit m/s
WIND_SPEED_MEAN_100 = "ffam" # vektorielle Windgeschwindigkeit in 10m Höhe m/s
WIND_SPEED_MAX_TIME = "zeitx"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this parameter be parsed as float?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @gutzbenj , I checked that they are already in float when they are read. Is there any particular reason why you'd want me to specifically parse these parameters as float?

Copy link
Member

@gutzbenj gutzbenj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear @bluearrow98 ,

thanks again for working on this PR! We should discuss the naming of parameters with height information e.g. TEMPERATURE_AIR_MEAN_200. Do you think we should drop leading zeros entirely (TEMPERATURE_AIR_MEAN_5) or rather readjust to new 10m maximum height (TEMPERATURE_AIR_MEAN_0005)?

Also what's left is the nasty rewriting of the docs but I would do that afterwards so that we can get this PR in quick.

@bluearrow98
Copy link
Author

bluearrow98 commented May 12, 2024

Dear @bluearrow98 ,

thanks again for working on this PR! We should discuss the naming of parameters with height information e.g. TEMPERATURE_AIR_MEAN_200. Do you think we should drop leading zeros entirely (TEMPERATURE_AIR_MEAN_5) or rather readjust to new 10m maximum height (TEMPERATURE_AIR_MEAN_0005)?

Also what's left is the nasty rewriting of the docs but I would do that afterwards so that we can get this PR in quick.

Dear @gutzbenj,

thanks for taking time to review this PR thoroughly! Super great :)
I was wondering the same. While I was working, the most tempting thing to do was to just name with only the SI unit information. So TEMPERATURE_AIR_MEAN_200 would instead become TEMPERATURE_AIR_MEAN_2, and TEMPERATURE_SOIL_MEAN_050 would just be TEMPERATURE_SOIL_MEAN_05. In other words, just drop the leading zeros, if any. I also feel that it is more intuitive this way. What do you think?
I'll get back to you on the other requested changes. Thanks again!

@gutzbenj
Copy link
Member

gutzbenj commented May 13, 2024

Dear @gutzbenj,

thanks for taking time to review this PR thoroughly! Super great :) I was wondering the same. While I was working, the most tempting thing to do was to just name with only the SI unit information. So TEMPERATURE_AIR_MEAN_200 would instead become TEMPERATURE_AIR_MEAN_2, and TEMPERATURE_SOIL_MEAN_050 would just be TEMPERATURE_SOIL_MEAN_05. In other words, just drop the leading zeros, if any. I also feel that it is more intuitive this way. What do you think? I'll get back to you on the other requested changes. Thanks again!

Wouldn't it rather be TEMPERATURE_AIR_MEAN_1 (1cm), TEMPERATURE_AIR_MEAN_10 (10cm), TEMPERATURE_AIR_MEAN_100 (100cm) and TEMPERATURE_AIR_MEAN_1000 (1000cm)?

@bluearrow98
Copy link
Author

bluearrow98 commented May 15, 2024

Wouldn't it rather be TEMPERATURE_AIR_MEAN_1 (1cm), TEMPERATURE_AIR_MEAN_10 (10cm), TEMPERATURE_AIR_MEAN_100 (100cm) and TEMPERATURE_AIR_MEAN_1000 (1000cm)?

No, I was proposing using SI unit of length (meters) for this purpose. That's why I suggested TEMPERATURE_AIR_MEAN_001 (1cm), TEMPERATURE_AIR_MEAN_01 (10cm), TEMPERATURE_AIR_MEAN_1 (100cm) and TEMPERATURE_AIR_MEAN_10 (1000cm). Does that sound good to you?

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

Successfully merging this pull request may close these issues.

None yet

3 participants