Skip to content

RS_BandNoDataValue

Returns the nodata value of the specified band as a double. Returns null if the band has no nodata value defined.

Usage

float64 RS_BandNoDataValue(rast: raster)
float64 RS_BandNoDataValue(rast: raster, band: int)

Arguments

  • rast (raster): Input raster
  • band (int): Band index (1-based). Defaults to 1 if not specified.

Examples

SELECT RS_BandNoDataValue(RS_Example());
┌──────────────────────────────────┐
│ rs_bandnodatavalue(rs_example()) │
│              float64             │
╞══════════════════════════════════╡
│                            127.0 │
└──────────────────────────────────┘
SELECT RS_BandNoDataValue(RS_Example(), 1);
┌───────────────────────────────────────────┐
│ rs_bandnodatavalue(rs_example(),Int64(1)) │
│                  float64                  │
╞═══════════════════════════════════════════╡
│                                     127.0 │
└───────────────────────────────────────────┘