If using wget with no options, the file name will have the default format inmcm4.ncml?var=tasmin, example:
wget http://dataserver3.nccs.nasa.gov/thredds/ncss/bypass/NEX-GDDP/bcsd/historical/r1i1p1/tasmin/inmcm4.ncml?var=tasmin&horizStride=1&time_start=1950-01-01T12%3A00%3A00Z&time_end=1950-01-31T12%3A00%3A00Z&timeStride=1
Using wget –content-disposition, the file name will have this format: inmcm4.ncml.nc. Example:
wget --content-disposition "http://dataserver3.nccs.nasa.gov/thredds/ncss/bypass/NEX-GDDP/bcsd/historical/r1i1p1/tasmin/inmcm4.ncml?var=tasmin&horizStride=1&time_start=1950-01-01T12%3A00%3A00Z&time_end=1950-01-31T12%3A00%3A00Z&timeStride=1"
Finally, using the -O option lets you define the output name, for instance, adding the date and other information:
wget -O NEXbcsd-tasmin-195001.nc "http://dataserver3.nccs.nasa.gov/thredds/ncss/bypass/NEX-GDDP/bcsd/historical/r1i1p1/tasmin/inmcm4.ncml?var=tasmin&horizStride=1&time_start=1950-01-01T12%3A00%3A00Z&time_end=1950-01-31T12%3A00%3A00Z&timeStride=1"

