get_multi_silodata {cropgrowdays}R Documentation

Retrieve SILO data for multiple sites from Qld DES longpaddock website

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

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 now available but not as tested. rainman is not included since it returns six separate files. 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

## 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",
                     FORMAT = "allmort",
                     email = "MY_EMAIL_ADDRESS")
two_sites

## End(Not run)


[Package cropgrowdays version 0.2.1 Index]