I'm displaying a google static map image (in .png) using IMAGE() function on my local machine which seems to work as expected. But when the same is tried on ESE it displays a grayscale image. To correct this I have tried giving the rgb color vectors as below:
gmap_SIZE_INFO = QUERY_PNG(gmap_file_name, gmap_info_png)gmap_array =READ_PNG(gmap_file_name,rpal,gpal,bpal)a =image(gmap_file_name,RGB_TABLE=[rpal,gpal,bpal])
The above snippet again works fine on PC but gives an error on ESE as :
Mon Apr 25 09:20:52 AM IMAGE: The selected file is in an unknown format. Unable to read file: C:\Exelis\se53\docroot\ese\data\resources\graphics\gmap.png
IMAGE used is :
I'm not exactly sure why image isn't properly when you run this code with ESE. However, I do have a couple of suggestions:
1) Use the BUFFER keyword so that the IMAGE window does not need to pop up.
2) Use the data array instead of the data file when making the call to IMAGE.
gmap_SIZE_INFO = QUERY_PNG(gmap_file_name, gmap_info_png)gmap_array =READ_PNG(gmap_file_name,rpal,gpal,bpal)a =image(gmap_array,RGB_TABLE=[rpal,gpal,bpal], /BUFFER)
Actually, I didn't get it but will definitely study on it. I decided that I consider it my assignment and will do my assignment properly and will let you know after completing it
Sign Up for News & Updates: Stay informed with the latest news, events, technologies and special offers.