geodata.mask#
Mask module of the geodata package. This module contains the Mask class, which is used to create, manipulate, and load geodata mask object that takes GeoTIFF and shapefiles as input. Additionally, this module also contains a set of functions that are used to interact with raw raster data and shapefiles.
Attributes#
Classes#
A class to create, manipulate, and load geodata mask object that takes GeoTIFF |
Functions#
|
Open a layer using rasterio given a file path. |
|
Open a raster (rasterio openner) with rioxarray |
|
Create a ras.DatasetReader object openning a temporary rasterio file |
|
Helper method to close the opened raster and save it to the given path. |
|
Given an array and an Affine transform, save the raster as tif file to the specified path. |
|
Crop a raster given geographical coordinates or its array index bounds |
|
Convert CRS of TIFF file from one to another. By default, we want to make the destination raster |
|
Apply a custom function to individual values in the raster array. |
|
Filter the raster with a list of values to be True. This method can also set |
|
Remove the all-zero columns and rows at the border of the raster and returns the trimmed raster. |
|
Eliminate the small area of a certain value in the raster by converting it to |
|
Convert the CRS of a shape object given its source CRS and destinated CRS. |
|
Plot a raster file. |
|
Show all the layers given a dictionary of name: raster pairs. |