These are chat archives for astropy/astropy
coordinates.SkyCoord(’19:23:40.001395 +14:31:01.550347', unit=(u.hour,u.deg), frame='icrs’)so that’s the short-term solution. But I think it makes sense to support the space-delimited version, too. Do you think you’re up for trying to issue a PR to do that? I’d say it’s ok post feature-freeze becasue it’s restoring a feature that already exists...
As for the download bit, this is a smidge kludgey, but it works:
from shutil import move from astropy.utils.data import download_file tmpfn = download_file(url) move(tmpfn, url.split(‘/‘)[-1]
Note that this approach only works if the URL has the actual name. To get a filename from dynamic content (e.g., a query), you need Content-Disposition from the http headers, which
download_file doesn’t expose. So in that case you’re probably better off using
urllib2 directly or something
download_file(url, outdir=‘.’)which automatically takes care of file names, feel free to create an issue, @keflavich - it wouldn’t be that hard, but as yet there’s no clear call for it