PyQGIS: Delete Features
Deleting features is a common operation in QGIS. It is easy to automate this task…
PyQGIS: Get Feature Geometry
Geometry is what defines the shape and spatial location of a feature. Features can be…
PyQGIS: Create a Point Feature
The QGIS Python API (PyQGIS) makes it possible to automate creation of point features. This…
R: Save NetCDF as a CSV
Sometimes certain analysis may require data in a tabular format (as opposed to the gridded…
numpy: Methods For Creating Arrays
It is tedious, and not practical, to manually type in values for array creation. In…
numpy: Array shapes and reshaping arrays
We’ve gone through the basics to manually create arrays of different dimensions and shapes. There…
numpy: Creating Arrays
Creating a simple array After numpy is installed, we can begin to create arrays. First, we’ll need…
numpy: Install numpy
Check Installation First, check to see if you already have numpy installed. From the terminal, you can…
numpy: Introduction to numpy
Requirements: Python version 2.7 or greaterBeginner skills with pythonDesire to learn numpy Objectives: Teach the basics…
PyQGIS: Select Features from a Vector Layer
Objectives: Select features from a vector layerIterate over selected features Open the QGIS Python Console…
PyQGIS: Access Vector Layer Attributes
Objectives: Retrieve data from the vector attribute table Open the QGIS Python Console From the…
PyQGIS: Get Raster Band Statistics
Objectives: Get statistics for a raster band Open the QGIS Python Console From the menu,…
PyQGIS: Get Info From Layers in the QGIS Interface
Objectives: Get information from layers that have already been added to the QGIS interface Open…
PyQGIS: Load Layers without Adding to QGIS Interface
Objectives: Load raster and vector layers without adding them to the QGIS interface Open the…
PyQGIS: Query Raster Values
Objectives: Query the value of a raster layer at a points Open the QGIS Python…
PyQGIS: Adding and deleting vector layer fields
Objectives: Add fields to a shapefileDelete fields from a shapefile Open the QGIS Python Console…
R: Get data from a NetCDF
List the data attributes Accessing the var property of our netCDF varialbe will list the data attributes…
R: Open NetCDF and view metadata
Let’s get right into the code. First, make sure you have the ncdf4 package installed. This requires…
PyQGIS: Loading and symbolizing vector layers
Objectives Load and symbolize a vector layer with pyqgisApply basic and graduated symbology Open the…
PyQGIS: Loading and symbolizing raster layers
More information can be found in the PyQGIS Developer Cookbook. Requirements QGIS version 3.0, or greater…