diff --git a/404.html b/404.html index e022e281..07013371 100644 --- a/404.html +++ b/404.html @@ -41,7 +41,7 @@
diff --git a/CODE_OF_CONDUCT.html b/CODE_OF_CONDUCT.html index 252e4586..4e1890a6 100644 --- a/CODE_OF_CONDUCT.html +++ b/CODE_OF_CONDUCT.html @@ -17,7 +17,7 @@ diff --git a/CONTRIBUTING.html b/CONTRIBUTING.html index b12f24e9..e5ae3223 100644 --- a/CONTRIBUTING.html +++ b/CONTRIBUTING.html @@ -17,7 +17,7 @@ diff --git a/LICENSE-text.html b/LICENSE-text.html index 4a4ea74a..5a33f258 100644 --- a/LICENSE-text.html +++ b/LICENSE-text.html @@ -17,7 +17,7 @@ diff --git a/apple-touch-icon-120x120.png b/apple-touch-icon-120x120.png index d80d01e6..899a8ce0 100644 Binary files a/apple-touch-icon-120x120.png and b/apple-touch-icon-120x120.png differ diff --git a/apple-touch-icon-152x152.png b/apple-touch-icon-152x152.png index e574bb28..0fd8571b 100644 Binary files a/apple-touch-icon-152x152.png and b/apple-touch-icon-152x152.png differ diff --git a/apple-touch-icon-180x180.png b/apple-touch-icon-180x180.png index da834e55..6427fc02 100644 Binary files a/apple-touch-icon-180x180.png and b/apple-touch-icon-180x180.png differ diff --git a/apple-touch-icon-60x60.png b/apple-touch-icon-60x60.png index 0bea7b83..31e3840e 100644 Binary files a/apple-touch-icon-60x60.png and b/apple-touch-icon-60x60.png differ diff --git a/apple-touch-icon-76x76.png b/apple-touch-icon-76x76.png index fe9364c0..b0b3c12f 100644 Binary files a/apple-touch-icon-76x76.png and b/apple-touch-icon-76x76.png differ diff --git a/apple-touch-icon.png b/apple-touch-icon.png index 469a2fa0..e9a63abd 100644 Binary files a/apple-touch-icon.png and b/apple-touch-icon.png differ diff --git a/articles/bioRad.html b/articles/bioRad.html index a79543ff..35576081 100644 --- a/articles/bioRad.html +++ b/articles/bioRad.html @@ -42,7 +42,7 @@ diff --git a/articles/index.html b/articles/index.html index 7007c4f8..741a7b82 100644 --- a/articles/index.html +++ b/articles/index.html @@ -17,7 +17,7 @@ diff --git a/articles/rad_aero_22.html b/articles/rad_aero_22.html index 41a97d43..af39ee34 100644 --- a/articles/rad_aero_22.html +++ b/articles/rad_aero_22.html @@ -42,7 +42,7 @@ @@ -212,10 +212,8 @@
# It is often informative to plot radar data on a base layer.
-# first download the background image:
-basemap <- download_basemap(my_ppi)
-# plot the basemap:
-plot(basemap)
+# First choose a base layer from the list of rosm::osm.types()
+basemap = "osm"
# then overlay the PPI on the basemap, restricting the color scale from -20 to 40 dBZ:
map(my_ppi, map = basemap, param = "DBZH", zlim = c(-20, 40))
diff --git a/articles/range_correction.html b/articles/range_correction.html
index 58072bfd..86d69282 100644
--- a/articles/range_correction.html
+++ b/articles/range_correction.html
@@ -42,7 +42,7 @@
@@ -118,7 +118,7 @@
options("sp_evolution_status" = 2L)
library(bioRad)
-## Welcome to bioRad version 0.7.2
+## Welcome to bioRad version 0.7.3
## using vol2birdR version 1.0.1 (MistNet installed)
## The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
-## which was just loaded, will retire in October 2023.
-## Please refer to R-spatial evolution reports for details, especially
-## https://r-spatial.org/r/2023/05/15/evolution4.html.
-## It may be desirable to make the sf package available;
-## package maintainers should consider adding sf to Suggests:.
-## The sp package is now running under evolution status 2
-## (status 2 uses the sf package in place of rgdal)
-
-# plot it
+my_ppi <- project_as_ppi(my_scan, range_max = 100000)
+# plot it
plot(my_ppi)
Now let’s calculate the range-corrected PPI
-+@@ -280,23 +271,34 @@# let's use a 500 metre spatial grid (res), and restrict to 100x100 km area my_corrected_ppi <- integrate_to_ppi(example_pvol, example_vp, res = 500, xlim = c(-100000, 100000), ylim = c(-100000, 100000)) my_corrected_ppi
5 Example: estimating a VID image## dims: 400 x 400 pixels
The range corrected PPI has four parameters: VIR, VID, R, overlap. Let’s plot the adjustment factor R:
-+# plot the adjustment factor R: plot(my_corrected_ppi, param = "R")
Let’s also plot the vertically integrated reflectivity:
-+plot(my_corrected_ppi, param = "VIR")
Or plot the vertically integrated density on a map:
---bm <- download_basemap(my_corrected_ppi)
-## Downloading zoom = 8 ...
-## ℹ Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.
+-map(my_corrected_ppi, bm, param = "VIR", alpha = .5)
+bm <- "osm" +map(my_corrected_ppi, map=bm, param = "VIR", alpha = .5)
+## Warning in CPL_crs_from_input(x): GDAL Message 1: +init=epsg:XXXX syntax is ## deprecated. It might return a CRS with a non-EPSG compliant axis order.
+## Zoom: 6
+## Fetching 4 missing tiles
+## + | + | | 0% + | + |================== | 25% + | + |=================================== | 50% + | + |==================================================== | 75% + | + |======================================================================| 100%
## ...complete!
@@ -313,7 +315,7 @@+6 Overlap between ra
We can calculate overlap between emitted radiation and the biological profile as follows:
-+@@ -176,7 +176,7 @@# calculate overlap between vertical profile of birds # and the vertical radiation profile emitted by the radar: bpo <- beam_profile_overlap(example_vp, get_elevation_angles(example_pvol), seq(0, 100000, 1000), quantity = "eta") @@ -333,7 +335,7 @@
6 Overlap between ra
The range-corrected PPI also contains a field
-overlap
, which contains the same metric but then calculated on the grid of the PPI:diff --git a/favicon-16x16.png b/favicon-16x16.png index 90616acd..493131ab 100644 Binary files a/favicon-16x16.png and b/favicon-16x16.png differ diff --git a/favicon-32x32.png b/favicon-32x32.png index 072f3f2a..c8459da4 100644 Binary files a/favicon-32x32.png and b/favicon-32x32.png differ diff --git a/index.html b/index.html index 2011efec..80df12df 100644 --- a/index.html +++ b/index.html @@ -45,7 +45,7 @@+plot(my_corrected_ppi, param = "overlap")
The overlap metric might be used in the future to show only certain diff --git a/articles/range_correction_files/figure-html/unnamed-chunk-13-1.png b/articles/range_correction_files/figure-html/unnamed-chunk-13-1.png index 9bda105d..377e3e05 100644 Binary files a/articles/range_correction_files/figure-html/unnamed-chunk-13-1.png and b/articles/range_correction_files/figure-html/unnamed-chunk-13-1.png differ diff --git a/authors.html b/authors.html index 336a7a72..3ba22c41 100644 --- a/authors.html +++ b/authors.html @@ -17,7 +17,7 @@
Install bioRadThen load the package with:
diff --git a/news/index.html b/news/index.html index 7795b62c..762b0994 100644 --- a/news/index.html +++ b/news/index.html @@ -17,7 +17,7 @@@@ -68,6 +68,23 @@Changelog
Source:NEWS.md
+bioRad 0.7.32023-10-20
+++ +New features
+
- Replaced the
+ggmap
package withggspatial
for map visualizations. This change was made asggmap
no longer provides reliable open-source basemaps without the necessity to register for an API key (#638).++Deprecations
+
- +
+download_basemap()
has been deprecated, functionmap()
now automatically downloads a basemap (#638).diff --git a/reference/apply_mistnet.html b/reference/apply_mistnet.html index b26fdd41..21c0cdec 100644 --- a/reference/apply_mistnet.html +++ b/reference/apply_mistnet.html @@ -18,7 +18,7 @@bioRad 0.7.22023-09-06
@@ -226,7 +243,7 @@diff --git a/reference/add_expected_eta_to_scan.html b/reference/add_expected_eta_to_scan.html index 70c29535..15058ec4 100644 --- a/reference/add_expected_eta_to_scan.html +++ b/reference/add_expected_eta_to_scan.html @@ -17,7 +17,7 @@Additional featuresbioRad 0.4.02018-12-14
First release on CRAN! All issues included in this release can be found here.
- -
get_param()
added as new function to get parameters from scan (#132).- +
download_basemap()
now uses Stamen basemaps by default (parametersource
), so users do not need to request an API key for the previous default Google Maps (#163).
download_basemap()
now uses Stamen basemaps by default (parametersource
), so users do not need to request an API key for the previous default Google Maps (#163).
download_vpfiles()
andselect_vpfiles()
now use 5 letter radar codes (parameterradars
instead ofradar
andcountry
), allow to skip already downloaded files (parameteroverwrite = TRUE
) and have improved download and error messages (#176).
read_pvolfile()
,nexrad_to_odim()
andcalculate_vp()
(all Docker dependent) can now read files from directories containing a space (#162).- diff --git a/pkgdown.yml b/pkgdown.yml index bcac2ecd..18536bcd 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -5,7 +5,7 @@ articles: bioRad: bioRad.html rad_aero_22: rad_aero_22.html range_correction: range_correction.html -last_built: 2023-09-27T14:18Z +last_built: 2023-10-20T13:58Z urls: reference: https://adriaandokter.com/bioRad/reference article: https://adriaandokter.com/bioRad/articles diff --git a/reference/Ops.html b/reference/Ops.html index 8dce6a10..24a7e889 100644 --- a/reference/Ops.html +++ b/reference/Ops.html @@ -17,7 +17,7 @@
Details for deprecated functions
mt()
,mtr()
,cmt()
are now displayed with function (#166).
an object of class numeric_version
+ +No return value, called for warning message side effect only
This function has been moved to package vol2birdR
This function has been deprecated +ggmap has been replaced by ggspatial which no longer requires a pre-downloaded raster basemap
+Method by which to do the time zone lookup. Either fast
-(default) or accurate
. See lutz::tz_lookup_coords].
accurate
. See lutz::tz_lookup_coords].
check_docker()
update_docker()
vol2bird_version()
download_basemap()
Download a basemap for map(ppi)
Deprecated bioRad functions and data
list_vpts_aloft(radars = "bejab")
-#> Warning: Radar data found between 2023-02 and 2023-09 but not every date has radar data
+#> Warning: Radar data found between 2023-02 and 2023-10 but not every date has radar data
#> https://aloftdata.s3-eu-west-1.amazonaws.com/baltrad/monthly/bejab/2023/bejab_vpts_202302.csv.gz
#> https://aloftdata.s3-eu-west-1.amazonaws.com/baltrad/monthly/bejab/2023/bejab_vpts_202303.csv.gz
#> https://aloftdata.s3-eu-west-1.amazonaws.com/baltrad/monthly/bejab/2023/bejab_vpts_202304.csv.gz
@@ -138,6 +138,7 @@ Examples
#> https://aloftdata.s3-eu-west-1.amazonaws.com/baltrad/monthly/bejab/2023/bejab_vpts_202307.csv.gz
#> https://aloftdata.s3-eu-west-1.amazonaws.com/baltrad/monthly/bejab/2023/bejab_vpts_202308.csv.gz
#> https://aloftdata.s3-eu-west-1.amazonaws.com/baltrad/monthly/bejab/2023/bejab_vpts_202309.csv.gz
+#> https://aloftdata.s3-eu-west-1.amazonaws.com/baltrad/monthly/bejab/2023/bejab_vpts_202310.csv.gz
ppi
) on a mapPlots a plan position indicator (ppi
) on a base layer using
-ggmap::ggmap()
.
Plots a plan position indicator (ppi
) on a base layer
ppi
) on a mapppi
) on a mapArguments passed to ggmap::ggmap()
.
Arguments passed to ggplot2::ggplot()
.
Basemap to use, result of a call to download_basemap()
.
Basemap to use, one of rosm::osm.types()
A ggmap object (a classed raster object with a bounding -box attribute).
+A ggplot object
# Project a scan as a ppi
ppi <- project_as_ppi(example_scan)
# \donttest{
-# Create a basemap that matches the extent of the ppi
-basemap <- download_basemap(ppi, maptype = "toner-lite")
-#> Downloading zoom = 9 ...
-#> ℹ Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.
+# Choose a basemap
+basemap <- rosm::osm.types()[1]
# Map the radial velocity of the ppi onto the basemap
map(ppi, map = basemap, param = "VRADH")
+#> Zoom: 8
+#> Fetching 4 missing tiles
+#>
|
| | 0%
|
|================== | 25%
|
|=================================== | 50%
|
|==================================================== | 75%
|
|======================================================================| 100%
+#> ...complete!
# Extend the plotting range of velocities, from -50 to 50 m/s
map(ppi, map = basemap, param = "VRADH", zlim = c(-50, 50))
+#> Zoom: 8
# Map the reflectivity
map(ppi, map = basemap, param = "DBZH")
+#> Zoom: 8
# Change the color palette to Viridis colors
map(ppi, map = basemap, param = "DBZH", palette = viridis::viridis(100), zlim=c(-10,10))
+#> Zoom: 8
# Give the data more transparency
map(ppi, map = basemap, param = "DBZH", alpha = 0.3)
+#> Zoom: 8
# Change the appearance of the symbol indicating the radar location
map(ppi, map = basemap, radar_size = 5, radar_color = "blue")
+#> Zoom: 8
# Crop the map
map(ppi, map = basemap, xlim = c(12.4, 13.2), ylim = c(56, 56.5))
-#> Warning: Removed 1 rows containing missing values (`geom_rect()`).
+#> Zoom: 8
# }