Exemplo n.º 1
0
    def pre_scan_setup(self):
        IRMicroscopeBase2DScan.pre_scan_setup(self)

        # Based on winspec_readout measurement
        self.ccd_measure.interrupt()

        #Reconnect to winspec (Clears Server Buffer)
        self.ccd_measure.winspec_hc.settings['connected'] = False
        time.sleep(0.2)
        self.ccd_measure.winspec_hc.settings['connected'] = True
        time.sleep(0.2)

        # Setup data structures
        self.map_shape = (*self.scan_shape, 1024)
        self.px_index = np.arange(self.map_shape[-1])
        self.wls = self.px_index

        if self.settings['save_h5']:
            self.hyperspectral_map_h5 = self.h5_meas_group.create_dataset(
                'hyperspectral_map',
                shape=self.map_shape,
                dtype=float,
                compression='gzip')
            self.integrated_count_map_h5 = self.h5_meas_group.create_dataset(
                'integrated_count_map',
                shape=self.scan_shape,
                dtype=float,
                compression='gzip')
            self.wls_h5 = self.h5_meas_group.create_dataset('wls',
                                                            shape=(1024, ),
                                                            dtype=float,
                                                            compression='gzip')
Exemplo n.º 2
0
 def pre_scan_setup(self):
     AndorHyperSpec2DScanBase.pre_scan_setup(self)
     IRMicroscopeBase2DScan.pre_scan_setup(self)
Exemplo n.º 3
0
 def pre_scan_setup(self):
     IRMicroscopeBase2DScan.pre_scan_setup(self)
     TRPL2DScanBase.pre_scan_setup(self)