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

Increase the accuracy of the station coordinates #26

Open
aschl opened this issue Jan 10, 2025 · 2 comments
Open

Increase the accuracy of the station coordinates #26

aschl opened this issue Jan 10, 2025 · 2 comments

Comments

@aschl
Copy link

aschl commented Jan 10, 2025

Meteostat currently publishes the coordinates of the stations only with an accuracy of two digits in their lat/lon.
This throws away very important information and creates unnecessary jitter. You can see this in the example below. On the left it shows the location of a station (here airport station in Lisbon) in Meteostat. On the right is shown its location shown by a provider with the full coordinates.
image

I think the culprit are lines

ROUND(`stations`.`latitude`, 2) AS `latitude`,

and
ROUND(`stations`.`longitude`, 2) AS `longitude`,

I would recommend removing these two lines and storing the coordinates in the full accuracy they are provided by the agencies.

@clampr
Copy link
Member

clampr commented Jan 11, 2025

Hi @aschl,

May I ask, are you referring to gridded data only (xarray) or did you retrieve the location shown above from the Python lib (e.g. https://dev.meteostat.net/python/stations.html) etc?

@aschl
Copy link
Author

aschl commented Jan 11, 2025

Hi @clampr,
Thanks for your swift response. I am referring to the hourly station data as downloaded from the bulk API.

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

No branches or pull requests

2 participants