Coverage for /wheeldirectory/casa-6.7.0-12-py3.10.el8/lib/py/lib/python3.10/site-packages/casatools/imagemetadata.py: 62%
29 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-10-31 18:48 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-10-31 18:48 +0000
1##################### generated by xml-casa (v2) from imagemetadata.xml #############
2##################### a6949a9b048f9c174974cdafb7d2b5c3 ##############################
3from __future__ import absolute_import
4from .__casac__.imagemetadata import imagemetadata as _imagemetadata
6from .errors import create_error_string
7from .typecheck import CasaValidator as _validator
8_pc = _validator( )
9from .coercetype import coerce as _coerce
12class imagemetadata:
13 _info_group_ = """images"""
14 _info_desc_ = """Operations on imagemetadata"""
15 ### self
16 def __init__(self, *args, **kwargs):
17 """
18 """
19 self._swigobj = kwargs.get('swig_object',None)
20 if self._swigobj is None:
21 self._swigobj = _imagemetadata()
23 def add(self, key='', value=[ ]):
24 """Add a key-value pair if possible.
26 """
27 return self._swigobj.add(key, value)
29 def close(self):
30 """This function closes the image metadata tool. This means that it detaches the
31 tool from its underlying metadata object. Methods cannot be run on it until it
32 is opened with another or the same image.
33 """
34 return self._swigobj.close()
36 def done(self):
37 """This function closes the image metadata tool. This means that it detaches the
38 tool from its underlying metadata object. Methods cannot be run on it until it
39 is opened with another or the same image.
42 """
43 return self._swigobj.done()
45 def get(self, key=''):
46 """Get the value associated with the specified, case-insensitive FITS keyword.
48 """
49 return self._swigobj.get(key)
51 def list(self, verbose=True):
52 """Get a listing of traditional FITS-like "header" items.
54 """
55 return self._swigobj.list(verbose)
57 def open(self, infile):
58 """This method creates access to the specified image's metadata.
61 """
62 return self._swigobj.open(infile)
64 def remove(self, key='', value=[ ]):
65 """Remove or clear the value of a keyword if possible. If key="masks", a value specifying the mask
66 to remove may be specified. If no value is specified, all masks are removed.
68 """
69 return self._swigobj.remove(key, value)
71 def set(self, key='', value=[ ]):
72 """Set a key-value pair if possible.
74 """
75 return self._swigobj.set(key, value)