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

Knmi stations #174

Merged
merged 9 commits into from
May 8, 2023
Merged

Knmi stations #174

merged 9 commits into from
May 8, 2023

Conversation

rubencalje
Copy link
Collaborator

This pull-request improves the download of KNMI-data. It adds the parameter most_common_station to nlmod.read.knmi.get_recharge. When True, only data from the station that is most common in the model area is downloaded. This pull request also removes the call to the hydropandas method locations.geo.get_nearest_point, which can be quite slow.

@rubencalje rubencalje marked this pull request as ready for review May 8, 2023 20:23
@rubencalje rubencalje merged commit eab2d35 into dev May 8, 2023
@rubencalje rubencalje deleted the knmi-stations branch May 8, 2023 20:26
rubencalje added a commit that referenced this pull request May 8, 2023
* Add option to only use most common station

Slow determination of stations (locations.geo.get_nearest_point) is removed

* solve minor bug and add test for most_common_station=True

* Set gridgen files in a separate directory. Solves issue #158

* minor changes

* Make most_common_station work with structured grids as well

* Create gridgen directory when it does not exist

* Solve fiona.errors.DriverError:  not recognized as a supported file format.

* Remove rasterstats as a dependency for tests and docs

* Codacy stuff
dbrakenhoff pushed a commit that referenced this pull request May 9, 2023
* Add option to only use most common station

Slow determination of stations (locations.geo.get_nearest_point) is removed

* solve minor bug and add test for most_common_station=True

* Set gridgen files in a separate directory. Solves issue #158

* minor changes

* Make most_common_station work with structured grids as well

* Create gridgen directory when it does not exist

* Solve fiona.errors.DriverError:  not recognized as a supported file format.

* Remove rasterstats as a dependency for tests and docs

* Codacy stuff
dbrakenhoff pushed a commit that referenced this pull request May 9, 2023
* Add option to only use most common station

Slow determination of stations (locations.geo.get_nearest_point) is removed

* solve minor bug and add test for most_common_station=True

* Set gridgen files in a separate directory. Solves issue #158

* minor changes

* Make most_common_station work with structured grids as well

* Create gridgen directory when it does not exist

* Solve fiona.errors.DriverError:  not recognized as a supported file format.

* Remove rasterstats as a dependency for tests and docs

* Codacy stuff
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.

1 participant