Skip to contents

Add query parameters to a CCIA request URL. Note that returned data is dependent on what is available and might not exactly match the request e.g. where the time slices are centered monthly or yearly.

Usage

ccia_add_netcdf_subset_query(
  request,
  vars,
  bbox,
  lat,
  lon,
  datetime_start,
  datetime_end,
  datetime_step
)

Arguments

request

httr2 request

vars

dataset variables to download. Use 'all' for all available.

bbox

number, vector of length 4: left,bottom,right,top | min Longitude , min Latitude , max Longitude , max Latitude

lat,

number, latitude

lon

number, longitude

datetime_start

date, can be character, Date or POSIX*

datetime_end

date, can be character, Date or POSIX*

datetime_step

number, days between date_start and date_end to download

Value

character, path to temporary file that is downloaded