Combining images into a multi-panel image with captions (using ImageMagick)

   convert tsys.spw0.t1.png -pointsize 48 label:'Here is a Tsys plot' -gravity Center -append tsys.spw0.t1.labeled.png
   convert tsys.spw0.t7.png -pointsize 48 label:'Here is another Tsys plot' -gravity Center -append tsys.spw0.t7.labeled.png
   montage -geometry 1024x768 tsys.spw0.t1.labeled.png tsys.spw0.t7.labeled.png summary.png 

Creating multi-source spectrum overlays with line labels in greg

Files required

The files in boldface are the ones you need to create and edit.
  • Main script: sma12lsb34_220cont.greg
    • calls makemolecules.pl, drawlines3.greg, and the resulting 'gregfilename' script
    • You set the vertical separation between spectra with fluxoffset (upper spectrum) and fluxoffsetsma4 (lower spectrum).
    • The relative x-axis shift can be put in with xoffusb[1..2].
    • The x-axis limits are the freqlow and freqhigh arrays.
    • The y-axis limits are fluxpeak and fluxmin.
    • You set the beamsize of your observations on lines 32-33.
    • The name of the postscript file to produce is defined on line 46.
  • Line file: Lines_n6334i.221
    • contains a list of line frequencies in MHz and species/transition names
    • passed to makemolecules to generate the gregfilename, which has the same name but with .greg appended
  • 'gregfilename' script: Lines_n6334i.221.greg (auto-generated by makemolecules.pl)
  • Sub script to draw text labels for each spectral line: drawlines3.greg
  • Perl script to create: makemolecules.pl
    • The first line should point to perl on your computer.
    • Otherwise, it only needs to be edited if you add a species name to the Line file that is not already in this file
  • combineispec: combines to ISPEC ascii files, putting them in frequency order
    • created from combineispec.c program via: gcc -o combineispec combineispec.c

Draft plots for papers or talks

  • maser histograms:
    ch3cn8 h2overticaldistribution.png

  • Figure 6 from Moran 2008:
    page7.png
Topic attachments
ISorted descending Attachment Action Size Date Who Comment
makemolecules.pl.txttxt makemolecules.pl.txt manage 5 K 2011-12-16 - 15:17 ToddHunter  
ch3cn8_h2overticaldistribution.pngpng ch3cn8_h2overticaldistribution.png manage 24 K 2009-10-30 - 16:30 ToddHunter maser histograms
page7.pngpng page7.png manage 50 K 2009-10-30 - 16:31 ToddHunter Figure 6 from Moran 2008
drawlines3.greggreg drawlines3.greg manage 2 K 2011-12-16 - 15:14 ToddHunter  
sma12lsb34_220cont.greggreg sma12lsb34_220cont.greg manage 8 K 2011-12-16 - 15:17 ToddHunter  
combineispec.cc combineispec.c manage 2 K 2011-12-16 - 15:15 ToddHunter  
Lines_n6334i.221221 Lines_n6334i.221 manage 4 K 2011-12-16 - 15:20 ToddHunter  
Topic revision: r3 - 2012-01-03, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback