\File{(stdin)}{Fri Sep 26 11:45:33 2008}

\PythonNoMath

\PythonDocBlock
\verb""\\ 
\verb"Module containing utilities (like parsing of certain command-line arguments) "\\ 
\verb"for writing scripts."\\ 

\PythonDocBlockEnd

\I{8}{0}$\K{def}\ \F{add\_standard\_options}\,(\V{optparser},\V{ant}\Y{=}\V{False},\V{pol}\Y{=}\V{False},\V{chan}\Y{=}\V{False},$

\DS{10}{1}{%
\verb"Add standard command-line options to an optparse.OptionParser() on an "\\ 
\verb"opt in basis (i.e. specify =True for each option to be added)."}\vskip 5pt 















\I{28}{0}$\K{def}\ \F{\_strarg\_to\_range}\,(\V{strarg})\Y{:}$
\DS{29}{1}{%
\verb"Split command-line lists/ranges into a list of numbers."}\vskip 5pt 


\I{33}{0}$\K{def}\ \F{uv\_selector}\,(\V{uv},\V{ant\_str},\V{pol\_str})\Y{:}$
\DS{34}{1}{%
\verb"Call uv.select with appropriate options based on string argument for"\\ 
\verb"antennas (can be 'all', 'auto', 'cross', '0,1,2', or '0_1,0_2') and"\\ 
\verb"string for polarization ('xx','yy','xy','yx')."}\vskip 5pt 












\I{50}{0}$\K{def}\ \F{parse\_chans}\,(\V{chan\_str},\V{nchan})\Y{:}$
\DS{51}{1}{%
\verb"Return array of active channels based on number of channels and"\\ 
\verb"string argument for chans (can be 'all', '20_30', or '55,56,57')."}\vskip 5pt 







\I{61}{0}$\K{def}\ \F{parse\_srcs}\,(\V{src\_str},\V{force\_cat}\Y{=}\V{False})\Y{:}$
\DS{62}{1}{%
\verb"Return src/catalog based on string argument for src (can be ""\verb"all""\verb","\\ 
"\verb"<src_name1>,...""\verb", or ""\verb"<ra XX[:XX:xx]>_<dec XX[:XX:xx]>""\verb").  Can force"\\ 
\verb"a single source to be returned as catalog with force_cat."}\vskip 5pt 












\I{78}{0}$\K{def}\ \F{files\_to\_locs}\,(\V{locations},\V{uvfiles},\V{sysargv})\Y{:}$















