Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

169

170

171

172

173

174

175

176

177

178

179

180

181

182

183

184

185

186

187

188

189

190

191

192

193

194

195

196

197

198

199

200

201

202

203

204

205

206

207

208

209

210

211

212

213

214

215

216

217

218

219

220

221

222

223

224

225

226

227

228

229

230

231

232

233

234

235

236

237

238

239

240

241

242

243

244

245

246

247

248

249

250

251

252

253

254

255

256

257

258

259

260

261

262

263

264

265

266

267

268

269

270

271

272

273

274

275

276

277

278

279

280

281

282

283

284

285

286

287

288

289

290

291

292

293

294

295

296

297

298

299

300

301

302

303

304

305

306

307

308

309

310

311

312

313

314

315

316

317

318

319

320

321

322

323

324

325

326

327

328

329

330

331

332

333

334

335

336

337

338

339

340

341

342

343

344

345

346

347

348

349

350

351

352

353

354

355

356

357

358

359

360

361

362

363

364

365

366

367

368

369

370

371

372

373

374

375

376

377

378

379

380

381

382

383

384

385

386

387

388

389

390

391

392

393

394

395

396

397

398

399

400

401

402

403

404

405

406

407

408

409

410

411

412

413

414

415

416

417

418

419

420

421

422

423

424

425

426

427

428

429

430

431

432

433

434

435

436

437

438

439

440

441

442

443

444

445

446

447

448

449

450

451

452

453

454

455

456

457

458

459

460

461

462

463

464

465

466

467

468

469

470

471

472

473

474

475

476

477

478

479

480

481

482

483

484

485

486

487

488

489

490

491

492

493

494

495

496

497

498

499

500

501

502

503

504

505

506

507

508

509

510

511

512

513

514

515

516

517

518

519

520

521

522

523

524

525

526

527

528

529

530

531

532

533

534

535

536

537

538

539

540

541

542

543

544

545

546

547

548

549

550

551

552

553

554

555

556

557

558

559

560

561

562

563

564

565

566

567

568

569

570

571

572

573

574

575

576

577

578

579

580

581

582

583

584

585

586

587

588

589

590

591

592

593

594

595

596

597

598

599

600

601

602

603

604

605

606

607

608

609

610

611

612

613

614

615

616

617

618

619

620

621

622

623

624

625

626

627

628

629

630

631

632

633

634

635

636

637

638

639

640

641

642

643

644

645

646

647

648

649

650

651

652

653

654

655

656

657

658

659

660

661

662

663

664

665

666

667

668

669

670

671

672

673

674

675

676

677

678

679

680

681

682

683

684

685

686

687

688

689

690

691

692

693

694

695

696

697

698

699

700

701

702

703

704

705

706

707

708

709

710

711

712

713

714

715

716

717

718

719

720

721

722

723

724

725

726

727

728

729

730

731

732

733

734

735

736

737

738

739

740

741

742

743

# This file was automatically generated by SWIG (http://www.swig.org). 

# Version 2.0.4 

# 

# Do not make changes to this file unless you know what you are doing--modify 

# the SWIG interface file instead. 

 

 

 

from sys import version_info 

if version_info >= (2,6,0): 

    def swig_import_helper(): 

        from os.path import dirname 

        import imp 

        fp = None 

        try: 

            fp, pathname, description = imp.find_module('_vpmanager', [dirname(__file__)]) 

        except ImportError: 

            import _vpmanager 

            return _vpmanager 

        if fp is not None: 

            try: 

                _mod = imp.load_module('_vpmanager', fp, pathname, description) 

            finally: 

                fp.close() 

            return _mod 

    _vpmanager = swig_import_helper() 

    del swig_import_helper 

else: 

    import _vpmanager 

del version_info 

try: 

    _swig_property = property 

except NameError: 

    pass # Python < 2.2 doesn't have 'property'. 

def _swig_setattr_nondynamic(self,class_type,name,value,static=1): 

    if (name == "thisown"): return self.this.own(value) 

    if (name == "this"): 

        if type(value).__name__ == 'SwigPyObject': 

            self.__dict__[name] = value 

            return 

    method = class_type.__swig_setmethods__.get(name,None) 

    if method: return method(self,value) 

    if (not static): 

        self.__dict__[name] = value 

    else: 

        raise AttributeError("You cannot add attributes to %s" % self) 

 

def _swig_setattr(self,class_type,name,value): 

    return _swig_setattr_nondynamic(self,class_type,name,value,0) 

 

def _swig_getattr(self,class_type,name): 

    if (name == "thisown"): return self.this.own() 

    method = class_type.__swig_getmethods__.get(name,None) 

    if method: return method(self) 

    raise AttributeError(name) 

 

def _swig_repr(self): 

    try: strthis = "proxy of " + self.this.__repr__() 

    except: strthis = "" 

    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) 

 

try: 

    _object = object 

    _newclass = 1 

except AttributeError: 

    class _object : pass 

    _newclass = 0 

 

 

class vpmanager(_object): 

    """Proxy of C++ casac::vpmanager class""" 

    __swig_setmethods__ = {} 

    __setattr__ = lambda self, name, value: _swig_setattr(self, vpmanager, name, value) 

    __swig_getmethods__ = {} 

    __getattr__ = lambda self, name: _swig_getattr(self, vpmanager, name) 

    __repr__ = _swig_repr 

    def __init__(self): 

        """__init__(self) -> vpmanager""" 

        this = _vpmanager.new_vpmanager() 

        try: self.this.append(this) 

        except: self.this = this 

    __swig_destroy__ = _vpmanager.delete_vpmanager 

    __del__ = lambda self : None; 

    def saveastable(self, *args, **kwargs): 

        """ 

        saveastable(self, tablename = string("")) -> bool 

 

        Summary 

                Save the vp or pb descriptions as a table 

 

        Description 

                 

        Save the vp or pb descriptions as a table.  Each description is in a different 

        row of the table. 

 

 

        Input Parameters: 

                tablename        Name of table to save vp descriptions in  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_saveastable(self, *args, **kwargs) 

 

    def loadfromtable(self, *args, **kwargs): 

        """ 

        loadfromtable(self, tablename = string("")) -> bool 

 

        Summary 

                Load the vp or pb descriptions from a table (deleting all previous definitions) 

 

        Description 

                 

        Load the vp or pb descriptions from a table created, e.g., with saveastable(). 

 

 

        Input Parameters: 

                tablename        Name of table to load vp descriptions from  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_loadfromtable(self, *args, **kwargs) 

 

    def summarizevps(self, verbose = False): 

        """ 

        summarizevps(self, verbose = False) -> bool 

 

        Summary 

                Summarize the currently accumulated VP descriptions 

 

        Description 

                 

        Summarize the currently accumulated VP descriptions to the logger. 

 

 

        Input Parameters: 

                verbose          Print out full record? Otherwise, print summary. false  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_summarizevps(self, verbose) 

 

    def setcannedpb(self, *args, **kwargs): 

        """ 

        setcannedpb(self, telescope = string("VLA"), othertelescope = string(""),  

            dopb = True, commonpb = string("DEFAULT"),  

            dosquint = False, paincrement = initialize_variant("720deg"),  

            usesymmetricbeam = False) -> record 

 

        Summary 

                Select a vp/pb from our library of common pb models 

 

        Description 

                 

        We have many vp/pb models ready to go for a variety of telescopes.  If 'DEFAULT' isselected, the system default for that telescope and frequency is used. 

 

 

        Input Parameters: 

                telescope        Which telescope in the MS will use this vp/pb? VLA  

                othertelescope   If telescope=='OTHER', specify name here  

                dopb             Should we apply the vp/pb to this telescope's data? true  

                commonpb         List of common vp/pb models: DEFAULT code figures it out DEFAULT  

                dosquint         Enable the natural beam squint found in the common vp model false  

                paincrement      Increment in Parallactic Angle for asymmetric (ie, squinted) vp application 720deg  

                usesymmetricbeam         Not currently used false  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_setcannedpb(self, *args, **kwargs) 

 

    def setpbairy(self, *args, **kwargs): 

        """ 

        setpbairy(self, telescope = string("VLA"), othertelescope = string(""),  

            dopb = True, dishdiam = initialize_variant("25.0m"),  

            blockagediam = initialize_variant("2.5m"),  

            maxrad = initialize_variant("0.8deg"),  

            reffreq = initialize_variant("1.0GHz"),  

            squintdir = initialize_variant(""), squintreffreq = initialize_variant("1.0GHz"),  

            dosquint = False,  

            paincrement = initialize_variant("720deg"),  

            usesymmetricbeam = False) -> record 

 

        Summary 

                Make an airy disk vp 

 

        Description 

                 

        Information sufficient to create a portion of the Airy disk voltage pattern. 

        The Airy disk pattern is formed by Fourier transforming a uniformly illuminated 

        aperture and is given by 

        egin{equation} 

        vp_p(i) = ( areaRatio * 2.0 * j_{1}(x)/x  

                          - 2.0 * j_{1}(x*lengthRatio)/(x*lengthRatio) )/ areaNorm, 

        nd{equation} 

        where areaRatio is the dish area divided by the blockage area, lengthRatio 

        is the dish diameter divided by the blockage diameter, and  

        egin{equation} 

        x = rac{i * maxrad * 7.016 * dishdiam/24.5m}{N_{samples} * 1.566 * 60}. 

        nd{equation} 

 

 

        Input Parameters: 

                telescope        Which telescope in the MS will use this vp/pb? VLA  

                othertelescope   If telescope=='OTHER', specify name here  

                dopb             Should we apply the vp/pb to this telescope's data? true  

                dishdiam         Effective diameter of dish 25.0m  

                blockagediam     Effective diameter of subreflector blockage 2.5m  

                maxrad           Maximum radial extent of the vp/pb (scales with 1/freq) 0.8deg  

                reffreq          Frequency at which maxrad is specified 1.0GHz  

                squintdir        Offset (Measure) of RR beam from pointing center, azel frame (scales with 1/freq)  

                squintreffreq    Frequency at which the squint is specified 1.0GHz  

                dosquint         Enable the natural beam squint found in the common vp model false  

                paincrement      Increment in Parallactic Angle for asymmetric (ie, squinted) vp application 720deg  

                usesymmetricbeam         Not currently used false  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_setpbairy(self, *args, **kwargs) 

 

    def setpbcospoly(self, *args, **kwargs): 

        """ 

        setpbcospoly(self, telescope = string("VLA"), othertelescope = string(""),  

            dopb = True, coeff = initialize_vector(1, (double)-1),  

            scale = initialize_vector(1, (double)-1),  

            maxrad = initialize_variant("0.8deg"),  

            reffreq = initialize_variant("1.0GHz"),  

            isthispb = string("PB"), squintdir = initialize_variant(""),  

            squintreffreq = initialize_variant("1.0GHz"),  

            dosquint = False, paincrement = initialize_variant("720deg"),  

            usesymmetricbeam = False) -> record 

 

        Summary 

                Make a vp/pb from a polynomial of scaled cosines 

 

        Description 

                 

        A voltage pattern or primary beam of the form 

        egin{equation} 

        VP(x) = \sum_{i} ( coeff_{i} \cos^{2i}( scale_{i} x). 

        nd{equation} 

        This is a generalization of the WSRT primary beam model. 

 

 

        Input Parameters: 

                telescope        Which telescope in the MS will use this vp/pb? VLA  

                othertelescope   If telescope=='OTHER', specify name here  

                dopb             Should we apply the vp/pb to this telescope's data? true  

                coeff            Vector of coefficients of cosines -1  

                scale            Vector of scale factors of cosines -1  

                maxrad           Maximum radial extent of the vp/pb (scales with 1/freq) 0.8deg  

                reffreq          Frequency at which maxrad is specified 1.0GHz  

                isthispb         Do these parameters describe a PB or a VP? PB  

                squintdir        Offset (Measure) of RR beam from pointing center, azel frame (scales with 1/freq)  

                squintreffreq    Frequency at which the squint is specified 1.0GHz  

                dosquint         Enable the natural beam squint found in the common vp model false  

                paincrement      Increment in Parallactic Angle for asymmetric (ie, squinted) vp application 720deg  

                usesymmetricbeam         Not currently used false  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_setpbcospoly(self, *args, **kwargs) 

 

    def setpbgauss(self, *args, **kwargs): 

        """ 

        setpbgauss(self, telescope = string("VLA"), othertelescope = string(""),  

            dopb = True, halfwidth = initialize_variant("0.5deg"),  

            maxrad = initialize_variant("1.0deg"),  

            reffreq = initialize_variant("1.0GHz"),  

            isthispb = string("PB"), squintdir = initialize_variant(""),  

            squintreffreq = initialize_variant("1.0GHz"),  

            dosquint = False, paincrement = initialize_variant("720deg"),  

            usesymmetricbeam = False) -> record 

 

        Summary 

                Make a Gaussian vp/pb 

 

        Description 

                 

        Make a Gaussian primary beam given by 

        egin{equation} 

        PB(x) =  e^{- (x/(halfwidth*\sqrt{1/\log(2)})) }. 

        nd{equation} 

 

 

        Input Parameters: 

                telescope        Which telescope in the MS will use this vp/pb? VLA  

                othertelescope   If telescope=='OTHER', specify name here  

                dopb             Should we apply the vp/pb to this telescope's data? true  

                halfwidth        Half power half width of the Gaussian at the reffreq 0.5deg  

                maxrad           Maximum radial extent of the vp/pb (scales with 1/freq) 1.0deg  

                reffreq          Frequency at which maxrad is specified 1.0GHz  

                isthispb         Do these parameters describe a PB or a VP? PB  

                squintdir        Offset (Measure) of RR beam from pointing center, azel frame (scales with 1/freq)  

                squintreffreq    Frequency at which the squint is specified 1.0GHz  

                dosquint         Enable the natural beam squint found in the common vp model false  

                paincrement      Increment in Parallactic Angle for asymmetric (ie, squinted) vp application 720deg  

                usesymmetricbeam         Not currently used false  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_setpbgauss(self, *args, **kwargs) 

 

    def setpbinvpoly(self, *args, **kwargs): 

        """ 

        setpbinvpoly(self, telescope = string("VLA"), othertelescope = string(""),  

            dopb = True, coeff = initialize_vector(1, (double)-1),  

            maxrad = initialize_variant("0.8deg"),  

            reffreq = initialize_variant("1.0GHz"),  

            isthispb = string("PB"), squintdir = initialize_variant(""),  

            squintreffreq = initialize_variant("1.0"),  

            dosquint = False, paincrement = initialize_variant("720deg"),  

            usesymmetricbeam = False) -> record 

 

        Summary 

                Make a vp/pb as an inverse polynomial 

 

        Description 

                 

        The inverse polynomial describes the inverse of the VP or PB 

        as a polynomial of even powers: 

        egin{equation} 

        1/VP(x) = \sum_{i} coeff_{i} * x^{2i}. 

        nd{equation} 

 

 

        Input Parameters: 

                telescope        Which telescope in the MS will use this vp/pb? VLA  

                othertelescope   If telescope=='OTHER', specify name here  

                dopb             Should we apply the vp/pb to this telescope's data? true  

                coeff            Coefficients of even powered terms -1  

                maxrad           Maximum radial extent of the vp/pb (scales with 1/freq) 0.8deg  

                reffreq          Frequency at which maxrad is specified 1.0GHz  

                isthispb         Do these parameters describe a PB or a VP? PB  

                squintdir        Offset (Measure) of RR beam from pointing center, azel frame (scales with 1/freq)  

                squintreffreq    Frequency at which the squint is specified 1.0  

                dosquint         Enable the natural beam squint found in the common vp model false  

                paincrement      Increment in Parallactic Angle for asymmetric (ie, squinted) vp application 720deg  

                usesymmetricbeam         Not currently used false  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_setpbinvpoly(self, *args, **kwargs) 

 

    def setpbnumeric(self, *args, **kwargs): 

        """ 

        setpbnumeric(self, telescope = string("VLA"), othertelescope = string(""),  

            dopb = True, vect = initialize_vector(1, (double)-1),  

            maxrad = initialize_variant("0.8deg"),  

            reffreq = initialize_variant("1.0GHz"),  

            isthispb = string("PB"), squintdir = initialize_variant(""),  

            squintreffreq = initialize_variant("1.0GHz"),  

            dosquint = False, paincrement = initialize_variant("720deg"),  

            usesymmetricbeam = False) -> record 

 

        Summary 

                Make a vp/pb from a user-supplied vector 

 

        Description 

                 

        Supply a vector of vp/pb sample values taken on a regular grid between x=0 and 

        x=maxrad.  We perform sinc interpolation to fill in the lookup table. 

 

 

        Input Parameters: 

                telescope        Which telescope in the MS will use this vp/pb? VLA  

                othertelescope   If telescope=='OTHER', specify name here  

                dopb             Should we apply the vp/pb to this telescope's data? true  

                vect             Vector of vp/pb samples uniformly spaced from 0 to maxrad -1  

                maxrad           Maximum radial extent of the vp/pb (scales with 1/freq) 0.8deg  

                reffreq          Frequency at which maxrad is specified 1.0GHz  

                isthispb         Do these parameters describe a PB or a VP? PB  

                squintdir        Offset (Measure) of RR beam from pointing center, azel frame (scales with 1/freq)  

                squintreffreq    Frequency at which the squint is specified 1.0GHz  

                dosquint         Enable the natural beam squint found in the common vp model false  

                paincrement      Increment in Parallactic Angle for asymmetric (ie, squinted) vp application 720deg  

                usesymmetricbeam         Not currently used false  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_setpbnumeric(self, *args, **kwargs) 

 

    def setpbimage(self, *args, **kwargs): 

        """ 

        setpbimage(self, telescope = string("VLA"), othertelescope = string(""),  

            dopb = True, realimage = string(""), imagimage = string(""),  

            compleximage = string(""),  

            antnames = std::vector< string >(1, "")) -> record 

 

        Summary 

                Make a vp/pb from a user-supplied image 

 

        Description 

                 

        Experimental: Supply an image of the E Jones elements. The format of the  

        image is: 

        egin{description} 

        \item[Shape] nx by ny by 4 complex polarizations (RR, RL, LR, LL or 

        XX, XY, YX, YY) by 1 channel. 

        \item[Direction coordinate] Az, El 

        \item[Stokes coordinate] All four ``stokes'' parameters must be present 

        in the sequence RR, RL, LR, LL or XX, XY, YX, YY. 

        \item[Frequency] Only one channel is currently needed - frequency  

        dependence beyond that is ignored.  

        nd{description} 

 

        If a compleximage is specified the real and imaginary images is to be left empty. 

 

        The other option is to provide the real and imaginary part of the E-Jones as seperale { t float} images 

        On that case 

        one or two images may be specified - the real (must be present) and 

        imaginary parts (optional).  

 

        Note that beamsquint must be intrinsic to the images themselves. 

        This will be accounted for correctly by regridding of the images 

        from Az-El to Ra-Dec according to the parallactic angle. 

 

        antnames is the Vector of names  for which this response pattern apply '*' is for all  

        The name has to match exactly the name of the Antennas in the ANTENNA table of the MS with which 

        you want to use this VPManager table or object. 

 

 

 

        Input Parameters: 

                telescope        Which telescope in the MS will use this vp/pb? VLA  

                othertelescope   If telescope=='OTHER', specify name here  

                dopb             Should we apply the vp/pb to this telescope's data? true  

                realimage        Real part of vp as an image  

                imagimage        Imaginary part of vp as an image  

                compleximage     complex vp as an image of complex numbers; if specified realimage and imagimage are ignored  

                antnames         antenna names for which this pattern is valid; default is all antennas *  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_setpbimage(self, *args, **kwargs) 

 

    def setpbpoly(self, *args, **kwargs): 

        """ 

        setpbpoly(self, telescope = string("VLA"), othertelescope = string(""),  

            dopb = True, coeff = initialize_vector(1, (double)-1),  

            maxrad = initialize_variant("0.8deg"),  

            reffreq = initialize_variant("1.0GHz"),  

            isthispb = string("PB"), squintdir = initialize_variant(""),  

            squintreffreq = initialize_variant("1.0GHz"),  

            dosquint = False, paincrement = initialize_variant("720"),  

            usesymmetricbeam = False) -> record 

 

        Summary 

                Make a vp/pb from a polynomial 

 

        Description 

                 

        The VP or PB is described as a polynomial of even powers: 

        egin{equation} 

        VP(x) = \sum_{i} coeff_{i} * x^{2i}. 

        nd{equation} 

 

 

        Input Parameters: 

                telescope        Which telescope in the MS will use this vp/pb? VLA  

                othertelescope   If telescope=='OTHER', specify name here  

                dopb             Should we apply the vp/pb to this telescope's data? true  

                coeff            Coefficients of even powered terms -1  

                maxrad           Maximum radial extent of the vp/pb (scales with 1/freq) 0.8deg  

                reffreq          Frequency at which maxrad is specified 1.0GHz  

                isthispb         Do these parameters describe a PB or a VP? PB  

                squintdir        Offset (Measure) of RR beam from pointing center, azel frame (scales with 1/freq)  

                squintreffreq    Frequency at which the squint is specified 1.0GHz  

                dosquint         Enable the natural beam squint found in the common vp model false  

                paincrement      Increment in Parallactic Angle for asymmetric (ie, squinted) vp application 720  

                usesymmetricbeam         Not currently used false  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_setpbpoly(self, *args, **kwargs) 

 

    def setpbantresptable(self, *args, **kwargs): 

        """ 

        setpbantresptable(self, telescope = string(""), othertelescope = string(""),  

            dopb = True, antresppath = string("")) -> bool 

 

        Summary 

                Declare a reference to an antenna responses table 

 

        Description 

                 

        Declare a reference to an antenna responses table containing a set of VP/PB definitions. 

 

 

        Input Parameters: 

                telescope        Which telescope in the MS will use this vp/pb?  

                othertelescope   If telescope=='OTHER', specify name here  

                dopb             Should we apply the vp/pb to this telescope's data? true  

                antresppath      The path to the antenna responses table (absolute or relative to CASA data dir.)  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_setpbantresptable(self, *args, **kwargs) 

 

    def reset(self): 

        """ 

        reset(self) -> bool 

 

        Summary 

                Reinitialize the VPManager (will erase all VPs and defaults defined on the command line) 

 

        Description 

                 

        Reinitialize the VPManager database. 

        Erase all VPs and defaults defined on the command line. 

 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_reset(self) 

 

    def setuserdefault(self, *args, **kwargs): 

        """ 

        setuserdefault(self, vplistnum = -1, telescope = string(""), anttype = string("")) -> bool 

 

        Summary 

                Select the VP which is to be used by the imager for the given telescope and antenna type 

 

        Description 

                 

        Selects the VP which is to be used by the imager for the given telescope and antenna type. 

        Overwrites a previous default. Returns True if successful. 

 

 

        Input Parameters: 

                vplistnum        The number of the vp as displayed by summarizevps(), or -1 for internal default, or -2 for unset -1  

                telescope        Which telescope in the MS will use this vp/pb?  

                anttype          Which antennatype will use this vp/pb? Default: '' = all  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_setuserdefault(self, *args, **kwargs) 

 

    def getuserdefault(self, *args, **kwargs): 

        """ 

        getuserdefault(self, telescope = string(""), anttype = string("")) -> int 

 

        Summary 

                Get the vp list number of the present default VP/PB for the given parameters (-1 = internal PB, -2 = none) 

 

        Description 

                 

        Get the vp list number of the present default VP/PB for the given parameters. 

 

 

        Input Parameters: 

                telescope        Which telescope in the MS will use this vp/pb?  

                anttype          Which antennatype will use this vp/pb? Default: '' = all  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_getuserdefault(self, *args, **kwargs) 

 

    def getanttypes(self, *args, **kwargs): 

        """ 

        getanttypes(self, telescope = string(""), obstime = initialize_variant(""),  

            freq = initialize_variant(""), obsdirection = initialize_variant("AZEL 0deg 90deg")) -> std::vector<(std::string)> 

 

        Summary 

                Return the list of available antenna types for the given parameters 

 

        Description 

                 

        Get a list of the available antenna types. 

 

 

        Input Parameters: 

                telescope        Telescope name  

                obstime          Time of the observation (for versioning and reference frame calculations)  

                freq             Frequency of the observation (may include reference frame, default: LSRK)  

                obsdirection     Direction of the observation (may include reference frame, default: J2000). default: Zenith AZEL 0deg 90deg  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_getanttypes(self, *args, **kwargs) 

 

    def numvps(self, *args, **kwargs): 

        """ 

        numvps(self, telescope = string(""), obstime = initialize_variant(""),  

            freq = initialize_variant(""), obsdirection = initialize_variant("AZEL 0deg 90deg")) -> int 

 

        Summary 

                Return the number of vps/pbs available for the given parameters 

 

        Description 

                 

        Can be used to, e.g., determine the number of antenna types. 

        Note: if a global response is defined for the telescope, this will increase the count of 

        available vps/pbs by 1. 

 

 

        Input Parameters: 

                telescope        Telescope name  

                obstime          Time of the observation (for versioning and reference frame calculations)  

                freq             Frequency of the observation (may include reference frame, default: LSRK)  

                obsdirection     Direction of the observation (may include reference frame, default: J2000). default: Zenith AZEL 0deg 90deg  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_numvps(self, *args, **kwargs) 

 

    def getvp(self, *args, **kwargs): 

        """ 

        getvp(self, telescope = string(""), antennatype = string(""), obstime = initialize_variant(""),  

            freq = initialize_variant(""),  

            obsdirection = initialize_variant("AZEL 0deg 90deg")) -> record 

 

        Summary 

                Return the default vps/pbs record for the given parameters 

 

        Description 

                 

        Record is empty if no matching vp/pb could be found. 

 

 

        Input Parameters: 

                telescope        Telescope name  

                antennatype      The antenna type as a string, e.g. 'DV'  

                obstime          Time of the observation (for versioning and reference frame calculations), e.g. 2011/12/12T00:00:00  

                freq             Frequency of the observation (may include reference frame, default: LSRK)  

                obsdirection     Direction of the observation (may include reference frame, default: J2000), default: AZEL 0deg 90deg  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_getvp(self, *args, **kwargs) 

 

    def createantresp(self, *args, **kwargs): 

        """ 

        createantresp(self, imdir = string(""), starttime = string(""), bandnames = std::vector< string >(1, ""),  

            bandminfreq = std::vector< string >(1, ""),  

            bandmaxfreq = std::vector< string >(1, "")) -> bool 

 

        Summary 

                Create a standard-format AntennaResponses table 

 

        Description 

                 

        The AntennaResponses table serves CASA to look up the location of images describing the 

        response of observatory antennas. Three types of images are supported: 'VP' - real voltage patterns, 

        'AIF' - complex aperture illumination patterns, 'EFP' - complex electric field patterns. 

        For each image, a validity range can be defined in Azimuth, Elevation, and Frequency. 

        Furthermore, an antenna type (for heterogeneous arrays), a receiver type (for the case of 

        several receivers on the same antenna having overlapping frequency bands), and a beam number 

        (for the case of multiple beams per antenna) are associated with each response image. 

 

        The images need to be stored in a single directory DIR of arbitrary name and need to 

        have file names following the pattern 

        egin{verbatim} 

        obsname_beamnum_anttype_rectype_azmin_aznom_azmax_elmin_elnom_elmax_freqmin_freqnom_freqmax_frequnit_comment_functype.im 

        nd{verbatim} 

        where the individual name elements mean the following (none of the elements may contain  

        the space character, but they may be empty strings if they are not numerical values): 

        egin{description} 

        \item[obsname] - name of the observatory as in the Observatories table, e.g. 'ALMA' 

        \item[beamnum] - the numerical beam number (integer) for the case of multiple beams, e.g. 0 

        \item[anttype] - name of the antenna type, e.g. 'DV' 

        \item[rectype] - name of the receiver type, e.g. '' 

        \item[azmin, aznom, azmax] - numerical value (degrees) of the minimal, the nominal, and  

          the maximal Azimuth where this response is valid, e.g. '-10.5\_0.\_10.5' 

        \item[elmin, elnom, elmax] - numerical value (degrees) of the minimal, the nominal, and  

          the maximal Elevation where this response is valid, e.g. '10.\_45.\_80.' 

        \item[freqmin, freqnom, freqmax] - numerical value (degrees) of the minimal, the nominal, and  

          the maximal Frequency (in units of frequnit) where this response is valid, e.g. '84.\_100.\_116.' 

        \item[frequnit] - the unit of the previous three frequencies, e.g. 'GHz' 

        \item[comment] - any string containing only characters permitted in file names and not empty space 

        \item[functype] - the type of the image as defined above ('VP', 'AIF', or 'EFP') 

         nd{description} 

 

        The createantresp method will then extract the parameters from all the images in DIR 

        and create the lookup table in the same directory. 

 

 

        Input Parameters: 

                imdir            Path to the directory containing the response images  

                starttime        Time from which onwards the response is valid, format YYYY/MM/DD/hh:mm:ss  

                bandnames        List containing the names of the observatory's frequency bands  

                bandminfreq      List containing the lower edges of the observatory's frequency bands, e.g. ['80GHz','120GHz']  

                bandmaxfreq      List containing the upper edges of the observatory's frequency bands, e.g. ['120GHz','180GHz']  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_createantresp(self, *args, **kwargs) 

 

    def getrespimagename(self, *args, **kwargs): 

        """ 

        getrespimagename(self, telescope = string(""), starttime = string(""), frequency = string(""),  

            functype = string("ANY"),  

            anttype = string(""), azimuth = string("0deg"),  

            elevation = string("45deg"), rectype = string(""),  

            beamnumber = 0) -> string 

 

        Summary 

                Get the image name for the given parameters from the given responses table 

 

        Description 

                 

        Given the observatory name, the antenna type, the receiver type, the observing frequency, the 

        observing direction, and the beam number, find the applicable response image and return its name. 

 

 

        Input Parameters: 

                telescope        Which telescope is described by this response?  

                starttime        Time at which the response has to be valid, format YYYY/MM/DD/hh:mm:ss  

                frequency        The frequency at which the response has to be valid, e.g. '100GHz'  

                functype         Type of the responsefunction requested, e.g. 'EFP' ANY  

                anttype          Antenna type (observatory-dependent)  

                azimuth          Azimuth of the observation (at the location of the observatory, 0 is North), e.g. '5deg' 0deg  

                elevation        Elevation of the observation (at the location of the observatory, 0 is North), e.g. '60deg' 45deg  

                rectype          Receiver type (observatory-dependent)  

                beamnumber       Beam number (for the case of multiple beams per receiver) 0  

                 

        -------------------------------------------------------------------------------- 

                       

        """ 

        return _vpmanager.vpmanager_getrespimagename(self, *args, **kwargs) 

 

vpmanager_swigregister = _vpmanager.vpmanager_swigregister 

vpmanager_swigregister(vpmanager) 

 

# This file is compatible with both classic and new-style classes.