Exemplo n.º 1
0
 def _make_dataset(labels, sources):
     new_dataset = make_dataset(product=tile.product,
                                sources=sources,
                                extent=tile.geobox.extent,
                                center_time=labels['time'],
                                uri=file_path.absolute().as_uri(),
                                app_info=get_app_metadata(config),
                                valid_data=sources[0].extent)
     return new_dataset
Exemplo n.º 2
0
 def _make_dataset(labels, sources):
     assert sources
     dataset = make_dataset(product=output_product,
                            sources=sources,
                            extent=nbar.geobox.extent,
                            center_time=labels['time'],
                            uri=file_path.absolute().as_uri(),
                            app_info=get_app_metadata(config),
                            valid_data=GeoPolygon.from_sources_extents(sources, nbar.geobox))
     return dataset
Exemplo n.º 3
0
 def _make_dataset(labels, sources):
     sources_union = union_points(*[source.extent.to_crs(geobox.crs).points for source in sources])
     valid_data = intersect_points(geobox.extent.points, sources_union)
     dataset = make_dataset(dataset_type=output_type,
                            sources=sources,
                            extent=geobox.extent,
                            center_time=labels['time'],
                            uri=file_path.absolute().as_uri(),
                            app_info=get_app_metadata(config, config['filename']),
                            valid_data=GeoPolygon(valid_data, geobox.crs))
     return dataset
Exemplo n.º 4
0
 def _make_dataset(labels, sources):
     assert sources
     dataset = make_dataset(product=output_product,
                            sources=sources,
                            extent=nbart.geobox.extent,
                            center_time=labels['time'],
                            uri=uri,
                            band_uris=band_uris,
                            app_info=_get_app_metadata(config),
                            valid_data=polygon_from_sources_extents(
                                sources, nbart.geobox))
     return dataset
Exemplo n.º 5
0
 def _make_dataset(labels, sources):
     assert len(sources)
     geobox = nbar.geobox
     source_data = union_points(*[dataset.extent.to_crs(geobox.crs).points for dataset in sources])
     valid_data = intersect_points(geobox.extent.points, source_data)
     dataset = make_dataset(product=output_type,
                            sources=sources,
                            extent=geobox.extent,
                            center_time=labels['time'],
                            uri=file_path.absolute().as_uri(),
                            app_info=get_app_metadata(config),
                            valid_data=GeoPolygon(valid_data, geobox.crs))
     return dataset