drao scripts

These scripts are available under the GNU General Public License.
Note that there is no warranty! Although I have tried to make them fairly general, they may not yet work for all cases, and you may have some fixing to do. Please send me any fixes or enhancements.


Sort alphabetically.


DRAORed.html Last modified 2006-07-26 14:28:37.000000000 -0700 DRAORed.html 13164 bytes
DRAORed.pm - a perl module of useful subroutines for handling DRAO data.

finishmos Last modified 2006-07-09 16:21:42.000000000 -0700 finishmos 7093 bytes
use: finishmos moscode
Grab Q, U, and weight mosaics from /igps/delrizzo/mos/p21/,
make coverage (sqrt(wt)) and mask maps from weight map,
tmapconvrt SD.MPA21 and SD.MCPI21 to local frames,
    Can SD.MCPI21 easily account for different noises of 26m and Eff.?
make corrected polarized intensity (.MCPI21) using madr's manipulator.
makepolmap does not correct for Ricean bias.
Fill in edges of ST Q, U, and CPI mosaics with single dish data,
clean up with rm and neg everything except filled in mosaics,
ktranslate filled in mosaics to miriad format,
regrid them to q_a1 frame, options=offset,
rm -rf original miriad dirs,
The big mosaics should be made from CPI, Q, and U, not angle.  Unfortunately
impol, miriad's task for producing polarization angle and intensity maps, can
only properly correct for Ricean bias when the noise is uniform.  It can of
course make the angle map out of Q and U, though.

DRAORed.pm Last modified 2006-07-07 18:07:10.000000000 -0700 DRAORed.pm 64094 bytes
Perl5 module source text

mirdrao Last modified 2006-05-25 21:34:12.000000000 -0700 mirdrao 621 bytes

chkgains Last modified 2006-04-18 13:51:37.000000000 -0700 chkgains 2568 bytes
Todo: Check for 0 gains that don't have to be.  Requires knowing the E21
format.
use strict;     # Can't use with Getopt::Long.

analyze_uvanalyze Last modified 2005-08-29 14:54:07.000000000 -0700 analyze_uvanalyze 604 bytes

kelvinize Last modified 2005-08-05 16:18:15.000000000 -0700 kelvinize 2570 bytes
Given input in mJy/beam, creates a copy in K.
Optionally applies the NVSS flux registration.  If the flux correction factor
is < 0.1, (i.e. 0 = not ready yet), it is not applied.

vismath Last modified 2005-06-29 14:03:22.000000000 -0700 vismath 3460 bytes
Add or subtract a model from the visibilities corresponding to viscode.
Takes care to leave the history in the right state (so that ptsrcs can be run
right after it) and preserve the original files (so that the operation can be
backed out of if necessary).

matchfreq Last modified 2005-06-13 10:06:25.000000000 -0700 matchfreq 3178 bytes
When adding fields to an existing mosaic, supertile requires the new fields
to have the exact same frequency as the existing mosaic.  This is a hack to
"fix" them within a Hubble time.

rtconv Last modified 2005-05-30 23:12:22.000000000 -0700 rtconv 4818 bytes
convolve the way it should be.

tmapconvrt Last modified 2005-05-17 09:32:50.000000000 -0700 tmapconvrt 3613 bytes
A convenient way to copy one image into the frame of another.

autoclean Last modified 2004-12-15 11:30:43.000000000 -0800 autoclean 5811 bytes
Automatically clean, from Roland Kothes' polproc.step2 script for reducing
CGPS 21cm polarization data.

Souped up by RR to be a bit faster and more robust, and to add an entry to
logs/index.html.

Nov. 25, 2004: Now guesses the values of unspecified arguments.  Consider
               yourself warned.

lnrget Last modified 2004-12-09 15:59:51.000000000 -0800 lnrget 876 bytes
Link, in both madr and the filesystem, a file in a remote directory into the
current directory.

remove_confsrc Last modified 2004-11-26 15:05:37.000000000 -0800 remove_confsrc 7509 bytes
Flexibly removes a confusing source from the latest visibilities in a
directory, and adds an entry to logs/index.html.

qussttoqugal Last modified 2004-11-17 10:19:33.000000000 -0800 qussttoqugal 1232 bytes
Rotates the angles in the given Qsst (and implied Usst) files to galactic Q
and U.

janskyize Last modified 2004-07-02 10:39:15.000000000 -0700 janskyize 2489 bytes
Given input in K, creates a copy in 0.001 Jy/beam.
Optionally unapplies the NVSS flux registration.  If the flux correction
factor is < 0.1, (i.e. 0 = not ready yet), it is not unapplied.

transurv Last modified 2004-06-29 13:03:27.000000000 -0700 transurv 1803 bytes
Fetches the latest script.drao and adapts it to the current directory.
See rds.

rds Last modified 2004-06-29 12:47:01.000000000 -0700 rds 2004 bytes
Noninteractively run a DRAO program dp with parameters from the given
script.dp, and add an entry to logs/index.html.

Great for command line aficionados when used in combination with
transurv and replace.

ostp Last modified 2004-06-03 16:26:00.000000000 -0700 ostp 2054 bytes
Try to htmlize and pack up the logs of surveys that were processed before the
processing tools were htmlized.

qusstize Last modified 2004-05-31 13:29:28.000000000 -0700 qusstize 831 bytes
Many DRAO programs mistakenly replaced Qsst or Usst with Q or U.  This is a
hack to easily fix up those files, assuming you know what you're doing.

Astangles.pm Last modified 2004-05-24 13:33:41.000000000 -0700 Astangles.pm 5221 bytes
Perl5 module source text

cookiemonster Last modified 2004-05-21 11:14:59.000000000 -0700 cookiemonster 615 bytes
Like cookiecutter(), but cuts file1 [ file2 file3 ... ] down to size in place
(using a temporary copy).

Technically this command should somehow lock madr to ensure it has exclusive
access until it is done.

mls Last modified 2004-04-26 11:32:22.000000000 -0700 mls 5929 bytes
mls - Fancy PERL version of the original mls, which was
#alias mlsnoigc 'madr < ~/bin/madrls |& grep entry | sed s/".*file name: "// | sed s/FORTRAN// | awk -f ~/bin/madrfix.awk | sort -n | uniq'
alias mlsnoigc 'madr < ~/bin/madrls | sed "s/^.*file name: //" | grep entry | awk -f ~/bin/madrfix.awk | sort -n | uniq'
alias mls 'mlsnoigc | igc ".*\!*"'
Unlike the original, it highlights definitions, knows when to supply
empty slot info, and can take more than one pattern.  Despite all this,
it seems to be somewhat faster.

Highlighting
------------
Bold:              File is readable, and madr will ask questions if you
                   try to neg the definition.
Cyan:              File is a symbolic link.
Yellow background: The definition is not the only one to reference that file!
Partly inspired by Example 4.18 of The Perl Cookbook.
Wish list:

   Make it more portable
       i.e. it does not work on cass because cass does not have
            Term::ANSIColor.  I do not need it much on cass, but YMMV.

   Have a term width function that actually works!
       cgps03 (PERL 5.8.3, Fedora) does not have Term::ReadKey.

   mls -l anyone?  i.e.:
       1 NP11.MQ21        256  1 mJy/b  21h08m15.88s, 89d00'00.0"
       9 IA1ADQQACI.MQ21 1024  1 mJy/b  21h08m15.88s, 63d34'22.2"
      10 IA1QQA.V21CJ     960  1 mJy/b  21h08m15.88s, 63d34'22.2"
      17 IA1AJQQACK.P21  1024    none   21h08m15.88s, 63d34'22.2"

      This should really take a format string (or even 2, for images and
      visibilities) to customize what is displayed.
      See DRAORed.pm's readdef().

4/26/2004: No longer needs write permission in the directory.

etm Last modified 2004-04-15 10:28:30.000000000 -0700 etm 371 bytes
Echo To Madr

Pipes 1 madr command, which should be quoted, to madr.  Fails if
madr requires more than one carriage return.

e.g. etm "neg f2:6" will work only if all of the files corresponding
to definitions 2 to 6 have already been removed.

mkrmsun11 Last modified 2004-04-14 09:28:44.000000000 -0700 mkrmsun11 2672 bytes
Generates a rmsun11 script which can in theory remove solar interference from
the shortest 11 spacings, assuming that remove_confsrc is in your path.
You may want to edit and chmod +x rmsun11 before running it.

Also uses Astangles.pm.

qugalize Last modified 2004-04-13 20:14:45.000000000 -0700 qugalize 2660 bytes
Old versions of madr, especially when rgetting, mistakenly replaced [QU]gal
with Q or U.  This is a hack to easily correct that, assuming that you know
what you're doing.
NOTE: This only relabels madr definitions.  It does NOT really convert
coordinate systems for the file contents!

webize Last modified 2004-04-13 16:26:04.000000000 -0700 webize 826 bytes
rsync the given files and directories to lynx.

unqusstize Last modified 2004-04-13 14:37:09.000000000 -0700 unqusstize 2221 bytes
Some DRAO programs mistakenly require(d?) Q or U instead of Qsst or Usst.
This is a hack to get around that.

cookiecutter Last modified 2004-04-13 14:17:43.000000000 -0700 cookiecutter 408 bytes
Copies the central size^2 pixels of the most recent image to destfilename.

copybeam Last modified 2004-04-13 11:18:06.000000000 -0700 copybeam 2676 bytes
Bulent did not allow the beam to be copied to the definition of many (all?)
of his final images.  This looks for the beam's axis lengths and orientation
in another madr definition (hopefully one with the same beam as the target
image, but that is not checked for and the definition need not even
correspond to an existing file.

sunjddir.dat Last modified 2004-04-13 11:18:06.000000000 -0700 sunjddir.dat 195202 bytes
ASCII text

edited.lph2 Last modified 2004-04-12 18:49:35.000000000 -0700 edited.lph2 983 bytes
ASCII text

bigpic.lph2 Last modified 2004-04-12 18:42:35.000000000 -0700 bigpic.lph2 868 bytes
ASCII text

rmcsncc.ptsrcs Last modified 2004-04-11 18:29:31.000000000 -0700 rmcsncc.ptsrcs 1183 bytes
ASCII text

mkmod.ptsrcs Last modified 2004-04-08 13:08:04.000000000 -0700 mkmod.ptsrcs 776 bytes
ASCII text

fixpa.ptsrcs Last modified 2004-03-29 15:30:03.000000000 -0800 fixpa.ptsrcs 1186 bytes
ASCII text

fixpo.ptsrcs Last modified 2004-03-29 15:24:13.000000000 -0800 fixpo.ptsrcs 1188 bytes
ASCII text

rmcygacc.ptsrcs Last modified 2004-03-08 16:29:08.000000000 -0800 rmcygacc.ptsrcs 1182 bytes
ASCII text

fixcyga.ptsrcs Last modified 2004-03-08 16:21:27.000000000 -0800 fixcyga.ptsrcs 1180 bytes
ASCII text

solflarehunt.lph2 Last modified 2004-03-05 12:50:12.000000000 -0800 solflarehunt.lph2 933 bytes
ASCII text

ehunt.lph2 Last modified 2004-02-26 11:48:34.000000000 -0800 ehunt.lph2 817 bytes
ASCII text

madrfix.awk Last modified 2003-08-31 23:26:35.000000000 -0700 madrfix.awk 33 bytes
ASCII text

madrls Last modified 2003-08-29 15:32:28.000000000 -0700 madrls 7 bytes
ASCII text


Page generated by s2dh, based on DirToHtml, GNU generator of html directory listings.