Satpy help

60 views
Skip to first unread message

Bathobile Maseko

unread,
Sep 7, 2020, 4:28:59 AM9/7/20
to pytroll
Hi There 

I need help with satpy, maybe I should also mention that I am new to python.

I work with Meteosat Second Generation (MSG) satellite data from EUMETSAT, I need help with flipping the data, as currently north is facing down. I used  “ scn.load(['VIS008'], upper_right_corner='NE') ” to flip the data but it didn't work.

During daytime, channel IR3.9 receives energy both from emitted thermal radiation and from reflected solar radiation. My second question is how can I extract the solar component of  IR3.9? I have tried using “scn.load(['IR_039'], calibration=(['reflectance'])) “ and it gave me an error. Is there a way to extract the solar component from IR3.9 using Satpy?

Kind Regards

Bathobile

Martin Raspaud

unread,
Sep 7, 2020, 5:07:56 AM9/7/20
to pyt...@googlegroups.com
Hi Bathobile,

Regarding the first question, the addition to satpy of the flipping
ability is quite recent, so make sure you have tested the latest satpy
(even from github's master branch). If it still doesn't work, please
open an issue on satpy's github, so we can have a closer look together.

Regarding the solar part of the NIR channels, yes satpy can derive this
for you. However, you need to load the data in a different way for this,
as you need to have modifiers applied on the data you load.

So with current master branch, you would do

from satpy.dataset import DataQuery
scene.load(DataQuery(name='IR_039', modifiers=(nir_reflectance,))

or from an older version:

from satpy.dataset import DatasetID
scene.load(DatasetID(name='IR_039', modifiers=(nir_reflectance,))

Best regards,
Martin
> --
> You received this message because you are subscribed to the Google
> Groups "pytroll" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to pytroll+u...@googlegroups.com
> <mailto:pytroll+u...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/pytroll/fe212c27-6b82-49c0-b612-bd4ef8a81529n%40googlegroups.com
> <https://groups.google.com/d/msgid/pytroll/fe212c27-6b82-49c0-b612-bd4ef8a81529n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Bathobile Maseko

unread,
Sep 10, 2020, 4:57:35 AM9/10/20
to pyt...@googlegroups.com
Thank you Martin for the quick response.

I have upgraded satpy to the newer version (0.22.0), as the one I was using was the older version (0.16.1). After the upgrade I was able to derive the solar part of channel IR3.9 using the second option, thank you so much.

With regards to flipping of the data, I still get an error: TypeError: _load_area_def() got an unexpected keyword argument 'upper_right_corner'



To unsubscribe from this group and stop receiving emails from it, send an email to pytroll+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/pytroll/c9c7a00f-ca01-8952-f25a-ead043133749%40smhi.se.
Reply all
Reply to author
Forward
0 new messages