#!/bin/bash # Script to download individual .nc4 Daymet mosaic files from the ORNL # Daymet server at: https://daymet.ornl.gov # # Methods using wget and curl are shown. Each uses a reasonable # rate limit for downloading data. Users attempting to download # data at higher rates may be rate limited by the server. # # The example downloads the vp_{year}.nc4 file for a given year. # You may change vp_{year}.nc4 to be any of the following: # vp_{year}.nc4, tmin_{year}.nc4, tmax_{year}.nc4, swe_{year}.nc4, srad_{year}.nc4, prcp_{year}.nc4, dayl_{year}.nc4 # # Data is also available via the THREDDS web interface at: # Catalog https://thredds.daac.ornl.gov/thredds/catalog/ornldaac/1328/catalog.html # # Citation Information is available at: # https://daac.ornl.gov/Daymet/guides/Daymet_mosaics.html#Daymet_m_citation # # Pete Eby # Oak Ridge National Lab # For ranges use {start..end} # for individul vaules, use: 1 2 3 4 for year in {2002..2003} do wget --limit-rate=50m https://thredds.daac.ornl.gov/thredds/fileServer/ornldaac/1328/${year}/vp_${year}.nc4 -O vp_${year}.nc4 # An example using curl instead of wget # do curl --limit-rate 50M -o vp_${year}.nc4 https://thredds.daac.ornl.gov/thredds/fileServer/ornldaac/1328/${year}/vp_${year}.nc4 done