pytroll / pytroll-examples

Collection of examples for pytroll satellite data processing
GNU General Public License v3.0
76 stars 34 forks source link

Add notebook example showing how to add overlays and decorate an image #45

Open adybbroe opened 3 years ago

adybbroe commented 3 years ago

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:

seviri_overview_20200923_0815_euro4_small

review-notebook-app[bot] commented 3 years ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

mraspaud commented 3 years ago

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

adybbroe commented 3 years ago

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! We should and will eventually converge on some standard way to publish the example notebooks. For now i will use your kaggle output image at least.

djhoese commented 3 years ago

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.

hproe commented 3 years ago

Excellent rework - cannot find a flaw . @christian's template definitely is superior to mine.

adybbroe commented 3 years ago

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.

I agree. I did a bit more explaining and pointing to the Pycoast and Pydecorate RTD pages.

adybbroe commented 3 years ago

Excellent rework - cannot find a flaw . @christian's template definitely is superior to mine.

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!

adybbroe commented 3 years ago

@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?

adybbroe commented 3 years ago

Thanks @gerritholl ! I took onboard your suggestions

adybbroe commented 3 years ago

Okay for now? I can fix small things today if you like, but on vacation next week. @djhoese @gerritholl , others?

djhoese commented 3 years ago

Is it possible to add two lines at the top to remove/ignore all warnings?