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/544dc0fd-ca35-9c96-4deb-2ab2819ab37d%40gmail.com.
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/b0af81f4-8192-6ca1-d617-3eda005567c8%40gmail.com.
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/067b130a-bc20-5ca6-1aa3-2d2815432c43%40gmail.com.
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/5022e8ed-dd81-8e52-d454-e93bea727ddd%40gmail.com.
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/47b30bd1-76ec-7ff7-8ead-751f0df7021b%40gmail.com.
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/49a82f50-e00c-13e9-3d90-0a7d18e78e51%40gmail.com.
Dear David
Now I get it!
I did what you said and it works. In fact I used to following code to resample my scene, add coastlines and color it with my user defined colormap. Thanx for the help!
area = 'Med3'
composite = 'colorized_ir_clouds'
global_scene = Scene(filenames = files, reader = 'seviri_l1b_hrit')
global_scene.load([composite])
resample_method = 'bilinear'
new_scene = global_scene.resample(area, radius_of_influence = 7000, resampler = resample_method, cache_dir='/<mypath2>/cache_dir')
coast = {'coast_dir': '/<mypath3>/aux/',
'color': (0, 0, 0), 'width': 1.0, 'resolution': 'f'}
from trollimage.xrimage import XRImage
from trollimage.colormap import blues
from trollimage.colormap import greys
blues.set_range(193.15, 253.149999)
greys.set_range(253.15, 303.15)
mycmap = blues + greys
img = XRImage(global_scene[composite])
img.colorize(mycmap)
new_scene[composite] = img.data
new_scene.save_dataset(composite,'/<mypath4>/MSG4.png', overlay = coast, enhance=False)
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/eb221a93-667a-ab3c-e585-bca0c525f4a2%40gmail.com.