GithubHelp home page GithubHelp logo

pandarus's Introduction

Pandarus

PyPI Status Python Version License

Read the documentation at https://pandarus.readthedocs.io/ Tests Codecov

pre-commit Black

Pandarus is a GIS software toolkit for regionalized life cycle assessment. It is designed to work with brightway LCA framework, brightway2-regional, and Constructive Geometries.

For more information, including installation instructions, see the online documentation, including a usage example. Pandarus is only compatible with >= Python 3.8.

Pandarus provides the following functionality:

Requirements

Development

Pandarus is developed by Chris Mutel as part of his work at the Technology Assessment Group at the Paul Scherrer Institut and previously at the Ecological Systems Design group at ETH Zürich.

Source code is available on GitHub.

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the BSD-2-Clause, pyilcd is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

pandarus's People

Contributors

cmutel avatar msgorgi avatar sami-m-g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pandarus's Issues

RemoteError: Can't reach https://pandarus.brightway.dev/

Hi,
Seems that pandarus link is not working.

RemoteError Traceback (most recent call last)
Cell In[16], line 1
----> 1 bwr.remote.intersection("world", "watersheds-hh")
2 bwr.remote.intersection("world", "watersheds-eq-sw-certain")
3 bwr.remote.intersection("world", "watersheds-eq-sw-all")

File ~/.conda/envs/bwcourse23/lib/python3.11/site-packages/bw2regional/pandarus_remote.py:73, in check_alive(wrapped, instance, args, kwargs)
70 @wrapt.decorator
71 def check_alive(wrapped, instance, args, kwargs):
72 if not instance.alive:
---> 73 raise RemoteError("Can't reach {}".format(instance.url))
74 return wrapped(*args, **kwargs)

RemoteError: Can't reach https://pandarus.brightway.dev/

Please, I would appreciate any help you can give me with this issue :)

Intersecting point and vector raises error

File ~/miniconda3/envs/pandarus_remote/lib/python3.9/site-packages/pandarus/calculate.py:258, in intersect(first_fp, first_field, second_fp, second_field, first_kwargs, second_kwargs, dirpath, cpus, driver, compress, log_dir)
    251     with fiona.open(
    252             fiona_fp, 'w',
    253             crs=WGS84,
    254             driver=driver,
    255             schema=schema,
    256         ) as sink:
    257         for f in as_features(data):
--> 258             sink.write(f)
    260 data_fp = json_exporter(
    261     {
    262         'data': [(k[0], k[1], v['measure']) for k, v in data.items()],
   (...)
    271     compress=compress
    272 )
    274 return fiona_fp, data_fp

File ~/miniconda3/envs/pandarus_remote/lib/python3.9/site-packages/fiona/collection.py:367, in Collection.write(self, record)
    365 def write(self, record):
    366     """Stages a record for writing to disk."""
--> 367     self.writerecords([record])

File ~/miniconda3/envs/pandarus_remote/lib/python3.9/site-packages/fiona/collection.py:361, in Collection.writerecords(self, records)
    359 if self.mode not in ('a', 'w'):
    360     raise IOError("collection not open for writing")
--> 361 self.session.writerecs(records, self)
    362 self._len = self.session.get_length()
    363 self._bounds = None

File fiona/ogrext.pyx:1285, in fiona.ogrext.WritingSession.writerecs()

GeometryTypeValidationError: Record's geometry type does not match collection schema's geometry type: 'MultiPoint' != 'MultiPolygon'

Proj.is_latlong is deprecated

The fonction Proj.is_latlong that is used in pandarus.projection.project line 47 is deprecated in the package Pyproj >= 2.2.0. It has been replaced by a Proj.crs.is_geographic property.

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.