casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
psplit.py
Go to the documentation of this file.
00001 def psplit(vis,outputvispattern,nodes,field,nspw,
00002            outdir="",
00003            basename="/home/casa-dev-",
00004            datacolumn="corrected",width="1",antenna="",
00005            timebin="",timerange="",scan="",uvrange=""):
00006 
00007     nnodes=len(nodes);
00008     format=str('%2.2d');
00009     spwPerNode=nspw/nnodes;
00010     startSPW=0;
00011     endSPW=0;
00012     for i in range(nnodes):
00013         nodename=(format%nodes[i]);
00014         OutputName=basename+nodename+'/'+outdir+'/'+outputvispattern+'-'+nodename;
00015         endSPW=startSPW+spwPerNode;
00016         spwExpr=str(startSPW)+'~'+str(endSPW-1);
00017         startSPW=endSPW;
00018         print OutputName,spwExpr;
00019         
00020         split(vis=vis,outputvis=OutputName,
00021               datacolumn=datacolumn,
00022               field=field,
00023               spw=spwExpr,
00024               width=width,
00025               antenna=antenna,
00026               timebin=timebin,
00027               timerange=timerange,
00028               scan=scan,uvrange=uvrange);