def __eq__(self, o): if isinstance(o, QuantumIdentifier): return Index( c.c_void_p( lib.getisotopologue_indexQuantumIdentifier( self.__data__))) == Index( c.c_void_p( lib.getisotopologue_indexQuantumIdentifier( o.__data__))) and self.val == o.val else: return self == QuantumIdentifier(o)
def set(self, o): if isinstance(o, QuantumIdentifier): Index( c.c_void_p( lib.getisotopologue_indexQuantumIdentifier( self.__data__))).set( Index( c.c_void_p( lib.getisotopologue_indexQuantumIdentifier( o.__data__)))) self.val = o.val else: self.set(QuantumIdentifier(o))
def isot(self, o): if isinstance(o, int) or isinstance(o, Index): Index( c.c_void_p( lib.getisotopologue_indexQuantumIdentifier( self.__data__))).set( SpeciesIsotopeRecord.from_index(o).index) else: Index( c.c_void_p( lib.getisotopologue_indexQuantumIdentifier( self.__data__))).set( SpeciesIsotopeRecord(str(o)).index)
def localquantumnumbers(self): """ Local quantum numbers (list of Index) """ n = self.sizelocalquantumnumbers x = [] for i in range(n): x.append( Index( c.c_void_p( lib.getelemLocalQuantaAbsorptionLines( i, self.__data__)))) return x
def isot(self): return SpeciesIsotopeRecord.from_index( Index( c.c_void_p( lib.getisotopologue_indexQuantumIdentifier( self.__data__))))
def np(self): """ Number of points describing the ppath (Index) """ return Index(c.c_void_p(lib.getnpPpath(self.__data__)))
def nchan(self): """ Number of channels in the Atlas (Index) """ return Index(c.c_void_p(lib.getChannelCountTelsemAtlas(self.__data__)))
def idx(self): """ Index of position below point (Index) """ return Index(c.c_void_p(lib.getidxGridPos(self.__data__)))
def pos(self): """ Index of position below point (ArrayOfIndex) """ return Index(c.c_void_p(lib.getposLagrangeInterpolation( self.__data__)))
def spec_ind(self): return Index(c.c_void_p(lib.getspec_indQuantumIdentifier(self.__data__)))
def cia_dataset_index(self): return Index(c.c_void_p(lib.getcia_dataset_indexSpeciesTag(self.__data__)))
def spec_ind(self): return Index(c.c_void_p(lib.getspec_indSpeciesTag(self.__data__)))
def month(self): """ Month of the Atlas (Index) """ return Index(c.c_void_p(lib.getMonthTelsemAtlas(self.__data__)))
def nb_outputs(self): """ (Index) """ return Index(c.c_void_p(lib.getnb_outputsTessemNN(self.__data__)))
s.val = "Hej" assert s == "Hej", "Bad write" s.set(String("Help")) assert s == "Help", "Bad write" i.val = 3 assert i == 3, "Bad write" i.set(5) assert i == 5, "Bad write" n.val = 3.5 assert n == 3.5, "Bad write" n.set(3.14) assert n == 3.14, "Bad write" s2 = String(0) s.savexml("tmp.s.xml", "binary") s2.readxml("tmp.s.xml") assert s == s2 i2 = Index(0) i.savexml("tmp.i.xml", "binary") i2.readxml("tmp.i.xml") assert i == i2 n2 = Numeric(0) n.savexml("tmp.n.xml", "binary") n2.readxml("tmp.n.xml") assert n == n2
def nb_cache(self): """ (Index) """ return Index(c.c_void_p(lib.getnb_cacheTessemNN(self.__data__)))
def dim(self): """ Atmospheric dimensionality (Index) """ return Index(c.c_void_p(lib.getdimPpath(self.__data__)))
def analytical(self): """ (Index) """ return Index( c.c_void_p(lib.getAnalyticalRetrievalQuantity(self.__data__)))
def ndat(self): """ Number of lines in the Atlas (Index) """ return Index(c.c_void_p(lib.getDataCountTelsemAtlas(self.__data__)))