ExamplesforRealWorldApplication
In [1]:
Copied!
#pip install fakemap
#pip install fakemap
In [2]:
Copied!
#you can use fakemap to do a basic image analysis for a GeoTIFF
#you can use fakemap to do a basic image analysis for a GeoTIFF
In [3]:
Copied!
import fakemap
import fakemap
In [4]:
Copied!
fakemap.view_satellite_bands("Sample/KnoxvilleTest.tif")
fakemap.view_satellite_bands("Sample/KnoxvilleTest.tif")
In [5]:
Copied!
fakemap.plot_pixel_spectral_profile("Sample/KnoxvilleTest.tif", 100, 100)
fakemap.plot_pixel_spectral_profile("Sample/KnoxvilleTest.tif", 100, 100)
In [6]:
Copied!
fakemap.print_geotiff_metadata("Sample/KnoxvilleTest.tif")
fakemap.print_geotiff_metadata("Sample/KnoxvilleTest.tif")
Metadata for GeoTIFF file: Sample/KnoxvilleTest.tif
Width: 7851
Height: 7971
Number of bands: 3
Data type: uint8
Coordinate reference system: EPSG:32617
Transform:
| 30.00, 0.00, 117285.00|
| 0.00,-30.00, 4111815.00|
| 0.00, 0.00, 1.00|
Bounds: BoundingBox(left=117285.0, bottom=3872685.0, right=352815.0, top=4111815.0)
Metadata: {'driver': 'GTiff', 'dtype': 'uint8', 'nodata': None, 'width': 7851, 'height': 7971, 'count': 3, 'crs': CRS.from_epsg(32617), 'transform': Affine(30.0, 0.0, 117285.0,
0.0, -30.0, 4111815.0)}
In [7]:
Copied!
#with fakemap a basic analysis of a geotiff is preformed in seconds with little to no coding needed
#with fakemap a basic analysis of a geotiff is preformed in seconds with little to no coding needed
Last update:
2023-05-11