Sprinkler


Wolfgang Fahl

Open Weather Api[edit]

City list: http://bulk.openweathermap.org/sample/city.list.json.gz

Example city Willich[edit]

{
    "id": 2808559,
    "name": "Willich",
    "country": "DE",
    "coord": {
      "lon": 6.55,
      "lat": 51.26667
    }
  },

Example weather[edit]

https://api.openweathermap.org/data/2.5/weather?q=Willich,DE&appid=0123456789abcdef...&units=metric

{
 "coord":{"lon":6.54,"lat":51.26},
 "weather":[{"id":800,"main":"Clear","description":"clear sky","icon":"01d"}],"base":"stations",
 "main":{"temp":28.84,"pressure":1020,"humidity":37,"temp_min":27,"temp_max":30},"visibility":10000,
 "wind":{"speed":1.5},
 "clouds":{"all":0},"dt":1533138900,
 "sys":{"type":1,"id":4909,"message":0.0046,"country":"DE","sunrise":1533095958,"sunset":1533151198},
 "id":2808559,
 "name":"Willich",
 "cod":200
}

Java Code[edit]

DWD Data[edit]

Precipitation data:

<FeatureType>
  <Name>dwd:RBSN_RR</Name>
  <Title>Niederschlag an RBSN Stationen</Title>
  <Abstract>Messwerte des Niederschlags an den DWD Stationen im Regional Basic Synoptic Network (RBSN) der WMO. Erweitert um weitere Stationen der Grundversorgung.</Abstract>
  <ows:Keywords>
    <ows:Keyword>Beobachtungssystem</ows:Keyword>
    <ows:Keyword>Bodenniveau</ows:Keyword>
    <ows:Keyword>Geographischer Ort</ows:Keyword>
    <ows:Keyword>Meteorologie</ows:Keyword>
    <ows:Keyword>Niederschlag</ows:Keyword>
    <ows:Keyword>SYNOP</ows:Keyword>
    </ows:Keywords>
    <DefaultCRS>urn:ogc:def:crs:EPSG::4326</DefaultCRS>
    <ows:WGS84BoundingBox>
      <ows:LowerCorner>6.02439799999999 47.398578</ows:LowerCorner>
      <ows:UpperCorner>14.950565 55.010987</ows:UpperCorner>
    </ows:WGS84BoundingBox>
  </FeatureType>

How to read Radolan data[edit]

  1. http://www.crahi.upc.edu/ERAD2006/material/orals/ERAD2006-A-00217.pdf
  2. https://www.hs-rm.de/de/fachbereiche/architektur-und-bauingenieurwesen/forschungsprofil/arbeitsgruppe-starkregen-und-sturzfluten/projekt-klimprax-ap1/radar-software/
  3. https://moc.online.uni-marburg.de/doku.php?id=courses:bsc:project-thesis-geoei:lecture-notes:bdh:pt-ge-ln-bdh-01-9000

https://opendata.dwd.de/weather/radar/radolan/

  • rw (stündlich)
  • ry
  • sf (täglich)

meto-ubonn radolan[edit]

Ubuntu 16.04 LTS[edit]

sudo apt-get install shapelib
sudo apt-get install cmake
sudo apt-get install libhdf5-dev
sudo apt-get install libnetcdf-dev
sudo apt-get install libnetcdf-c++4-dev
sudo apt-get install h5utils
git clone https://github.com/meteo-ubonn/radolan.git
cd radolan
cmake .
apt-get source hdf5
sudo apt-get build-dep hdf5
wf@capri:/usr/include$ dpkg -L libhdf5-cpp-11 | grep hl_
/usr/lib/x86_64-linux-gnu/libhdf5_hl_cpp.so.11.0.0
/usr/lib/x86_64-linux-gnu/libhdf5_hl_cpp.so.11

cmake . -DWITH_HDF5=/home/wf/source/cpp/hdf5-1.8.16+docs/hdf5

sudo ln -s /usr/lib/x86_64-linux-gnu/ lib64

sudo apt list --installed | grep netcdf

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libnetcdf-c++4/xenial,now 4.2-4 amd64 [installed]
libnetcdf-cxx-legacy-dev/xenial,now 4.2-4 amd64 [installed]
libnetcdf11/xenial,now 1:4.4.0-2 amd64 [installed]
libnetcdff-dev/xenial,now 4.4.3-1 amd64 [installed]
libnetcdff6/xenial,now 4.4.3-1 amd64 [installed,automatic]

https://github.com/meteo-ubonn/radolan/issues/12

MacOS / macports[edit]

sudo port install cmake
sudo port install hdf5
sudo port install netcdf
sudo port install netcdf-cxx
sudo port install shapelib
Warning: port definitions are more than two we
  hdf5 has the following notes:
    Mac users may need to set the environment variable "HDF5_USE_FILE_LOCKING" to the five-character string "FALSE" when accessing
    network mounted files.  This is an application run-time setting, not a configure or build setting.  Otherwise errors such as
    "unable to open file" or "HDF5 error" may be  encountered.
git clone https://github.com/meteo-ubonn/radolan.git
cd radolan
cmake .

neso:lib wf$ sudo ln -s libnetcdf_c++.4.dylib libnetcdf_c++4.dylib
neso:lib wf$ ls -l libnetcdf*
-rwxr-xr-x  1 root  admin  1047456 25 Nov  2017 libnetcdf.11.4.0.dylib
lrwxr-xr-x  1 root  admin       22 25 Nov  2017 libnetcdf.11.dylib -> libnetcdf.11.4.0.dylib
lrwxr-xr-x  1 root  admin       18 25 Nov  2017 libnetcdf.dylib -> libnetcdf.11.dylib
-rw-r--r--  1 root  admin      856 25 Nov  2017 libnetcdf.settings
-rwxr-xr-x  1 root  admin   114000 25 Nov  2017 libnetcdf_c++.4.dylib
-rw-r--r--  1 root  admin   146768 25 Nov  2017 libnetcdf_c++.a
lrwxr-xr-x  1 root  admin       21 25 Nov  2017 libnetcdf_c++.dylib -> libnetcdf_c++.4.dylib
lrwxr-xr-x  1 root  wheel       21 13 Aug 17:27 libnetcdf_c++4.dylib -> libnetcdf_c++.4.dylib

Hdf5[edit]

<!-- https://mvnrepository.com/artifact/org.hdfgroup/hdf-java -->
<dependency>
    <groupId>org.hdfgroup</groupId>
    <artifactId>hdf-java</artifactId>
    <version>2.6.1</version>
</dependency>
🖨 🚪