-
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
CF file handler support for YAML-defined datasets is incomplete #3056
Comments
My guess is that Satpy doesn't know to load |
But it does know how to load it. The load call is successful. It's just |
Replacing
|
What does |
I didn't say replace it, I said create the new file with that sensor_name. You've created a visir.yaml that says that it has a parent sensor config called visir. |
I tried adding a second file Is the sensor attribute important? |
Yeah, the sensors are given to the composite config loading to know which YAML files to load. From your log we can see it is loading "fci" so it is finding "fci.yaml" based on the sensor name(s) and "visir.yaml" based on the fci.yaml file listing it as a parent. The available names does create a separate dependency tree from the main Scene dependency tree, but it shouldn't be coming up with completely different results. Let me see if I can run your code and figure this out. |
Oh I'd need your NetCDF file though. |
The problem is that the |
The reader should be taking its sensor information from the file handlers if they exist. Since you do have a file handler, then it should be taking that information from the file handler. And we see that is true since Thanks for the file. Let me try this out. |
So I had to change the example from 3km to 10km, but not a big deal. Here is what the reader is saying is available inside the available composite method:
So the I kept debugging and it looks like the loading of the variable is "bugged" in a sense. Or rather, the variable being listed as not available is the bug, but the file handler is able to load it anyway. When it comes to |
Here we go, you're doing something that isn't supported: satpy/satpy/readers/satpy_cf_nc.py Lines 232 to 235 in c2cbf3f
This for loop should, technically, be checking if the file type matches and if so check if "nc_store_name" or "name" of the configured datasets are in the file. Then |
Should this "not supported" be considered a bug / wart / missing feature in the satpy CF filehandler, or in the YAML configuration for my local reader that uses the CF filehandler? |
I would consider it a missing feature of the CF file handler. It does not support YAML-defined datasets. |
Describe the bug
A custom composite depending on a custom reader using
SatpyCFFileHandler
is not shown when I callavailable_composite_ids()
oravailable_composite_names()
. However, the YAML-defined dataset is still loadable.To Reproduce
Expected behavior
I expect that
available_composite_ids()
shows all composites that can be loaded.Actual results
Environment Info:
Additional context
The text was updated successfully, but these errors were encountered: