Note! The newer version of GeoPython module is geoconda module, which includes more Python packages, Spyder and Python3.
Geopython is a collection of python packages that facilitate the development of python scripts for geoinformatics applications. It includes following python packages:
- descartes - use Shapely or GeoJSON-like geometric objects as matplotlib paths and patches.
- fiona - reads and writes spatial data files.
- gdal - reads and writes spatial data files, and GDAL/OGR data manipulation tools.
- geopandas - GeoPandas extends the datatypes used by pandas.
- networkx - for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.
- pyproj - performs cartographic transformations and geodetic computations.
- osgeo - used currently only for gdal.
- pysal - spatial analysis functions.
- rasterio - access to geospatial raster data.
- rasterstats - for summarizing geospatial raster datasets based on vector geometries. It includes functions for zonal statistics and interpolated point queries.
- rtree - spatial indexing and search.
- shapely - manipulation and analysis of geometric objects in the Cartesian plane.
- skimage - algorithms for image processing.
GeoPython module is build on top of Taito's python-env/2.7.10 module. See that page for packages included in the basic module and how to install your own packages.
Version on CSC's Servers
To use geopython in Taito, load first the geo-env module, which includes Python with GIS packages, GDAL, QGIS and LasTools.
module load geo-envThe module unloads all previously loaded modules, so it should be loaded first, if you need to load also some other modules.
After this you can launch your python program with command
For running your script via batch job system, use:
srun python my_geopython_code.py
Alternatively you can change the python definition in the first line of your code to
and execute the python program
Gis related example python scripts and how to run them in Taito can be found at CSC-Training github page.
Python spatial kirjastot.
- Essential Python Geospatial Libraries
- Geoprocessing with Python using Open Source GIS
- GeoExamples, a lot of examples of using Python for spatial analysis
- Automating GIS processes course materials, where most of the exercises are done using Python (University of Helsinki)
- Multiprocessing Basics