Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatools/atcafiller.py: 67%
21 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-10-31 17:39 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-10-31 17:39 +0000
1##################### generated by xml-casa (v2) from atcafiller.xml ################
2##################### ed1568f32b8ddecd8445a1bdbc7ff402 ##############################
3from __future__ import absolute_import
4from .__casac__.atcafiller import atcafiller as _atcafiller
6from .errors import create_error_string
7from .typecheck import CasaValidator as _validator
8_pc = _validator( )
9from .coercetype import coerce as _coerce
12class atcafiller:
13 _info_group_ = """atnf"""
14 _info_desc_ = """Filler for ATNF/ATCA RPFITS data"""
15 ### self
16 def __init__(self, *args, **kwargs):
17 """This is used to construct an {tt atcafiller} tool for filling ATCA RPFITS data into a MeasurementSet
18 """
19 self._swigobj = kwargs.get('swig_object',None)
20 if self._swigobj is None:
21 self._swigobj = _atcafiller()
23 def open(self, msname='', filenames=[ ], options=[ ]):
24 """This function does the actual filling of the data from rpfits format
25 files to a MeasurementSet. After the completion of the fill operation
26 you should call the done method to avoid problems with incomplete
27 flushing of the data to disk. You may want to run select before fill, to
28 reduce the amount of data you read in.
30 In the filenames argument commas are not allowed because of the
31 wildcard capability.
33 The options argument allows for special processing options during the
34 filling process.
36 * birdie: remove self generated birdies in 128 MHz
37 data by deleting every other channel and the edge
38 channels
39 * reweight: suppress ringing of interference spikes by
40 reweighting the lag spectrum for minimum spectral sidelobe response
41 * noxycorr: do not apply the xyphase
42 correction using the noise cal xy phase measurements (use if you
43 know there was a problem with the measurements)
44 * compress: Compress the data, model, corrected data and imaging weight
45 columns (may reduce dynamic range)
46 * fastmosaic: Produce a MeasurementSet with small tiles to optimize I/O
47 for observations with a large number of pointings and a short time (a few
48 integrations) on each pointing. Failing to use this options for such data
49 may cause very inefficient access, especially for continuum data
50 (10-100 times slower)
51 * hires: For data taken in binning mode: set the TIME_CENTROID column to
52 the center of each bin (normally center of integration interval). The TIME column is
53 unaffected. TIME_CENTROID will no longer be in time order for dual frequency
54 mode.
55 * noac : Do not load the autocorrelations
56 """
57 return self._swigobj.open(msname, filenames, options)
59 def fill(self):
60 """This function does the actual filling of the data from rpfits format
61 files to a MeasurementSet. You may want to run select before fill, to
62 reduce the amount of data you read in.
63 """
64 return self._swigobj.fill()
66 def select(self, firstscan=int(0), lastscan=int(9999), spw=[ int(-1) ], lowfreq={'value': float(0.1), 'unit': 'GHz'}, highfreq={'value': float(999.0), 'unit': 'GHz'}, fields=[ ], edge=float(8.0)):
67 """Select on various items, to load only a subset of the data present in
68 the input file. The default is to load everything.
69 Note that the frequency selection using lowfreq and highfreq acts purely on
70 center (reference) frequencies, channel selection is not available at this stage.
71 Use freqchain to select the frequency chain (or IF) to load,
72 specify either 1 or 2, the default of zero will load both.
73 Use the fields parameter to specify a list of field names (sources) you
74 want to load.
75 For detailed selection of complex observations the last two parameters let
76 you specify the required bandwidth (in whole MHz) and number of channels
77 of the first frequency chain.
78 """
79 return self._swigobj.select(firstscan, lastscan, spw, lowfreq, highfreq, fields, edge)
81 def opacities(self, fghz=[ ], tempk=float(300.0), humi=float(50.0), press=float(1010.0), height=float(200.0)):
82 """This function does the actual filling of the data from rpfits format
83 files to a MeasurementSet. You may want to run select before fill, to
84 reduce the amount of data you read in.
85 """
86 return self._swigobj.opacities(fghz, tempk, humi, press, height)