Extract CDS soil moisture data for the SDA workflow.

extract_SM_CDS(
  site_info,
  time.points,
  in.path,
  out.path = NULL,
  allow.download = TRUE,
  search_window = 10
)

Arguments

site_info

Bety list of site info including site_id, lon, and lat.

time.points

A vector contains each time point within the start and end date.

in.path

physical paths to where the unziped soil moisture files are downloaded.

out.path

Where the final CSV file will be stored.

allow.download

Flag determine if we want to automatic download files if they are not available.

search_window

time length (days) for locate available soil moisture values.

Value

A data frame containing soil moisture and sd for each site and each time step.

Author

Dongchen Zhang