Giter Site home page Giter Site logo

hyo_bag's Introduction

HydrOffice BAG Tools

PyPi version Latest Documentation AppVeyor Status Travis-CI Status

General Info

logo

HydrOffice is a research development environment for ocean mapping. It provides a collection of hydro-packages, each of them dealing with a specific issue of the field. The main goal is to speed up both algorithms testing and research-2-operation.

The BAG Tools hydro-package collects tools for working with BAG files. BAG is a data format by the ONS-WG (Open Navigation Surface Working Group).

Dependencies

For the BAG library, you will need:

  • python [>=3.5]
  • numpy
  • h5py
  • lxml
  • gdal
  • PyInstaller [for freezing the tools]

For running some of the example scripts, you might also need:

  • matplotlib

Other info

hyo_bag's People

Contributors

giumas avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

hyo_bag's Issues

Runtime error with h5py package

I received the following runtime error when I was installing hydroffice.

The h5py package that I downloaded from the Linux Mint package manager I could not see the with_phil module defined under the base.py. I downloaded another h5py package from github
This package appears to have with_phil in the base.py file however references it from the _objects file two folders up. Hydroffice does not appear to be referencing any of these.
In the process of troubleshooting the problem I saw many forums saying that I might be circularly referencing "with_phil"

If it is of any help, the IDE I am using is Spyder (Python 2.7)

>>> runfile('/home/wcwi/Projects/2013_WCWI/wd/python/giumas-hyo_bag-76a8293481e3/examples/run_bag_elevation.py', wdir=r'/home/wcwi/Projects/2013_WCWI/wd/python/giumas-hyo_bag-76a8293481e3/examples')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 540, in runfile
    execfile(filename, namespace)
  File "/home/wcwi/Projects/2013_WCWI/wd/python/giumas-hyo_bag-76a8293481e3/examples/run_bag_elevation.py", line 10, in <module>
    from hydroffice.bag import helper
  File "/usr/lib/python2.7/hydroffice/bag/__init__.py", line 13, in <module>
    from .base import is_bag
  File "/usr/lib/python2.7/hydroffice/bag/base.py", line 12, in <module>
    from h5py._hl.base import with_phil
ImportError: cannot import name with_phil

Improve the package-ability of hydroffice.bag

Following our discussion started on the hdf-compass issue tracker, I made an attempt to package hydroffice.bag for Debian but hit a few issues. The package overall builds fine with the current Python 2 and Python 3 stack on Debian, but its final content does not meet the standard of our packaging policies.

The main problem concerns the package_data, which are installed under the Python system site-packages path (/usr/lib/pythonX.Y/dist-packages/...) instead of the recommended architecture independent path (/usr/share/...). The code in the helper module does not apparently handle arbitrary paths (only paths relative to the module file) so just patching setup.py to install the files listed in package_data somewhere else won't work.

On my end, the goal is to achieve a binary packaging organized the following way:

  • a Python 2 package to use the hydroffice.bag library with the Python 2 interpreter
  • a Python 3 package to use the hydroffice.bag library with the Python 3 interpreter
  • a "common" package containing the package_data files shared between the Python 2 and 3 packages
  • a "doc" package containing the HTML documentation
  • a "tools" package containing the command-line scripts

Thanks for your help.

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.