Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonny Schäfer
radolan
Commits
4269af52
Commit
4269af52
authored
Aug 19, 2018
by
Jonny Schäfer
Browse files
Update documentation
Also old GDS links were replaced with those of the Open Data portal
parent
54e65a40
Changes
3
Show whitespace changes
Inline
Side-by-side
conversion.go
View file @
4269af52
...
@@ -21,7 +21,7 @@ type ZR struct {
...
@@ -21,7 +21,7 @@ type ZR struct {
// Common Z-R relationships
// Common Z-R relationships
var
(
var
(
Aniol80
=
NewZR
(
256
,
1.42
)
// operational use in germany, described in [
6
]
Aniol80
=
NewZR
(
256
,
1.42
)
// operational use in germany, described in [
5
]
Doelling98
=
NewZR
(
316
,
1.50
)
// operational use in switzerland
Doelling98
=
NewZR
(
316
,
1.50
)
// operational use in switzerland
JossWaldvogel70
=
NewZR
(
300
,
1.50
)
JossWaldvogel70
=
NewZR
(
300
,
1.50
)
MarshallPalmer55
=
NewZR
(
200
,
1.60
)
// operational use in austria
MarshallPalmer55
=
NewZR
(
200
,
1.60
)
// operational use in austria
...
...
radolan.go
View file @
4269af52
// Package radolan parses the DWD RADOLAN / RADVOR radar composite format. This data
// Package radolan parses the DWD RADOLAN / RADVOR radar composite format. This data
// is available at the
Global Basic Dataset
(http://www.dwd.de/DE/leistungen/
gds/gds
.html).
// is available at the
Open Data Portal
(http
s
://www.dwd.de/DE/leistungen/
opendata/opendata
.html).
// The obtained results can be processed and visualized with additional functions.
// The obtained results can be processed and visualized with additional functions.
//
//
// Currently the national grid [1][4] and the extended european grid [5] are supported.
// Tested input products and grids:
// Tested input products are PG, FZ, SF, RW, RX and EX. Those can be considered working with
//
// sufficient accuracy.
// | Product | Grid | Description |
// | ------- | ----------------- | ----------------------- |
// | EX | middle-european | reflectivity |
// | FX | national | nowcast reflectivity |
// | FZ | national | nowcast reflectivity |
// | PE | local | echo top |
// | PF | local | reflectivity |
// | PG | national picture | reflectivity |
// | PR | local | doppler radial velocity |
// | PX | local | reflectivity |
// | PZ | local | 3D reflectivity CAPPI |
// | RW | national | hourly accumulated |
// | RX | national | reflectivity |
// | SF | national | daily accumulated |
// | WX | extended national | reflectivity |
//
// Those can be considered working with sufficient accuracy.
//
//
// In cases, where the publicly available format specification is unprecise or contradictory,
// In cases, where the publicly available format specification is unprecise or contradictory,
// reverse engineering was used to obtain reasonable approaches.
// reverse engineering was used to obtain reasonable approaches.
...
@@ -12,10 +28,10 @@
...
@@ -12,10 +28,10 @@
//
//
// [1] https://www.dwd.de/DE/leistungen/radolan/radolan_info/radolan_radvor_op_komposit_format_pdf.pdf
// [1] https://www.dwd.de/DE/leistungen/radolan/radolan_info/radolan_radvor_op_komposit_format_pdf.pdf
// [2] https://www.dwd.de/DE/leistungen/gds/weiterfuehrende_informationen.zip
// [2] https://www.dwd.de/DE/leistungen/gds/weiterfuehrende_informationen.zip
// [3]
- le
gen
d_
radar
_
produ
cts_fz_forecast
.pdf
// [3]
https://www.dwd.de/DE/leistun
gen
/
radarprodu
kte/formatbeschreibung_fxdaten
.pdf
// [4]
- legend_radar_products
_pg_coordinates.pdf
// [4]
https://www.dwd.de/DE/leistungen/opendata/help/radar/radar
_pg_coordinates
_pdf
.pdf
// [5]
- le
gen
d_
radar
_products_radolan_rw_sf
.pdf
// [5]
https://www.dwd.de/DE/leistun
gen
/
radar
niederschlag/rn_info/download_niederschlagsbestimmung
.pdf
// [6] h
ttps://www.dwd.de/DE/leistungen/radarniederschlag/rn_info/download_niederschlagsbestimmung.pdf
// [6] h
ex editor and much reverse engineering
package
radolan
package
radolan
import
(
import
(
...
...
translate.go
View file @
4269af52
...
@@ -62,7 +62,7 @@ func (c *Composite) detectGrid() grid {
...
@@ -62,7 +62,7 @@ func (c *Composite) detectGrid() grid {
// cornerPoints returns corner coordinates of the national, extended or
// cornerPoints returns corner coordinates of the national, extended or
// middle-european grid based on the dimensions of the composite. The used
// middle-european grid based on the dimensions of the composite. The used
// values are described in [1], [4]
and [5]
. If an error is returned,
// values are described in [1], [4]. If an error is returned,
// translation methods will not work.
// translation methods will not work.
func
(
c
*
Composite
)
cornerPoints
()
(
originTop
,
originLeft
,
edgeBottom
,
edgeRight
float64
,
err
error
)
{
func
(
c
*
Composite
)
cornerPoints
()
(
originTop
,
originLeft
,
edgeBottom
,
edgeRight
float64
,
err
error
)
{
switch
c
.
detectGrid
()
{
switch
c
.
detectGrid
()
{
...
@@ -72,10 +72,10 @@ func (c *Composite) cornerPoints() (originTop, originLeft, edgeBottom, edgeRight
...
@@ -72,10 +72,10 @@ func (c *Composite) cornerPoints() (originTop, originLeft, edgeBottom, edgeRight
case
nationalPictureGrid
:
// (pg) described in [4]
case
nationalPictureGrid
:
// (pg) described in [4]
originTop
,
originLeft
=
54.66218275
,
1.900684377
// N, E
originTop
,
originLeft
=
54.66218275
,
1.900684377
// N, E
edgeBottom
,
edgeRight
=
46.98044293
,
14.73300934
// N, E
edgeBottom
,
edgeRight
=
46.98044293
,
14.73300934
// N, E
case
extendedNationalGrid
:
// described in [
5
]
case
extendedNationalGrid
:
// described in [
1
]
originTop
,
originLeft
=
55.5482
,
03.0889
// N, E
originTop
,
originLeft
=
55.5482
,
03.0889
// N, E
edgeBottom
,
edgeRight
=
46.1827
,
15.4801
// N, E
edgeBottom
,
edgeRight
=
46.1827
,
15.4801
// N, E
case
middleEuropeanGrid
:
// described in [
5
]
case
middleEuropeanGrid
:
// described in [
1
]
originTop
,
originLeft
=
56.5423
,
-
0.8654
// N, E
originTop
,
originLeft
=
56.5423
,
-
0.8654
// N, E
edgeBottom
,
edgeRight
=
43.8736
,
18.2536
// N, E
edgeBottom
,
edgeRight
=
43.8736
,
18.2536
// N, E
default
:
default
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment