MARCHIVEGET(1)
πΎ MARCHIVEGET(1) β the montage girlies' guide to grabbing one (1) FITS image from a remote archive π¦
okay bestie, welcome to mArchiveGet, part of Montage (version 5, Dec 2016, but we'll get to that at the end π
). This is the one that goes and fetches a single FITS image off a remote archive for you. One image. That's the whole vibe. π
β¨ NAME β¨
mArchiveGet β retrieve a single FITS image from a remote archive π«Ά
πΈ SYNOPSIS πΈ
mArchiveGet [-d] [-r] remoteref localfile
π DESCRIPTION π
So basically it retrieves a single FITS image from a remote archive. The way it does that is a basic URL GET, except the output is structured β it's giving organized, it's giving put-together, it's giving struct stat energy. β¨
π OPTIONS π
-dβ print extra debugging info. she's chatty, she's telling you everything π£οΈ-rβ "raw" mode π₯©: use a raw HTTP GET (so like, noHTTP/1.1etc. in the header). This is necessary for talking to some servers, no cap. Some servers just will not cooperate otherwise π
π ARGUMENTS π
remoterefβ the URL of the remote FITS file you want to retrieve. Put it in quotes!! (should be in quotes, bestie, the shell will betray you otherwise π). SeemArchiveListfor more info.localfileβ the full path/filename where the retrieved file lands. π
π RESULT π
[struct stat="OK", count="bytes"]
and one iconic little bonus fact: if remoteref points to a g-zipped 2MASS QuickLook image, the image gets unzipped during the transfer. multitasking queen π§
π MESSAGES π
Here's the whole group chat of things she might say to you:
OKβ[struct stat="OK", count="bytes"]βERRORβ Output file (localfile) open failedERRORβ Invalid URL string (must start 'http://')ERRORβ No data reference given in URLERRORβ Illegal port number in URLERRORβ Illegal return from select()ERRORβ Connection timed out
fr fr, if you see Connection timed out it's not you, it's the network. still sad though. π
β 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"]
look at that count="2111040" β she ate and left no crumbs π
π BUGS π
okay so this section is... a lot. but we keep every word, so here we go:
- The drizzle algorithm has been implemented but has not been tested in this release. (yes, we know, we know. it's in there. we're just the messenger π)
- If a header template contains carriage returns (i.e., created/modified on a Windows machine), the
cfitsiolibrary will be unable to read it properly, resulting in the error:[struct stat="ERROR", status=207, msg="illegal character in keyword"]. Windows line endings strike again π€ - It is best for the background correction algorithms if the area described in the header template completely encloses all of the input images in their entirety. If parts of input images are "chopped off" by the header template, the background correction will be affected. We recommend you use an expanded header for the reprojection and background modeling steps, returning to the originally desired header size for the final coaddition. The default background matching assumes that there are no non-linear background variations in the individual images (and therefore in the overlap differences). If there is any uncertainty in this regard, it is safer to turn on the "level only" background matching (the
-lflag inmBgModel).
π COPYRIGHT π
2001-2015 California Institute of Technology, Pasadena, California
If your research uses Montage, please include the following acknowledgement:
"This research made use of Montage. It is funded by the National Science Foundation under Grant Number ACI-1440620, and was previously funded by the National Aeronautics and Space Administration's Earth Science Technology Office, Computation Technologies Project, under Cooperative Agreement Number NCC5-626 between NASA and the California Institute of Technology."
The Montage distribution includes an adaptation of the MOPEX algorithm developed at the Spitzer Science Center.
π SEE ALSO π
(nothing listed here in the original β mArchiveList got a shoutout up in ARGUMENTS though, so go read that one too, bestie π«Ά)
okay that's the whole page!! π this was MARCHIVEGET(1) from Montage 5, dated Dec 2016 β mwah, iconic, no notes. go get your FITS file, you're the main character of this archive run πβ¨π
π¦ where this page comes from
- debian bookworm: montage 6.0+dfsg-7+b8 Β· BSD-3-Clause
- debian trixie: montage 6.1+dfsg-1+b1 Β· BSD-3-Clause
- ubuntu jammy: montage 6.0+dfsg-7build5 Β· BSD-3-Clause
- ubuntu noble: montage 6.0+dfsg-9 Β· BSD-3-Clause
- ubuntu questing: montage 6.1+dfsg-2
- ubuntu resolute: montage 6.1+dfsg-2build2 Β· BSD-3-Clause
- ubuntu stonking: montage 6.1+dfsg-2build2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms