Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

rasterMisc

merge_rasters(in_rasters, merge_method='first', dtype='', out_file='', boolean_gt_0=False, gdal_unssafe=False, compress=False)

Description:

Merge a list of rasters into a single raster file.

Parameters:

Returns:


create_rasterio_inmemory(src, curData)

Description:

Create a rasterio object in memory from a numpy array.

Parameters:

Returns:


vectorize_raster(inR, bad_vals=[])

Description:

Convert input raster data to a GeoDataFrame.

Parameters:

Returns:


project_raster(srcRst, dstCrs, output_raster='')

Description:

Project a raster to a destination CRS.

Parameters:

Returns:


clipRaster(inR, inD, outFile=None, crop=True)

Description:

Clip input raster to a provided GeoDataFrame.

Parameters:

Returns:


rasterizeDataFrame(inD, outFile, idField='', templateRaster='', templateMeta='', nCells=0, res=0, mergeAlg='REPLACE', re_proj=False, nodata=np.nan, smooth=False, smooth_sigma=50)

Description:

Convert input GeoDataFrame into a raster file.

Parameters:

Returns:


polygonizeArray(geometry, curRaster, bandNum=1)

Description:

Convert cells of a rasterio object into a GeoDataFrame of polygons within the bounds of a geometry.

Parameters:

Returns:


zonalStats(inShp, inRaster, bandNum=1, mask_A=None, reProj=False, minVal='', maxVal='', verbose=False, rastType='N', unqVals=[], weighted=False, allTouched=False, calc_sd=False, return_df=False)

Description:

Run zonal statistics against an input shapefile and raster.

Parameters:

Returns:

Raises:


standardizeInputRasters(inR1, inR2, inR1_outFile='', resampling_type='nearest')

Description:

Standardize inR1 to inR2 by changing CRS, extent, and resolution.

Parameters:

Returns:


jaccardIndex(inR1, inR2)

Description:

Calculate the Jaccard index on two binary input raster objects.

Parameters:

Returns:

Raises: