def runEstimateHeights(self):
    from isceobj.Catalog import recordInputsAndOutputs
    chv = []
    for frame, orbit, tag in zip((self._insar.getMasterFrame(),
                                  self._insar.getSlaveFrame()),
                                 (self.insar.masterOrbit,
                                  self.insar.slaveOrbit),
                                 ('master', 'slave')):

        (time, position, velocity, offset) = orbit._unpackOrbit()

        half = len(position)//2 - 1
        xyz = position[half]
        import math
        sch = frame._ellipsoid.xyz_to_sch(xyz)

        chv.append(stdproc.createCalculateFdHeights())
        chv[-1].height = sch[2]

        recordInputsAndOutputs(self.procDoc, chv[-1],
                               "runEstimateHeights.CHV_"+tag, logger,
                               "runEstimateHeights.CHV_"+tag)

    self.insar.fdH1, self.insar.fdH2 = [item.height for item in chv]
    return None
def run(frame, orbit, catalog=None, sceneid='NO_ID'):
    """
    Estimate heights from orbit.
    """
    chv = stdproc.createCalculateFdHeights()
    planet = frame.getInstrument().getPlatform().getPlanet()
    chv(frame=frame, orbit=orbit, planet=planet)
    if catalog is not None:
        isceobj.Catalog.recordInputsAndOutputs(
            catalog, chv, "runEstimateHeights.CHV.%s" % sceneid, logger,
            "runEstimateHeights.CHV.%s" % sceneid)
    return chv
Esempio n. 3
0
def runEstimateHeights(self):
    from isceobj.Catalog import recordInputsAndOutputs
    chv = []
    for frame, orbit, tag in zip(
        (self._insar.getMasterFrame(), self._insar.getSlaveFrame()),
        (self.insar.masterOrbit, self.insar.slaveOrbit), ('master', 'slave')):
        chv.append(stdproc.createCalculateFdHeights())
        chv[-1](frame=frame, orbit=orbit, planet=self.planet)

        recordInputsAndOutputs(self.procDoc, chv[-1],
                               "runEstimateHeights.CHV_" + tag, logger,
                               "runEstimateHeights.CHV_" + tag)

    self.insar.fdH1, self.insar.fdH2 = [item.height for item in chv]
    return None
def run(frame, orbit, catalog=None, sceneid='NO_ID'):
    """
    Estimate heights from orbit.
    """
    (time, position, velocity, offset) = orbit._unpackOrbit()

    half = len(position) // 2 - 1
    xyz = position[half]
    sch = frame._ellipsoid.xyz_to_sch(xyz)

    chv = stdproc.createCalculateFdHeights()
    #    planet = frame.getInstrument().getPlatform().getPlanet()
    #    chv(frame=frame, orbit=orbit, planet=planet)
    chv.height = sch[2]

    if catalog is not None:
        isceobj.Catalog.recordInputsAndOutputs(
            catalog, chv, "runEstimateHeights.CHV.%s" % sceneid, logger,
            "runEstimateHeights.CHV.%s" % sceneid)
    return chv