curl -fL "http://thredds.northwestknowledge.net:8080/thredds/ncss/agg_terraclimate_ppt_1958_CurrentYear_GLOBE.nc?var=ppt&north=5&west=-75&east=-50&south=-20&horizStride=1&time_start=2020-01-01T00:00:00Z&time_end=2020-12-01T00:00:00Z&accept=netcdf" \
-o response
import requests
r = requests.get("http://thredds.northwestknowledge.net:8080/thredds/ncss/agg_terraclimate_ppt_1958_CurrentYear_GLOBE.nc?var=ppt&north=5&west=-75&east=-50&south=-20&horizStride=1&time_start=2020-01-01T00:00:00Z&time_end=2020-12-01T00:00:00Z&accept=netcdf")
r.raise_for_status()
open("response", "wb").write(r.content)
const res = await fetch("http://thredds.northwestknowledge.net:8080/thredds/ncss/agg_terraclimate_ppt_1958_CurrentYear_GLOBE.nc?var=ppt&north=5&west=-75&east=-50&south=-20&horizStride=1&time_start=2020-01-01T00:00:00Z&time_end=2020-12-01T00:00:00Z&accept=netcdf");
console.log(res.status, res.headers.get("content-type"));