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, no HTTP/1.1 etc. 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 πŸ™ˆ). See mArchiveList for 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 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
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 cfitsio library 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 -l flag in mBgModel).

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 🌈✨πŸ’