I want to download files from this source https://cida.usgs.gov/thredds/ncss/topowx_monthly/dataset.html.
To do so I run the following code in my linux terminal using the NCSS url at the bottom of the page:
wget https://cida.usgs.gov/thredds/ncss/topowx_monthly?var=tmax&var=tmin&north=51.1916&west=-125.0000&east=-66.6750&south=24.1166&disableLLSubset=on&disableProjSubset=on&horizStride=1&time_start=1970-01-16T00%3A00%3A00Z&time_end=2016-12-16T00%3A00%3A00Z&timeStride=1
I expect to have a netCDF at the end. However, the downloaded file has no extension and is not in netCDF (I tried to read it as such and failed). I don't know in which format it is. How can I solve this ?
Thank you for your help!!
Edit: the problem was that there were special characters in my wget request and that therefore the url needed to be in double quotes, so this works:
wget -c "https://cida.usgs.gov/thredds/ncss/topowx_monthly?var=tmax&var=tmin&north=51.1916&west=-125.0000&east=-66.6750&south=24.1166&disableLLSubset=on&disableProjSubset=on&horizStride=1&time_start=1970-01-16T00%3A00%3A00Z&time_end=2016-12-16T00%3A00%3A00Z&timeStride=1"
question from:
https://stackoverflow.com/questions/65925805/download-climate-data-in-nc-format-using-wget-from-linux-terminal 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…