get_sounding_map: Retrieve pre-generated map for sounding data

Description Usage Arguments Value Note

View source: R/get-map.R

Description

Retrieve pre-generated map for sounding data

Usage

1
2
3
4
5
get_sounding_map(station_number, date, map_type = c("skewt", "stuve",
  "stuve10", "stuve700", "hodo"), map_format = c("pdf", "gif"),
  include_frost = FALSE, region = c("naconf", "samer", "pac", "nz", "ant",
  "np", "europe", "africa", "seasia", "mideast"), from_hr = c("00", "12",
  "all"), to_hr = c("00", "12", "all"))

Arguments

station_number

the station number

date

an ISO character string (e.g. YYYY-mm-dd) or a valid Date object

map_type

one of "skewt" for Skew-T, "stuve" for Stuve, "stuve10" for Stuve to 10 mb, "stuve700" for Stuve to 700 mb, "hodo" for Hodograph. Defaults to "skewt"

map_format

one of "gif" or "pdf". Default is "gif"

include_frost

if TRUE, include frost point calculations. Default: FALSE

region

one of "naconf", "samer", "pac", "nz", "ant", "np", "europe", "africa", "seasia", "mideast" (which matches the values of the drop-down menu on the site). Use get_region_codes() to get a mapping of region names to valid region codes.

from_hr, to_hr

one of 00 (or 0), 12 or all; if all then both values will be set to all

Value

a magick object containing the gif or pdf requested.

Note

the PDF may be blank or the result may be NULL (if a GIF was requested) if there is no data for a given day.


hrbrmstr/unsound documentation built on May 20, 2019, 5:42 p.m.