Skip to content

Latest commit

 

History

History
131 lines (85 loc) · 5.01 KB

rasdaman_quickstart.rst

File metadata and controls

131 lines (85 loc) · 5.01 KB
Author: Peter Baumann (p.baumann@jacobs-university.de)
Reviewer:Felicity Brand (Google Season of Docs 2019)
Version: osgeolive13.0
License:Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)

@LOGO_rasdaman@ @OSGEO_KIND_rasdaman@ @VMDK_rasdaman@

@NAME_rasdaman@ Quickstart

Rasdaman is a Big Data Engine for flexible ad-hoc analytics on multi-dimensional spatio-temporal sensor, image, simulation, and statistics data of unlimited size. The Web Coverage Processing Service (WCPS) query language is an Open Geospatial Consortium (OGC) standard wich allows filtering and processing of multi-dimensional raster coverages, such as sensor, simulation, image, and statistics data using web services. The WCPS queries are translated to rasdaman query language, rasql, and are executed on rasdaman. This quick start shows how to access and manipulate an example 2D coverage using WCPS language.

The first step before trying any of the following queries is to start rasdaman and Tomcat. Open the Databases directory on the Desktop, and then Start Rasdaman Server. Allow two to three minutes for rasdaman and especially Tomcat to fully start (once the rasdaman web client loads in the browser).

Afterwards, you can open Rasdaman-Earthlook Demo from the same directory, which will launch a local demonstrator in the browser. For a more hands-on tutorial though, continue with the next examples here.

Either:

The example coverage which will be used subsequently is a 6 MB image as below:

/images/projects/rasdaman/rasdaman_ndvi1.png

The WCPS query to access the full coverage is as follows:

for c in (NIR) return encode(c, "png")

Click on coverage request to execute it in the browser.

The WCPS query to access a subset of the coverage is as follows:

for c in (NIR) return encode(c[i(0:500),j(0:500)], "png")

Click on the subsetting request to execute it on the browser.

The query result is an image as follows:

/images/projects/rasdaman/rasdaman_ndvi2.png

The WCPS query to access the red band of the coverage is as follows:

for c in (NIR) return encode(c.red, "png")

Click on band extraction to execute it; you should see the following image in the browser as a result:

/images/projects/rasdaman/rasdaman_ndvi3.png

The NDVI (Normalized Difference Vegetation Index) is a measure for the probability of vegetation in remote sensing, i.e., the closer to +1 a pixel is, the more likely it is plants. The WCPS query to derive NDVI from the coverage is as follows:

for c in ( NIR ) return
encode(
  (unsigned char) (
     (((float)c.0 - (float)c.1) /
      ((float)c.0 + (float)c.1)) > 0
  ) * 255
, "png" )

/images/projects/rasdaman/rasdaman_ndvi4.png