This function read a NetCDF file through ncdf4 package, to extract the atmospheric or environmental variable, longitudes, latitudes and dates. A continuous NetCDF withouth date gaps is required.
read_nc(nc_input, name_coord, initial_date)
NetCDF path with atmospheric or environmental field (mean sea level pressure, geopotential height, precipitation, ...).
Character. Names of longitude, latitude and time coordinates.
Character. Start date of the NetCDF. As character format.
a list with:
A 3D-array (lon, lat, times) of atmospheric variable.
A numeric with longitude values.
A numeric with latitude values.
A Date format vector containing dates.