This function extracts NLDAS data from grids that have been downloaded and stored locally. Once upon a time, you could query these files directly from the internet, but now they're behind a tricky authentication wall. Files are saved as a netCDF file in CF conventions. These files are ready to be used in the general PEcAn workflow or fed into the downscalign workflow.

extract.local.NLDAS(outfolder, in.path, start_date, end_date, site_id,
  lat.in, lon.in, overwrite = FALSE, verbose = FALSE, ...)

Arguments

outfolder

- directory where output files will be stored

in.path

- path to the raw full grids

start_date

- first day for which you want to extract met (yyyy-mm-dd)

end_date

- last day for which you want to extract met (yyyy-mm-dd)

site_id

name to associate with extracted files

lat.in

site latitude in decimal degrees

lon.in

site longitude in decimal degrees

overwrite

logical. Download a fresh version even if a local file with the same name already exists?

verbose

logical. Passed on to ncvar_def and nc_create to control printing of debug info

...

Other arguments, currently ignored

Details

Extract NLDAS from local download Extract NLDAS meteorology for a poimt from a local download of the full grid