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

Add post-processing for MaStR data #134

Closed
gplssm opened this issue Mar 4, 2021 · 2 comments
Closed

Add post-processing for MaStR data #134

gplssm opened this issue Mar 4, 2021 · 2 comments
Assignees
Labels
🏗️ integration Integrating a data processing step

Comments

@gplssm
Copy link
Contributor

gplssm commented Mar 4, 2021

With #130 cleaned MaStR was added to the pipeline. This data does not include some important processing steps of open-MaStR post-processing (geom column, removal of units outside Germany, ...).

Either provide post-processed data on Zenodo and download it here or execute the post-processing on the

@gplssm gplssm added the 🏗️ integration Integrating a data processing step label Mar 4, 2021
@gplssm gplssm self-assigned this Mar 4, 2021
@ClaraBuettner
Copy link
Contributor

I already implemented some of these steps here:

# Drop entries without geometry for insert
mastr_loc = mastr[
mastr.Laengengrad.notnull() & mastr.Breitengrad.notnull()]
# Create geodataframe
mastr_loc = gpd.GeoDataFrame(
mastr_loc, geometry=gpd.points_from_xy(
mastr_loc.Laengengrad, mastr_loc.Breitengrad, crs=4326))
# Drop entries outside of germany
mastr_loc = gpd.sjoin(
gpd.read_postgis(
"SELECT geometry as geom FROM boundaries.vg250_sta_union",
con = db.engine()).to_crs(4326),
mastr_loc, how='right').drop('index_left', axis=1)

I can also move it to another place or remove them when this is done in open-MaStR. I had already written them before for some analysis and thought I could use them intermediate directly in my script.

gplssm added a commit that referenced this issue Mar 4, 2021
…r-data

Add function to download cleaned MaStR data from Zenodo.

Post-processing of this data will happen in #134
@nesnoj
Copy link
Member

nesnoj commented Nov 17, 2022

Outdated

@nesnoj nesnoj closed this as completed Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏗️ integration Integrating a data processing step
Projects
None yet
Development

No branches or pull requests

3 participants