Skip to content

Instantly share code, notes, and snippets.

@Fifan31
Created June 7, 2016 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fifan31/7c9e2fffdb7a71202cfca7a1e3297e32 to your computer and use it in GitHub Desktop.
Save Fifan31/7c9e2fffdb7a71202cfca7a1e3297e32 to your computer and use it in GitHub Desktop.
Utilisation de gdal_cal.py avec le typage des données
gdal_calc.py -A IMG.tif -B IMG.tif --B_band=2 --outfile=titi.tif --calc="1.0*((A.astype(float)*A.astype(float))+(B.astype(float)*B.astype(float)))" --type=Float32 --overwrite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment