Command used to extract the daily HIRS OLR files
#!/bin/bash
YYYY=2008
MM=11
DD=07
OUT=data_312a_Lot1_hirs-olr-daily_tcdr_v1.2_olr_YYYY_MM_DD.nc
URL=
https://www.ncei.noaa.gov/thredds/ncss/cdr/olr-daily
Image Removed
FILE=olr-daily_v01r02_${YYYY}0101_${YYYY}1231.nc
VAR="var=olr"
T_START="time_start=${YYYY}${MM}${DD}T00%3A00%3A00Z"
T_END="time_end=${YYYY}${MM}${DD}T23%3A59%3A59Z"
wget –O ${OUT} '${URL}/${FILE}?${VAR},${T_START}?${T_END}'