LS,
I have a problem with resizing an image in satpy.
Code as follows: (I hope this is enough)
>>>Code start
area = 'msg_ioc_3km' #defined in areas.yaml, size=3712x3712
#resize to 1100x1100
from satpy.resample import get_area_def
sarea=get_area_def(area)
sarea.width=1100
sarea.height=1100
sarea.area_id='resized_1100'
global_scene = Scene(filenames = files, reader = reader)
resampler_kwargs = {'resampler': 'nearest', 'radius_of_influence': 20000, 'reduce_data': False}
new_scene = global_scene.resample(sarea, **resampler_kwargs)
#rest is to create the file:
save_objects = []
save_objects.append()
compute_writer_results(save_objects)
<<<Code end
Result is that the generated image has size 1100x1100, but the content is not resized. As a result about the upper-left part is shown in it's original size, so it looks like a cropped image.
If, instead, I define the size in areas.yaml (near 'shape:') to 1100x1100 then it works fine.
No caching used.
What's going wrong here?
Regards,
Rob.