-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load from blended scene #1749
Comments
Possible workaround by allowing the user to pass a scene. This actually appears to work:
|
This was closed as completed, but doesn't work with current satpy. import hdf5plugin
from glob import glob
from satpy.multiscene import MultiScene, timeseries
from satpy.utils import debug_on; debug_on()
ms = MultiScene.from_files(
glob("/media/nas/x21308/MTG_test_data/2022_05_MTG_Testdata/RC010[012]/*BODY*.nc"),
reader="fci_l1c_nc",
group_keys=["repeat_cycle_in_day"])
channels = ["ir_105", "ir_133", "wv_63", "wv_73"]
sc = ms.blend(blend_function=timeseries)
sc.load(channels) fails with
so I'm reopening this issue. Loading from a blended scene could be a way to implement time-dependent composites. |
I realise what I'm asking for here would be rather difficult to implement... |
This can never work as requested in my latest example, and it wouldn't have to. The approach proposed in #1748; load first, then the actual generation is postponed until after blending, is superior. |
Feature Request
Is your feature request related to a problem? Please describe.
I'm blending
flash_extent_density
from aMultiScene
to get a scene in which I have summed the values over multiple scenes. I cannot load composites from the scene I get back fromMultiScene.blend
.Describe the solution you'd like
I would like to load composites from the blended scene.
Perhaps I could pass an existing scene to
blend()
, that would be populated, rather than always creating a newScene()
. This way, I could first create aScene
that is at least aware of the relevantFileHandler
s, and then maybe it can load the composite when theScene
has been populated byblend
with the necessary dependencies, as far as they aren't loaded directly from disk?Describe any changes to existing user workflow
Not directly, but as with #1748 and #1747, doing this properly may rely on #1469 which may break some user worflow.
Additional context
I'm not sure if loading from a blended scene would be easy to implement cleanly or even solve my problem. I've wanted to load from resampled scenes in the past without luck...
The text was updated successfully, but these errors were encountered: