-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add notebook example showing how to add overlays and decorate an image #45
base: main
Are you sure you want to change the base?
Add notebook example showing how to add overlays and decorate an image #45
Conversation
Signed-off-by: Adam.Dybbroe <[email protected]>
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
I took the liberty of creating a kaggle version of this notebook, maybe you can now embed the resulting image in this notebook? https://www.kaggle.com/martinraspaud/decorate-your-satellite-images-to-make-them-ready |
That's really cool, thanks a lot! |
If you have any additional time, it might be nice to have some explanation of what the various options are doing for each feature-type. Or you could point to the place in pycoast/pydecorate documentation where it is talked about. Yeah, maybe pointing to other docs is the better solution. |
Excellent rework - cannot find a flaw . @christian's template definitely is superior to mine. |
…ecorate. Also add image inline using Martins Kaggle upload Signed-off-by: Adam.Dybbroe <[email protected]>
I agree. I did a bit more explaining and pointing to the Pycoast and Pydecorate RTD pages. |
Many thanks. I just took what you guys did, and put together. But that also takes a little time. But I need for myself as well! |
Signed-off-by: Adam.Dybbroe <[email protected]>
@djhoese @mraspaud @peters77 @pnuu and others interested. Shall we leave this example as it is? I am thinking of showing how to add scale. But adding scale in Satpy is lacking some freedom/flexibility. So, was thinking we could/should make another example discussing adding scale, and then show how that can be done by using Pydecorate, PIL and Trollimage instead? I have no time right now to look at how the adding of scale can/shall be improved in Satpy. But eventually maybe we will have that and can then adapt the example? |
Co-authored-by: Gerrit Holl <[email protected]>
Co-authored-by: Gerrit Holl <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
… of github.com:pytroll/pytroll-examples into add-satpy-example-adding-overlays-and-image-decoration
Signed-off-by: Adam.Dybbroe <[email protected]>
Signed-off-by: Adam.Dybbroe <[email protected]>
Thanks @gerritholl ! I took onboard your suggestions |
Okay for now? I can fix small things today if you like, but on vacation next week. |
@@ -0,0 +1,274 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #1. output_filename=f'seviri_{composite_name:s}_{local_scn.start_time:%Y%m%d_%H%M}_{areaid:s}.tif'
Thoughts on putting a space between the "=" for styling? And maybe instead of printing just doing "output_filename" and letting the notebook handle printing it?
Reply via ReviewNB
Is it possible to add two lines at the top to remove/ignore all warnings? |
Think it is important to collect the various ways one can decorate an image for publication, in one example! This judging from my own experience, and the many questions over the years on slack.
This example was from Christian Peters, many thanks.
I have forgotten how we do with images in the examples. I will be happy to refine the example, and also make it possible to run by uploading the data somewhere or taking some other data we already have in the cloud. Just want a confirmation that this example fits in the current collection?
A smaller version of the final image is here: