Exemple #1
0
 def create_scene(satname, satnumber, instrument, time_slot, orbit,
                  area=None, variant=''):
     """Create a compound satellite scene.
     """
     
     satellite = (satname, satnumber, variant)
     
     instrument_scene = SatelliteInstrumentScene(satellite=satellite,
                                                 instrument=instrument,
                                                 area=area,
                                                 orbit=orbit,
                                                 time_slot=time_slot)
     
     compositer = get_sat_instr_compositer(satellite, instrument)
     instrument_scene._CompositerClass = compositer
     
     if compositer is not None:
         # Pass weak ref to compositor to allow garbage collection
         instrument_scene.image = compositer(weakref.proxy(instrument_scene))
     return instrument_scene 
Exemple #2
0
    def create_scene(satname, satnumber, instrument, time_slot, orbit,
                     area=None, variant=''):
        """Create a compound satellite scene.
        """

        satellite = (satname, satnumber, variant)

        instrument_scene = SatelliteInstrumentScene(satellite=satellite,
                                                    instrument=instrument,
                                                    area=area,
                                                    orbit=orbit,
                                                    time_slot=time_slot)

        compositer = get_sat_instr_compositer(satellite, instrument)
        instrument_scene._CompositerClass = compositer

        if compositer is not None:
            # Pass weak ref to compositor to allow garbage collection
            instrument_scene.image = compositer(
                weakref.proxy(instrument_scene))
        return instrument_scene