Open m-mohr opened 1 year ago
Maybe I'm mistaken but in this usage flow the public=True
and public_url
stuff is not necessary (right?) as the intention is just the same user defining/storing a UDP and using it immediately?
That being said, evaluating a UDP can certainly be streamlined, maybe even like this
udp_sar = connection.save_user_defined_process(
user_defined_process_id="s1_stats",
process_graph=s1_stats,
parameters=[temporal_extent, spatial_extent],
summary="S1 SAR stats",
...
)
sar = udp_sar(
temporal_extent=["2023-05-01", "2023-07-30"],
spatial_extent={"west": 8.82, "south": 44.40, "east": 8.92, "north": 44.45},
)
So, the thing returned by save_user_defined_process
can be called directly as a function (without need for that ugly connection.datacube_from_process()
construct)
Currently, I need to create a datacube from a UDP as follows:
It would be nice if the client could allow to pass the UDP directly: