[Casa-framework] follow on to mp tool comments

Joseph P. McMullin jmcmulli at nrao.edu
Thu Oct 5 17:21:58 EDT 2006


Hi Lindsey,
You can do this pretty easily, with the (single) default msplot tool.
mp.open('B0319_0317.ms')
mp.plotoptions subplot=211
mp.vistime
mp.open('G0336_0317.ms')
mp.plotoptions subplot=212
mp.vistime
#looks okay
mp.open('B0319_0317.ms')
mp.plotoptions subplot=211
mp.vischannel
mp.open('G0336_0317.ms')
mp.plotoptions subplot=212
mp.vischannel
#etc etc

On 10/5/06, Lindsey Davis <ldavis at nrao.edu> wrote:
>
> Hi,
>
> Since I started a thread on multiple mp tools I thought I would tell people
> where I ended up with this.
>
> For what I want to do at present the 2 instances of casapy work best and
> involve the least setup and typing.
>
> However I thought I would try something like the following as well.
>
> 1. Create my own mp tool instances mpraw and mpred
>
> 2. Open the data sets
> mpraw.open <raw_data_set>
> mpred.open <reduced_data_set>
>
> 3. Set the plot options
> mpraw.plotoptions subplot=211
> mpred.plotoptions subplot=212
>
> 4. Set the data options
> mpraw.setdata ...
> mpred.setdata ...
>
> 5. Make the plots
> mpraw.vistime ...
> mpred.vistime ...
>
> 6. Repeat 5 for all plot types of interest. Reset data selections and
> repeat 5 for all plots of interest.
>
> 7. Close the data sets.
> mpraw.close
> mpred.close
>
> This should result in the minimum amount of setup and typing. It all
> seems to work except step 6. If I try to follow vistime by vischannel
> plots, keeping the plot setup and data selection the same, I get plotting
> errors.  What seems to be happening is that the plot still thinks it
> should have a time axis not a channel axis. Interestingly enough I can do
> vischannels plots followed by a vistime plots, but the next vischannel plot
> cause the same axis related error I saw the first time. From this I
> conclude that this scheme should work in principal, but there is an axis
> reset bug somewhere. Is this true or is this scheme flawed ?
>
> By the way what started me off on this was 1) translating the pipeline user
> test visibility plotting instructions from Glish to Casapy, 2) trying to
> examine the raw and reduced pipeline test data sets with casapy in the
> most efficient way.
>
>
>
>
>                                                           Lindsey
>
> _______________________________________________
> Casa-framework mailing list
> Casa-framework at donar.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/casa-framework
>


-- 
Dr. Joseph P. McMullin         W: +15058357327
Scientist                               F: +15058357027
NRAO                             email: jmcmulli at nrao.edu
1003 Lopezville Rd
Socorro, NM 87801


More information about the Casa-framework mailing list