if (FALSE) {
# Get all annual average temperature data from 1990 to 2000
get_prism_annual(type = "tmean", year = 1990:2000, keepZip = FALSE)
}
if (FALSE) {
# get daily average temperature data for June 1 - 14, 2013
get_prism_dailys(
type = "tmean",
minDate = "2013-06-01",
maxDate = "2013-06-14",
keepZip=FALSE
)
# get precipitation datat for June 1, 2013
get_prism_dailys(type = "ppt", dates = "2013/06/01", keepZip = FALSE)
# get average temperature for three specific days
get_prism_dailys(
type="tmean",
dates = as.Date("2013-06-01", "2013-06-14", "2014-06-30"),
keepZip=FALSE
)
# will fail:
get_prism_dailys(
type = "ppt",
minDate = "2013-06-01",
dates = "2013-06-14",
keepZip = FALSE
)
get_prism_dailys(
type = "ppt",
minDate = "2013-06-01",
keepZip=FALSE
)
}
if (FALSE) {
# Get all the precipitation data for January from 1990 to 2000
get_prism_monthlys(type = "ppt", years = 1990:2000, mon = 1, keepZip = FALSE)
# Get January-December 2005 monthly precipitation
get_prism_monthlys(type = "ppt", years = 2005, mon = 1:12, keepZip = FALSE)
}
if (FALSE) {
# Get 30 year normal values for January rainfall
get_prism_normals(type = "ppt", resolution = "4km", mon = 1, keepZip = FALSE)
# Get monthly (every month) and annual 30-year normals for mean temperature
get_prism_normals(
type = "tmean",
resolution = "800m",
mon = 1:12,
annual = TRUE,
keepZip = FALSE
)
}
Run the code above in your browser using DataLab