mArchiveGet1
Retrieve a single fits image from a remote archive
Usage
mArchiveGet [-d]
[-r]
remoteref
localfile
Overview
Retrieve a single FITS image from a remote archive, using a basic URL GET but with a structured output.
Options
-
-d -
Print additional debugging information.
-
-r -
"Raw" mode - use a raw HTTP GET (no "HTTP/1.1" etc in the header); necessary for communication with some servers.
Arguments
- remoteref
-
URL of remote FITS file to retrieve (should be in quotes). See
mArchiveListfor more information.
- localfile
-
Full path/filename of the retrieved file.
Result
[struct stat="OK", count="bytes"]
If remoteref points to a g-zipped 2MASS QuickLook image, the image will be unzipped during transfer.
Messages
OK
|
[struct stat="OK", count="bytes"] |
|---|---|
ERROR
|
Output file (localfile) open failed |
ERROR
|
Invalid URL string (must start 'http://') |
ERROR
|
No data reference given in URL |
ERROR
|
Illegal port number in URL |
ERROR
|
Illegal return from select() |
ERROR
|
Connection timed out |
Examples
- $ mArchiveGet "http://irsa.ipac.caltech.edu/cgi-bin/FileDownload/ nph-download?raw=1&ref=/ti08/971024n/s009/ image/j10090244.fits.gz" j10090244.fits
-
[struct stat="OK", count="2111040"]
Releases
5 releases since Debian 9 (Stretch); the text changed 1 time.