Toolbox for 3D geonumerical calculations
Project description
geonum provides functionality for 3D geo numerical calculations including online access and handling of topography data. The module is based on two fundamental classes “GeoPoint” and “GeoVector3D” which are inherited from the respective base classes of the LatLon module and were expanded for the 3rd (elevation) dimension. Topography access is supported for SRTM data, which is handled by the SRTM module, and the Etopo1 Dataset for which the data needs to be downloaded and stored locally.
Requirements
It is recommended to use the package manager Anaconda since it includes many of the required dependencies and makes life easier when it comes to installation or upgrade of non-straight forward installations of additional requirements (e.g. opencv, basemap)
numpy
matplotlib >= 1.4.3
matplotlib basemap (installation of this module may not be straight forward - especially on Windows machines -, please follow the instructions provided on the web page)
LatLon requires installation of pyproj
Scipy (including scipy.ndimage)
Optional dependencies (to use extra features)
Installation
geonum can be installed from PyPi using:
pip install geonum
or from source by downloading and extracting the latest release. After navigating to the source folder (where the setup.py file is located) call:
python setup.py install
If the installation fails make sure, that all dependencies (see above) are installed correctly. geonum is tested for Python 2.7.
Instructions and code documentation
The code documentation of geonum is hosted on Read The Docs
Get started
After installation try running the example scripts in order to test the installation. The scripts are also meant to provide an easy start into the main features of geonum.
Supported Etopo1 files
In order to use topography data from the Etopo1 dataset, please download and unzip one of the following files to the package folder geonum/local_topo_data/. Tested and supported are the following two files (grid registered):
The local installation folder can be accessed via:
import geonum print geonum.LOCAL_TOPO_PATH
If a valid data file is stored in this folder, it will be detected automatically. It is also possible to store the topodata at another location (e.g. <data_path>). In this case, the local path to the folder containing the topograph files needs to be provided, e.g.:
import geonum access = geonum.topodata.TopoDataAccess(mode = "etopo1", local_path = <data_path>)
If the path is valid, it will be added to the installation file LOCAL_TOPO_PATHS.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.