Read Geo-tif Data

Read in data (from tif format, most likely georeferenced image data).

plantcv.geospatial.read_geotif(filename, mode="rgb")

returns PlantCV Spectral_data object instance

  • Parameters:

    • filename - Filepath to .tif data
    • mode - Mode for geotif reading
  • Example use:

    • below
import plantcv.plantcv as pcv 
import plantcv.geospatial as geo

# Read geotif in
marker = geo.read_geotif(filename="./data/example_img.tif", mode="rgb")

Source Code: Here