Open cbincus opened 1 year ago
@cbincus thanks for reporting this! I can reproduce the error with the file you provide. I also tried with another data format (HRIT) and that seems to work fine. So the error could be in the file or in the nat format reader in satpy. @sjoro @ameraner do you have any idea of what could be happening?
Hi @cbincus ,
the issue is solved by using reader_kwargs={'fill_disk': True}
in your Scene
initialisation, like this
# ...
global_scene = Scene(reader='seviri_l1b_native', filenames=filenames, reader_kwargs={'fill_disk': True})
#...
background: the HRV comes in two separate windows, and this sometimes causes problems with its usage. fill_disk
makes sure that the HRV is padded to full-disc during the reading, making it equivalent to the other channels and avoiding this issue.
Output image looks like this in my own test granule - you may want to add radius_of_influence=30e3
to your resample call to fill the gaps.
MCVE to reproduce:
import os
from satpy import Scene
from glob import glob
from pathlib import Path
from satpy.utils import debug_on; debug_on()
fn = "/media/nas/x21308/scratch/data/MSG4-SEVI-MSG15-0100-NA-20220216002743.011000000Z-NA.nat"
sc = Scene(filenames=[fn], reader=["seviri_l1b_native"])
sc.load(["ir_sandwich"])
ls = sc.resample("eurol")
ls["ir_sandwich"].compute()
Describe the bug Satpy fails to generate SEVIRI composites with the HRV channel (e.g., HRV Clouds). Composites that do not require this channel are generated correctly.
To Reproduce
Link to the data file: http://usb.iphoto.md/zpJuc
Expected behavior The composite image is generated correctly.
Actual results
Screenshots Not applicable.
Environment Info:
Additional context None.