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
variable from python to composite #1832
Comments
Not really. The information in the YAML is meant to be static (unchanging). You could convert your DataArray to an image and do the enhancement yourself. Something like this:
We set |
@djhoese work perfect, see image when i do img.show() |
Double check what you did with |
@djhoese thanks, I did both, now again as you say During handling of the above exception, another exception occurred: Traceback (most recent call last): |
@djhoese I have it now and is looking good, thanks for sofar local_scn['my_channel'] = img.data |
Sounds like you were able to make it work. If so, I'm going to close this. If not, please comment and we can reopen this. |
Is it possible to use an varaibale in Python to use in generic.yaml composite.
For example:
colorized_ir_clouds:
standard_name: colorized_ir_clouds
operations:
- name: colorize
method: !!python/name:satpy.enhancements.colorize
kwargs:
palettes:
- {colors: rainbow, min_value: 190.15, max_value: 310.14}
- {colors: blues, min_value: 310.15, max_value: 350.15}
Is it possible to use a variable in Python that change the min_value and max_value of the palettes -> colors from the script.
When yes, can you tell me how to handle.
The text was updated successfully, but these errors were encountered: