ASDM¶
-
class
ASDM[source]¶ Bases:
objectThe ASDM class is the container for all tables. Its instantation create a complete set of tables.
Adapted from the Java and c++ code.
Generated from model’s revision -1, branch
Methods Summary
addTableRowToXML(xmlstr, atable)Appends the XML row for the given table to the given XML string, returning the new XML string.
fromXML(xmlstr)Parses the XML representation of an ASDM stored in a string and fills this (supposedly empty) with the result of the parsing.
getAlmaRadiometer()Get the AlmaRadiometer table.
getAnnotation()Get the Annotation table.
getAntenna()Get the Antenna table.
getCalAmpli()Get the CalAmpli table.
getCalAntennaSolutions()Get the CalAntennaSolutions table.
getCalAppPhase()Get the CalAppPhase table.
getCalAtmosphere()Get the CalAtmosphere table.
getCalBandpass()Get the CalBandpass table.
getCalCurve()Get the CalCurve table.
getCalData()Get the CalData table.
getCalDelay()Get the CalDelay table.
getCalDevice()Get the CalDevice table.
getCalFlux()Get the CalFlux table.
getCalFocus()Get the CalFocus table.
getCalFocusModel()Get the CalFocusModel table.
getCalGain()Get the CalGain table.
getCalHolography()Get the CalHolography table.
getCalPhase()Get the CalPhase table.
getCalPointing()Get the CalPointing table.
getCalPointingModel()Get the CalPointingModel table.
getCalPosition()Get the CalPosition table.
getCalPrimaryBeam()Get the CalPrimaryBeam table.
getCalReduction()Get the CalReduction table.
getCalSeeing()Get the CalSeeing table.
getCalWVR()Get the CalWVR table.
getConfigDescription()Get the ConfigDescription table.
getCorrelatorMode()Get the CorrelatorMode table.
getDataDescription()Get the DataDescription table.
getDelayModel()Get the DelayModel table.
getDelayModelFixedParameters()Get the DelayModelFixedParameters table.
getDelayModelVariableParameters()Get the DelayModelVariableParameters table.
getDirectory()returns the directory used in the setFromFile call.
getDoppler()Get the Doppler table.
getEntity()getEphemeris()Get the Ephemeris table.
getExecBlock()Get the ExecBlock table.
getFeed()Get the Feed table.
getField()Get the Field table.
getFlag()Get the Flag table.
getFlagCmd()Get the FlagCmd table.
getFocus()Get the Focus table.
getFocusModel()Get the FocusModel table.
getFreqOffset()Get the FreqOffset table.
getFromXML(directory)Get an ASDM dataset, given the full path name of the directory containing the XML version of the dataset.
getGainTracking()Get the GainTracking table.
getHistory()Get the History table.
getHolography()Get the Holography table.
getMain()Get the Main table.
getObservation()Get the Observation table.
getPointing()Get the Pointing table.
getPointingModel()Get the PointingModel table.
getPolarization()Get the Polarization table.
getProcessor()Get the Processor table.
getPulsar()Get the Pulsar table.
getReceiver()Get the Receiver table.
getSBSummary()Get the SBSummary table.
getScale()Get the Scale table.
getScan()Get the Scan table.
getSeeing()Get the Seeing table.
getSource()Get the Source table.
getSpectralWindow()Get the SpectralWindow table.
getSquareLawDetector()Get the SquareLawDetector table.
getState()Get the State table.
getStation()Get the Station table.
getSubscan()Get the Subscan table.
getSwitchCycle()Get the SwitchCycle table.
getSysCal()Get the SysCal table.
getSysPower()Get the SysPower table.
getTable(tableName)Get the table by name.
getTimeOfCreation()Get timeOfCreation.
getTotalPower()Get the TotalPower table.
getVLAWVR()Get the VLAWVR table.
getVersion()Get version.
getWVMCal()Get the WVMCal table.
getWeather()Get the Weather table.
getXmlnsPrefix()Get xmlnsPrefix.
setEntity(e)setFromFile(directory)Reads and parses a collection of files as those produced by the toFile method.
setTimeOfCreation(timeOfCreation)Set timeOfCreation with the specified ArrayTime value.
setVersion(version)Set version with the specified int value.
setXmlnsPrefix(xmlnsPrefix)Set xmlnsPrefix with the specified str value.
status()toFile(directory)Write this ASDM dataset to the specified directory as a collection of files.
toXML()Produces the XML representation of this.
Methods Documentation
-
addTableRowToXML(xmlstr, atable)[source]¶ Appends the XML row for the given table to the given XML string, returning the new XML string.
-
fromXML(xmlstr)[source]¶ Parses the XML representation of an ASDM stored in a string and fills this (supposedly empty) with the result of the parsing. param xmlstr The XML of the ASDM as a string.
-
getAlmaRadiometer()[source]¶ Get the AlmaRadiometer table. return The table AlmaRadiometer as a AlmaRadiometerTable.
-
getAnnotation()[source]¶ Get the Annotation table. return The table Annotation as a AnnotationTable.
-
getCalAntennaSolutions()[source]¶ Get the CalAntennaSolutions table. return The table CalAntennaSolutions as a CalAntennaSolutionsTable.
-
getCalAppPhase()[source]¶ Get the CalAppPhase table. return The table CalAppPhase as a CalAppPhaseTable.
-
getCalAtmosphere()[source]¶ Get the CalAtmosphere table. return The table CalAtmosphere as a CalAtmosphereTable.
-
getCalBandpass()[source]¶ Get the CalBandpass table. return The table CalBandpass as a CalBandpassTable.
-
getCalFocusModel()[source]¶ Get the CalFocusModel table. return The table CalFocusModel as a CalFocusModelTable.
-
getCalHolography()[source]¶ Get the CalHolography table. return The table CalHolography as a CalHolographyTable.
-
getCalPointing()[source]¶ Get the CalPointing table. return The table CalPointing as a CalPointingTable.
-
getCalPointingModel()[source]¶ Get the CalPointingModel table. return The table CalPointingModel as a CalPointingModelTable.
-
getCalPosition()[source]¶ Get the CalPosition table. return The table CalPosition as a CalPositionTable.
-
getCalPrimaryBeam()[source]¶ Get the CalPrimaryBeam table. return The table CalPrimaryBeam as a CalPrimaryBeamTable.
-
getCalReduction()[source]¶ Get the CalReduction table. return The table CalReduction as a CalReductionTable.
-
getConfigDescription()[source]¶ Get the ConfigDescription table. return The table ConfigDescription as a ConfigDescriptionTable.
-
getCorrelatorMode()[source]¶ Get the CorrelatorMode table. return The table CorrelatorMode as a CorrelatorModeTable.
-
getDataDescription()[source]¶ Get the DataDescription table. return The table DataDescription as a DataDescriptionTable.
-
getDelayModel()[source]¶ Get the DelayModel table. return The table DelayModel as a DelayModelTable.
-
getDelayModelFixedParameters()[source]¶ Get the DelayModelFixedParameters table. return The table DelayModelFixedParameters as a DelayModelFixedParametersTable.
-
getDelayModelVariableParameters()[source]¶ Get the DelayModelVariableParameters table. return The table DelayModelVariableParameters as a DelayModelVariableParametersTable.
-
getDirectory()[source]¶ returns the directory used in the setFromFile call. This directory is used when the tables are first retrieved if they need to be loaded (on demand). This returns None if the directory has not yet been set.
-
getFocusModel()[source]¶ Get the FocusModel table. return The table FocusModel as a FocusModelTable.
-
getFreqOffset()[source]¶ Get the FreqOffset table. return The table FreqOffset as a FreqOffsetTable.
-
static
getFromXML(directory)[source]¶ Get an ASDM dataset, given the full path name of the directory containing the XML version of the dataset. @param xmlDirectory The full path name of the directory containing this dataset. return The complete dataset that belongs to the container in this directory. raises ConversionException If any error occurs reading the files in the directory or in converting the tables from XML.
-
getGainTracking()[source]¶ Get the GainTracking table. return The table GainTracking as a GainTrackingTable.
-
getHolography()[source]¶ Get the Holography table. return The table Holography as a HolographyTable.
-
getObservation()[source]¶ Get the Observation table. return The table Observation as a ObservationTable.
-
getPointingModel()[source]¶ Get the PointingModel table. return The table PointingModel as a PointingModelTable.
-
getPolarization()[source]¶ Get the Polarization table. return The table Polarization as a PolarizationTable.
-
getSpectralWindow()[source]¶ Get the SpectralWindow table. return The table SpectralWindow as a SpectralWindowTable.
-
getSquareLawDetector()[source]¶ Get the SquareLawDetector table. return The table SquareLawDetector as a SquareLawDetectorTable.
-
getSwitchCycle()[source]¶ Get the SwitchCycle table. return The table SwitchCycle as a SwitchCycleTable.
-
getTable(tableName)[source]¶ Get the table by name. Returns the named table. raises a ValueError if tableName is not a known table.
-
getTotalPower()[source]¶ Get the TotalPower table. return The table TotalPower as a TotalPowerTable.
-
setFromFile(directory)[source]¶ Reads and parses a collection of files as those produced by the toFile method. This dataset is populated with the result of the parsing. param directory The name of the directory containing the files. raises ConversionException If any error occurs while reading the files in the directory or parsing them.
os.path.expanduser is used on directory before directory is used. The expanded version is kept internally and returned and used as necessary.
-
setTimeOfCreation(timeOfCreation)[source]¶ Set timeOfCreation with the specified ArrayTime value. timeOfCreation The ArrayTime value to which timeOfCreation is to be set. The value of timeOfCreation can be anything allowed by the ArrayTime constructor.
-
setVersion(version)[source]¶ Set version with the specified int value. version The int value to which version is to be set.
-
setXmlnsPrefix(xmlnsPrefix)[source]¶ Set xmlnsPrefix with the specified str value. xmlnsPrefix The str value to which xmlnsPrefix is to be set.
-
toFile(directory)[source]¶ Write this ASDM dataset to the specified directory as a collection of files.
The container itself is written into an XML file. Each table of the container having at least one row is written into a binary or an XML file depending on the value of its “fileAsBin” field.
param directory The directory to which this dataset is written. raises ConversionException If any error occurs in converting the container. This method will not overwrite any existing file; a ConversionException is also raised in this case.
-