Git Product home page Git Product logo

cartowik's People

Contributors

juseg avatar

Watchers

 avatar

cartowik's Issues

Fix compatibility with Fiona.

Currently examples fail when using Fiona instead of Pyshp.

Traceback (most recent call last):
  File "./hokkaido_location.py", line 27, in <module>
    cne.add_rivers(ax=ax)
  File ".../cartowik/naturalearth.py", line 149, in add_rivers
    add_feature(
  File ".../cartowik/naturalearth.py", line 21, in add_feature
    return add_shapefile(fname, **kwargs)
  File ".../cartowik/naturalearth.py", line 46, in add_shapefile
    for rec in shp.records():
  File "/usr/lib/python3.8/site-packages/cartopy/io/shapereader.py", line 320, in records
    yield FionaRecord(item['geometry'],
  File "/usr/lib/python3.8/site-packages/cartopy/io/shapereader.py", line 193, in __init__
    self._bounds = geometry.bounds
AttributeError: 'NoneType' object has no attribute 'bounds'

Add example testing land masking techniques.

Here are a few different coastline plotting techniques I can think of:

  • all elevations with zero contour;
  • full bathy background and rasterio land-masked topo overlay;
  • full topo background and rasterio ocean-masked bathy overlay;
  • full bathy, land polygon and positive elev (assume no positive elev at sea);
  • full topo, ocean polygon and negative elev (assume no negative elev on land);
  • full topo, ocean polygon and contours; and
  • full bathy, land polygon and contours.

Maybe Kushiro / Abashiri is a good test region for it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.