EnglishFrenchSpanish

OnWorks favicon

gdal_calc - Online in the Cloud

Run gdal_calc in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command gdal_calc that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


gdal_calc - gdal_calc.py Command line raster calculator with numpy syntax

SYNOPSIS


gdal_calc.py [-A <filename>] [--A_band] [-B...-Z filename] [other_options]

Options:
-h, --help show this help message and exit
--calc=CALC calculation in gdalnumeric syntax using +-/* or any
numpy array functions (i.e. logical_and())
-A A input gdal raster file, note you can use any letter
A-Z
--A_band=A_BAND number of raster band for file A (default 0)
--outfile=OUTF output file to generate or fill
--NoDataValue=NODATAVALUE
set output nodata value (Defaults to datatype specific
value)
--type=TYPE output datatype, must be one of ['Int32', 'Int16',
'Float64', 'UInt16', 'Byte', 'UInt32', 'Float32']
--format=FORMAT GDAL format for output file (default 'GTiff')
--creation-option=CREATION_OPTIONS, --co=CREATION_OPTIONS
Passes a creation option to the output format driver.
Multiple options may be listed. See format specific
documentation for legal creation options for each
format.
--allBands=ALLBANDS process all bands of given raster (A-Z)
--overwrite overwrite output file if it already exists
--debug print debugging information

DESCRIPTION


Command line raster calculator with numpy syntax. Use any basic arithmetic supported by
numpy arrays such as +-*\ along with logical operators such as >. Note that all files must
have the same dimensions, but no projection checking is performed.

EXAMPLE


add two files together

gdal_calc.py -A input1.tif -B input2.tif --outfile=result.tif --calc="A+B"

average of two layers

gdal_calc.py -A input.tif -B input2.tif --outfile=result.tif --calc="(A+B)/2"

set values of zero and below to null

gdal_calc.py -A input.tif --outfile=result.tif --calc="A*(A>0)" --NoDataValue=0

AUTHORS


Chris Yesson <chris dot='' yesson='' at='' ioz='' dot='' ac='' dot='' uk>=''> Etienne
Tourigny <etourigny dot='' dev='' at='' gmail='' dot='' com>=''>

Use gdal_calc online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Firebird
    Firebird
    Firebird RDBMS offers ANSI SQL features
    & runs on Linux, Windows &
    several Unix platforms. Features
    excellent concurrency & performance
    & power...
    Download Firebird
  • 2
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 3
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 4
    UNetbootin
    UNetbootin
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • 5
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM is an easy to use
    ERP and CRM open source software package
    (run with a web php server or as
    standalone software) for businesses,
    foundations...
    Download Dolibarr ERP - CRM
  • 6
    SQuirreL SQL Client
    SQuirreL SQL Client
    SQuirreL SQL Client is a graphical SQL
    client written in Java that will allow
    you to view the structure of a JDBC
    compliant database, browse the data in
    tables...
    Download SQuirreL SQL Client
  • More »

Linux commands

Ad