Skip to content

imgReadWrite

Subhadip Datta edited this page Nov 14, 2020 · 3 revisions

Read and Write a Satellite Image in Python Env:

satiopst.imgReadWrite.imgRead(imgpath,mode="r")

Import satellite image to python env.

Parameters

imgpath : Path to satellite image.
mode : mode of the operation no need to change, optional Don't change. The default is "r".

Returns

imgf : Image as nd Numpy array.
imgmeta : Metadata of the image.


satiopst.imgReadWrite.imgWrite(imgarray,filepath,imgmeta,mode="w",bands=1)

Export or write satellite image from python enviroment to disk.

Parameters

imgarray : Array of the satellite image.
filepath : output file destination. With directory if needed.
imgmeta : metadata for the image.
mode : mode of the operation no need to change, optional Don't change. The default is "w".
bands : Number of bands in the image, optional, Change according to the bands. The default is 1.

Returns

Export image to disk.

Clone this wiki locally