SST_grad_lat = gradLatLon[0] ; for clarity; explicitly extract variables from returned 'list'
SST_grad_lon = gradLatLon[1]
; replace the generic attributes with more specific attributes
SST_grad_lon@long_name = "longitudinal gradient"
SST_grad_lat@long_name = "latitudinal gradient"
if (isatt(SST,"units")) then
SST_grad_lat@units = SST@units+"/m"
else
SST_grad_lat@units = "C/km"
end if