Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

How to overwrite a raster data?

$
0
0
Code:

tempId = Raster(dsm_file)*0
tempId = SRTran.GetId(tempId)

the line 1 means that I create a empty raste, named tempId.
and the line 2 means that i use the 'tempId' to do a Map algebra, and i hope the same raster file (e.g. 'tempId') can be used to store the return value. But actually, the raster can not be overwrited. How can i do?

Viewing all articles
Browse latest Browse all 2485

Trending Articles