Fusion Result#

class core.FuseResult[source]#

Class containing the result of Client.fuse()


Status output of the fusion, True indicates a valid return of the fused result


Description of the ‘ok’ status


Directory path to the saved result


Unique ID generated by the fusion process, can be used in file naming


The fusion result returned as a 3 dimensional (x, y, and time) Xarray Dataset containing all fused data layers and attributes properties (described below)


Xarray Dataset

The Xarray Dataset created is a multi-dimensional array allowing for detailed encoding of the included information. Information such as time, geolocation, and the additional information and metadata needed to fully know what the information is that you are handelling. Finally, Xarray provides a powerful selection and processing interface allowing you to take the result of your data fusion, and transform it to your specific needs.


>>> result = client.fuse(catalogs_list = [s1_search_result, s2_search_result, weather_search_result],
                         to_fuse = [custom_raster, custom_vector],
>>> result.dataset

Save the result to a geotiff file


file_path (optional) – Path to target save directory

Default: None


Save the result to a netcdf file


file_path (optional) – Path to target save directory

Default: None

plot_rgb(all_dates=True, brightness_factor=1, date=None)[source]#

Creates an RGB image of the dataset. The red, green, and blue bands are automatically detected, normalized, stacked, and displayed for each date (by default) that there is a Sentinel-2 image.

  • all_dates (bool, optional) – Boolean to plot all dates. If False, only the first date with an S2 image will be plotted

    Default: True

  • brightness_factor (float, optional) – Float to scale the brightness of the image. Values above 1 may be useful for viewing normally dark images

    Default: 1

  • date (str, optional) – String in “YYYY-MM-DD” format to select and plot only a specific date in the fused dataset

    Default: None


Creates a normalized time series of the provided list of variables in the dataset. By default, all variables in the fused dataset are plotted. The time series is created by taking the spatial average at each time for each variable. Then, those values are converted into normalied values and plotted.


variables (list, optional) – List of data variable names in the fuseResult dataset to graph in a time series plot

Default: None

plot_availability(tick_spacing=1, advanced=False)[source]#

Creates a block time series of each variable type (Sentinel-1, Sentinel-2, or Weather) in the dataset for each date. Times with white color indicate no data was available for that variable on that date. In normal mode, blocks with dark blue color indicate data availability. In advanced mode, blocks with any color other than white indicate data availability.

  • tick_spacing (int, optional) – Integer value to indicate the x axis (time) tick interval when plotting the dataset. A 2 indicates that every 2 dates show up as a tick

    Default: 1

  • labeled. (and is) –

  • advanced (bool, optional) – Boolean to enable advanced plot mode. The advanced plot expands all sensors (S1, S2, and Weather) into individual bands, as well as plotting a normalized

    Default: False

  • color (magnitude value as the) –

  • present". (instead of a simple binary "present" or "not) –