I am trying to use satpy to read native file from Eumetsat. However, I am getting errors when trying to read my file even after reading from multiple sources and using examples. the file is stored in this directory; C:/Users/nk22017786/Desktop/satellite/MSG4-SEVI-MSG15-0100-NA-20190615165742.199000000Z-NA
fnames = glob('C:/Users/nk22017786/Desktop/satellite/MSG4-SEVI-MSG15-0100-NA-20190615165742.199000000Z-NA.nat')
scn = Scene(filenames=[fnames], reader="seviri_l1b_native", reader_kwargs={'fill_disk': True})
scn.load(['VIS006'], upper_right_corner='NE')
print(scn['VIS006'])type here
I tried this too;
filenames = ['MSG4-SEVI-MSG15-0100-NA-20190313151244.440000000Z-NA.nat']
global_scene = Scene(reader='seviri_l1b_native', filenames=[filenames])
global_scene.load(['VIS006'])
type here
error;AttributeError: 'list' object has no attribute 'decode'
tried this again
filenames = ['MSG4-SEVI-MSG15-0100-NA-20190313151244.440000000Z-NA']
scn = Scene(filenames=filenames, reader='seviri_l1b_native')
scn.load(['VIS006', 'IR_108'], upper_right_corner='NE')
print(scn['IR_108']type here
error;No filenames found for reader: seviri_l1b_native Don't know how to open the following files: {'MSG4-SEVI-MSG15-0100-NA-20190313151244.440000000Z-NA'}
As mentionned in the comments, in the two first examples you are passing a list of list of files, which satpy doesn't like.
The last snippet should work if you provide the extension of the file also, as in:
filenames = ['MSG4-SEVI-MSG15-0100-NA-20190313151244.440000000Z-NA.nat']
scn = Scene(filenames=filenames, reader='seviri_l1b_native')
scn.load(['VIS006', 'IR_108'], upper_right_corner='NE')