Giter Club home page Giter Club logo

Comments (7)

lewisblake avatar lewisblake commented on August 30, 2024

from pyaerocom.

heikoklein avatar heikoklein commented on August 30, 2024

depends on: metno/pyaro-readers#27

from pyaerocom.

heikoklein avatar heikoklein commented on August 30, 2024

A solution to this issue could be to convert the contours to shapely objects https://gis.stackexchange.com/questions/99917/converting-matplotlib-contour-objects-to-shapely-objects and then use shapely's geojson output https://shapely.readthedocs.io/en/stable/reference/shapely.to_geojson.html

from pyaerocom.

AugustinMortier avatar AugustinMortier commented on August 30, 2024

You might want to have a look at the approach I took in the issue quoted in a previous comment. I believe this would be more efficient: it's using contourpy (instead of matplotlib) and shapely. This was written for predefined layers, so the main thing here would be to generate the layers automatically based on range values given for specific parameters.

The contourpy approach was recommended by matplotlib people: matplotlib/matplotlib#27443

from pyaerocom.

heikoklein avatar heikoklein commented on August 30, 2024

contourpy might be worth a look, but it is a external one-man dependency. In addition, contourpy does not handle colors, so information about colors of the different ranges needs to be added, and conversion to geojson (which is the topic of this issue) is still left to another library shapely.

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024

bartromgens/geojsoncontour#25

from pyaerocom.

lewisblake avatar lewisblake commented on August 30, 2024

@jgriesfeller and I have been added as maintainers for geojsoncontour and can contribute to it's development for this project. A replacement is no longer necessary.

from pyaerocom.

Related Issues (20)

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.