GDAL (Geospatial Data Abstraction Library) is a GIS translator library for accessing and transforming geospatial data. Most commonly it is used in file format or coordinate system changes.
GDAL is available with following versions:
- 3.5.0 - geoconda-3.10.6 in Puhti
- 3.4.3 stand-alone:
- 3.4.1 - QGIS-3.31 module in Puhti and LUMI
- Also in Puhti: r-env and OrfeoToolBox
The stand-alone version doesn't have python bindings installed so e.g gdal_calc works only in the geoconda installations. Also, the supported file formats vary slightly between the GDAL installations. For instance, the PostGIS driver is not available in stand-alone gdal but is included in the geoconda versions.
GDAL is included in the modules listed above, so it can be used when any of these modules is loaded.
If you need to use a stand-alone version of GDAL or plan to build software on top of GDAL, you can load GDAL with
module load gdal
By default the latest gdal module is loaded. If you want a specific version you can specify the version number
module load gdal/<VERSION>
You can test if GDAL loaded successfully with following
r-env gdal commands can be used as:
apptainer_wrapper exec gdalinfo --version
Using files directly from object storage services or cloud, inc Allas
GDAL supports virtual network based file systems for reading and sometimes writing from several cloud storage systems, inc CSC Allas, Amazon S3, Google Cloud Storage, Microsoft Azure etc. Please check CSC's Using geospatial files directly from cloud, inc Allas tutorial for instructions and examples.
With large quantities of raster data (also in Allas), the most convenient method of accessing them might be GDAL virtual rasters.
GDAL/OGR contributors (2022). GDAL/OGR Geospatial Data Abstraction software Library. Open Source Geospatial Foundation. URL https://gdal.org, DOI: 10.5281/zenodo.5884351
Please acknowledge CSC and Geoportti in your publications, it is important for project continuation and funding reports. As an example, you can write "The authors wish to thank CSC - IT Center for Science, Finland (urn:nbn:fi:research-infras-2016072531) and the Open Geospatial Information Infrastructure for Research (Geoportti, urn:nbn:fi:research-infras-2016072513) for computational resources and support".
Standalone GDAL was installed to Puhti using Spack and its GDAL package definition. For other installations, see respective application page.