Пример #1
0
    def do_draw(self, action, geo_json):
        current_band = measures.band_list[measures.band_index2]
        year_range = measures.year_range
        doy_range = measures.doy_range
        _col, _df = utils.handle_draw(action, geo_json, current_band, 
                                      year_range, doy_range)
        measures.click_geojson = geo_json
        measures.click_df = _df
        measures.click_col = _col
        
        # Disable ts collection checkbox but calculate box in the background
        measures.click_train.value = False
        measures.click_trainbox = utils.calculate_clicked_bbox(geo_json)
        measures.lc6.x = []
        measures.lc6.y = []
        measures.lc7.x = []
        measures.lc7.y = []
        measures.lc3.x = measures.click_df['datetime']
        measures.lc3.y = measures.click_df[current_band]
        measures.valid.value = False
        measures.description = 'Not Saved'

        if measures.color_check.value is False:
            measures.lc3.colors = list(measures.point_color)
        else:
            measures.lc3.colors = list(measures.click_df['color'].values)
Пример #2
0
    def do_draw(self, action, geo_json):
        current_band = TSTools.band_list[TSTools.band_index2]
        doy_range = TSTools.doy_range
        _col, _df = utils.handle_draw(action, geo_json, current_band,
                                      list(TSTools.xlim2.value), doy_range)
        TSTools.click_geojson = geo_json
        TSTools.click_df = _df
        TSTools.click_col = _col

        TSTools.plot_ts(TSTools.lc3, 'ts')
        TSTools.plot_ts(TSTools.lc8, 'doy')
Пример #3
0
    def do_draw(self, action, geo_json):
        current_band = measures.band_list[measures.band_index2]
        year_range = measures.year_range
        doy_range = measures.doy_range
        _col, _df = utils.handle_draw(action, geo_json, current_band,
                                      year_range, doy_range)
        measures.click_df = _df
        measures.click_col = _col
        measures.lc6.x = []
        measures.lc6.y = []
        measures.lc7.x = []
        measures.lc7.y = []

        measures.lc3.x = measures.click_df['datetime']
        measures.lc3.y = measures.click_df[current_band]

        if measures.color_check.value == False:
            measures.lc3.colors = list(measures.point_color)
        else:
            measures.lc3.colors = list(measures.click_df['color'].values)