Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
issue #23 - documentation for RIO applying edits
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Oct 9, 2015
1 parent 3ca82a3 commit d62482a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
# built documents.
#
# The short X.Y version.
version = '1.0.0'
version = '1.0.1'
# The full version, including alpha/beta/rc tags.
release = '1.0.0'
release = '1.0.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand All @@ -67,6 +67,7 @@
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'
today_fmt = '%d %B %Y at %H:%M:%S'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Contents:


.. toctree::
:numbered:
:maxdepth: 1

intro.rst
Expand Down
3 changes: 3 additions & 0 deletions docs/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Background reading, see this article: *"Building bridges: experiences and lesson
*from the implementation of INSPIRE and e-reporting of air quality data in Europe"*
`[PDF] <http://sensors.geonovum.nl/media/EarthSciInform_Art_10_1007.pdf>`_.

This is document version |release| generated on |today|.


About this Document
===================

Expand Down
18 changes: 10 additions & 8 deletions docs/rio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ See also an overview in `this presentation (Grothe 2015) <http://www.geonovum.nl

*INSPIRE View and Download Services*

RIO Output Via WCS
RIO Output via WCS
==================

This was done as a first step. RIVM has kindly provided us with some RIO input and output datafiles plus documentation.
Expand All @@ -85,7 +85,7 @@ The metadata gives enough information to construct a GeoTIFF. The most important
* date and time (hour) of the measurements
* the chemical component (here NO2)

The data values are space-separated values. No-values are denoted with ``-999.0`` : ::
The data values are space-separated values. Empty (NoData) values are denoted with ``-999.0`` : ::

... -999.0 23.4 23.6 -999.0 24.2 17.3 14.3 ...
... 16.1 17.3 18.4 19.4 21.6 21.9 20.1 ...
Expand All @@ -96,15 +96,17 @@ Converting to GeoTIFF
Developing a simple Python program called `aps2raster.py <https://github.com/Geonovum/sospilot/blob/master/src/rivm-rio/aps2raster.py>`_,
the ``.aps`` files are converted to GeoTIFF files. ``aps2raster.py`` reads an APS file line by line. From the first
line the metadata elements are parsed. From the remaining lines a 2-dimensional array of floats is populated.
Finally a geoTIFF file is created with the data and metadata. Projection is always in RD/EPSG:28992.
Finally a GeoTIFF file is created with the data and metadata. Projection is always in RD/EPSG:28992.

`aps2raster.py <https://github.com/Geonovum/sospilot/blob/master/src/rivm-rio/aps2raster.py>`_ uses the GDAL and NumPy Python libraries.

WMS with Raster Styling
-----------------------

Using GeoServer the GeoTIFFs are added as datasources and one layer per GeoTIFF is published. Within GeoServer
this automatically creates both a WCS and a WMS layer. As the GeoTIFF does not contain colors but data values
styling is needed to view the WMS layer. This has been done via Styled Layer Descriptor files. In order
to render the same colors as the RIVM LML daily images a value-interval color-mapping was developed as
this automatically creates both a WCS and a WMS layer. As the GeoTIFF does not contain colors but data values,
styling is needed to view the WMS layer. This has been done via Styled Layer Descriptor (SLD) files. GeoServer supports SLDs for Rasterdata styling.
In order to render the same colors as the RIVM LML daily images a value-interval color-mapping was developed as
in this example for NO2: ::

<FeatureTypeStyle>
Expand Down Expand Up @@ -132,7 +134,7 @@ The WMS layers have been added to the existing `SOSPilot Heron viewer <http://se
Comparing with RIVM LML
-----------------------

The resulting WMS layers can be compared to the original PNG files that came with the APS data files.
The resulting WMS layers can now be compared to the original PNG files that came with the APS data files from RIVM.
Below two examples for NO2 and PM10.

For NO2 below.
Expand All @@ -149,7 +151,7 @@ And for PM10 below.

*Comparing with RIVM LML maps (right) - PM10*

As can be seen the maps are identical. Our WMS-maps are on the right. They
As can be seen the maps are identical. Our WMS-maps are on the left, RIVM maps on the right. Our WMS maps
are somewhat "rougher" on the edges since we have not cut-out using the coastlines.

WCS in QGIS
Expand Down

0 comments on commit d62482a

Please sign in to comment.