projectRasterDWD {rdwd} | R Documentation |
project DWD raster data
Description
Set projection and extent for DWD raster data. Optionally (and
per default) also reprojects to latlon data.
WARNING: reprojection to latlon changes values slightly. For the
tested RX product, this change is significant, see:
https://github.com/brry/rdwd/blob/master/misc/ExampleTests/Radartests.pdf
In terra::plot, use range=zlim with the original range if needed.
Usage
projectRasterDWD(
r,
proj = "radolan",
extent = "radolan",
adjust05 = FALSE,
targetproj = "ll",
threads = TRUE,
quiet = rdwdquiet()
)
Arguments
r |
terra raster object |
proj |
Current projection to be given to |
extent |
Current |
adjust05 |
Logical: Adjust extent by 0.5m to match edges? DEFAULT: FALSE |
targetproj |
|
threads |
Use multiple CPU threads for |
quiet |
Logical: suppress progress messages? DEFAULT: FALSE through |
Details
The internal defaults are extracted from the Kompositformatbeschreibung at
https://www.dwd.de/DE/leistungen/radolan/radolan.html, as provided
2019-04 by Antonia Hengst.
The nc extent was obtained by projecting
Germanys bbox to EPSG 3034 (specified in the DWD documentation). Using that
as a starting point, I then refined the extent to a visual match, see
developmentNotes.R
Value
terra raster object with projection and extent, invisible
Author(s)
Berry Boessenkool, berry-b@gmx.de, May 2019, June 2023
See Also
plotRadar()
terra::
crs
/ ext
/ project
readDWD.
binary
/ raster
/
asc
/ radar
/ nc
website raster chapter
Examples
# To be used after readDWD.binary etc