get_multi_silodata: Retrieve SILO data for multiple sites from Qld DES...

Description Usage Arguments Value See Also Examples

View source: R/get_multi_silodata.R

Description

Uses get_silodata to retrieve SILO (Scientific Information for Land Owners) data for multiple sites. SILO products are provided free of charge to the public for use under the Creative Commons Attribution 4.0 license and appear to be subject to fair use limits. Note that SILO may be unavailable between 11am and 1pm (Brisbane time) each Wednesday and Thursday to allow for essential system maintenance.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
get_multi_silodata(
  latitude,
  longitude,
  Sitename,
  email,
  START = "20201101",
  FINISH = "20201231",
  FORMAT = "APSIM",
  PASSWORD = "apitest",
  URL = "https://www.longpaddock.qld.gov.au/cgi-bin/silo/DataDrillDataset.php"
)

Arguments

latitude

A numerical vector containing site latitudes for data retrieval

longitude

A numerical vector containing site longitudes for data retrieval

Sitename

A vector of strings containing site names or labels which provide an extra column in the dataset named Sitename

email

A string containing your email which is required by DES in order to access the data

START

Start date as a character string “YYYYMMDD” with no spaces. Default: “20201101”

FINISH

Last date as a character string “YYYYMMDD” with no spaces. Default: “20201231”

FORMAT

of data file required. While this function was originally constructed to obtain APSIM format, other formats are available. See https://www.longpaddock.qld.gov.au/silo/about/file-formats-and-samples/ Default: “APSIM”

PASSWORD

Default: “apitest”

URL

is the URL for querying the website and probably will not need to be changed. Default: “https://www.longpaddock.qld.gov.au/cgi-bin/silo/DataDrillDataset.php”

Value

A tibble (dataframe) containing specified or default climate variables. If “APSIM” format is specified then an extra column date_met, containing the date, is returned along with the usual year and day of year day. The Sitename variable contains the name of each site.

See Also

get_silodata

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
## Example: Replace MY_EMAIL_ADDRESS with your email address below
two_sites  <-
  get_multi_silodata(latitude = c(-27.00, -28.00),
                     longitude = c(151.00, 152.00),
                     Sitename = c("Site_1", "Site_2"),
                     START = "20201101", FINISH = "20201105",
                     email = "MY_EMAIL_ADDRESS")
two_sites

## End(Not run)

cropgrowdays documentation built on Dec. 11, 2021, 9:23 a.m.