MTBLSORT(1)

πŸ’– MTBLSORT(1) β€” the mTblSort glow-up πŸ’–

okay so bestie, welcome to mTblSort, a lil Montage tool that sorts a table on numeric values. that's it. that's the whole personality. she's simple, she's efficient, she's lowkey carrying your whole pipeline. πŸŽ€


✨ NAME ✨

mTblSort β€” sorts a table on numeric values. no cap.


🌸 SYNOPSIS 🌸

mTblSort [-d] in.tbl colname out.tbl

πŸ¦‹ DESCRIPTION πŸ¦‹

Sorts a table on numeric values. literally just that. she takes your table, she takes a column name, she sorts, she writes it back out. the column has to be numeric though β€” she is NOT doing string collation for you, that's a different girl. πŸ™ˆ


πŸ’… OPTIONS πŸ’…

  • -d β€” turns on debugging. she gets chatty. useful when you're like "why is this not working" and you need her to tell you.

πŸŽ€ ARGUMENTS πŸŽ€

  • in.tbl β€” path to the input table. the table you're feeding her.
  • colname β€” name of the column to sort on. heads up bestie: the column must contain numeric values. if it's a string column she's gonna be real upset about it.
  • out.tbl β€” path to the output table. where the sorted version lands.

⭐ RESULT ⭐

[struct stat="OK", count=nrows]

where nrows is the number of rows in the table. cute, right? she tells you how many rows she handled. main character behaviour. πŸ‘‘


πŸ”₯ MESSAGES πŸ”₯

  • OK β€” [struct stat="OK", count=nrows] β€” she did it, she ate, no crumbs.
  • ERROR β€” Cannot allocate memory for data β€” she ran out of room to think. 😭
  • ERROR β€” Cannot open input file β€” can't find/read your input, bestie.
  • ERROR β€” Cannot open output file β€” can't write your output. check your path/permissions fr fr.
  • ERROR β€” Table file open failed for [in.tbl] β€” the table file open failed for that specific file.
  • ERROR β€” Table file does not have fixed-length records β€” she needs fixed-length records and yours are not that. she's not flexible about this. πŸ’€
  • ERROR β€” Table does not contain column [colname] β€” that column is simply not in the table. vibe check failed.

🌈 EXAMPLES 🌈

$ mTblSort images.tbl ra ra_sorted.tbl
       [struct stat="OK", count=5, nmatches=3]

ra_sorted.tbl is now sorted on the column "ra". slay. ✨


πŸ’œ BUGS πŸ’œ

okay so these are the known issues, and I need you to actually read them, not just skim, because some of these are the kind of thing that ruins your whole day.
  • The drizzle algorithm has been implemented but has not been tested in this release. (not me telling you it's untested. it's right there. she's out here untested. 🫠)
  • 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"]. so like… windows line endings are the enemy. always have been. πŸ’€
  • 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.


and that's the whole page bestie!! πŸ’–βœ¨ this was Montage 5, dated Dec 2016 β€” thanks for reading all the way to the bottom, you're literally the bestie of all time πŸ«ΆπŸŽ€πŸ¦‹