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

Use intake-geopandas to load polygon data #190

Merged
merged 4 commits into from
Nov 1, 2020

Conversation

weiji14
Copy link
Owner

@weiji14 weiji14 commented Nov 1, 2020

Make it easier to open geographic boundaries (polygon outlines) by utilizing intake-geopandas. Will put it into atlas_catalog.yaml for now (rather than having a separate yaml file).

Antarctic Boundaries v02.shp overview. The shapefile includes the coastline, the grounding line, an ice shelf mask (striped), as well as IMBIE and refined basins. Also provided is a regional separation in East Antarctica (red lines), West Antarctica (green lines), and the Antarctic Peninsula (dark blue lines)

TODO:

  • Add intake-geopandas (756dc54)
  • Place antarctic_lakes_3031/4326.geojson into intake catalog (274ddbf)
  • Update intake-geopandas from v0.2.3 to newer version (intake/intake_geopandas@e08c89b) as it comes with better shapefile cache management (baa7ffa)
  • Place Antarctic Boundaries (Coastline, GroundingLine, IceBoundaries) from Quantarctica/PGC into intake catalog (292edfc)

References:

  • Mouginot, J., Scheuchl, B., & Rignot, E. (2017). MEaSURES Antarctic Boundaries for IPY 2007-2009 from Satellite Radar, Version 2 [Data set]. NASA National Snow and Ice Data Center DAAC. https://doi.org/10.5067/AXE4121732AD

An intake plugin for loading datasets with geopandas!
@weiji14 weiji14 added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 1, 2020
Glad that ATLAS also means 'collection of maps'! Putting the antarctic_subglacial_lakes_3031/4326.geojson file into our intake catalog so that people can read it directly into a geopandas.GeoDataFrame via `deepicedrain.catalog.subglacial_lakes.read()`, or `intake.cat.atlas_cat.subglacial_lakes.read()`. Also provides the option of selecting between EPSG:3031 (default) and EPSG:4326! Still need to work out what to populate into the metadata field, as there's aren't many good geopandas intake catalog examples out there yet to follow.
Bumps [intake-geopandas](https://github.com/intake/intake_geopandas) from 0.2.3 to 0.2.3+40.ge08c8.
- [Release notes](https://github.com/intake/intake_geopandas/releases)
- [Commits](intake/intake_geopandas@0.2.3...e08c89b)

Also bumped aiohttp from 3.6.2 to 3.7.2 to silence a DeprecationWarning (see aio-libs/aiohttp#4842).
Putting the IceBoundaries_Antarctica_v2.shp file into our intake catalog. Canonical source is at https://doi.org/10.5067/AXE4121732AD, but we're pulling it from PGC instead which doesn't require authentication. There's also the option of pulling the Coastline and GroundingLine (actually polygons) boundaries. Note to self that the urlpaths need to be in alphabetical order for fsspec caching to work.
@weiji14 weiji14 force-pushed the dependencies/intake_geopandas branch from 6206227 to 292edfc Compare November 1, 2020 03:47
@weiji14 weiji14 marked this pull request as ready for review November 1, 2020 03:48
@weiji14 weiji14 merged commit ff5e479 into master Nov 1, 2020
@weiji14 weiji14 deleted the dependencies/intake_geopandas branch November 1, 2020 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant