Load many sites along with rainfall data into a database in parallel.
1 2 3 | add_many_sites(db_connection, site_numbers, type = c("rainfall",
"max_temperature", "min_temperature", "solar_exposure"), n_parallel = 8,
batch_size = 40)
|
db_connection |
A connection to an initialised bomdata database. |
site_numbers |
A vector of site numbers to load. Sites that already exist within the database will be ignored. |
type |
Observation type to load. |
n_parallel |
The number of parallel workers to run to download sites. Only works in mclapply works on your machine. |
batch_size |
The number of sites to download before committing their data to the database. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.