if (FALSE) {
# The below command converts all netCDF data in
# the provided path to geotiff files. Existing
# files will be overwritten. If set to FALSE,
# files will not be overwritten.
# download the data
download_daymet_ncss(param = "tmin",
frequency = "annual",
path = tempdir(),
silent = TRUE)
# convert files from nc to tif
nc2tif(path = tempdir(),
overwrite = TRUE)
# print converted files
print(list.files(tempdir(), "*.tif"))
}
Run the code above in your browser using DataLab