Are there any topics you’d like me to explore on this blog? I still have plenty of ideas, but I’d like to hear from you. Please feel free to send me suggestions at mark.piper@exelisvis.com or leave a comment below. Thanks!
Resources
-
Recent Posts
Recent Tweets
- Attend VISualize & take advantage of our #Landsat 8 one-day seminar w/ Jim Irons from LDCM! ow.ly/lcULP 6 hours ago
- Read “#Landsat 8 Data Reader Included in ENVI 5 Service Pack 3” & find out what’s coming soon! ow.ly/lhT2T 8 hours ago
- You down with NPP? Dave G’s down with NPP! Read his latest post on ImagerySpeaks today! ow.ly/lftxd 9 hours ago
Like Exelis VIS
Tags
(New) Graphics AGU arrays Atle Borsholm code performance control statements Direct Graphics ENVI 5 ENVI programming GRIB guest post hashes HDF5 IDL 8 IDL 8.1 IDL 8.2 IDL 8.2.1 IDL 8.2.2 IDLffVideoWrite image implicit Get/SetProperty Jim Pendleton keyword inheritance Linux lists map projections movies MPEG-4 NAME property netCDF NPP Object Graphics OOP PNG PostScript Ron Kneusel science! sorting user group VIIRS VISualize web welcome widget programming WIDGET_WINDOW
Hi Mark,
I would like to hear about GPU programming and IDL. I want to know how OpenCL is connected with IDL. In general, high-speed programming is of interest for me and I guess for many people who needs to process huge volume of data!
I strongly recommend following Mike Galloy and his work on GPULib; Mike has started work on porting GPULib to OpenCL.
I would like to know how to display a map projected image properly. Here is the code to obtain the image I am interested in:
googleStr = “http://maps.googleapis.com/maps/api/staticmap?” + $
“center=40.6000,-105.1000&zoom=12&size=600×600″ + $
“&maptype=terrain&sensor=false&format=png32″
netObject = Obj_New(‘IDLnetURL’)
void = netObject -> Get(URL=googleStr, FILENAME=”googleimg.png”)
Obj_Destroy, netObject
googleImage = Read_Image(‘googleimg.png’)
And here is the map projection information for the image:
proj = “mercator”
ellipsoid = “WGS84″
centerLat = 40.600
centerLon = -105.100
limit = [-84.7500, -180.000, 84.7500, 180.000]
xrange = [-11711131.0D, -11688226.0D]
yrange = [4914254.0D, 4937159.5D]
Here is how I have tried to display it:
obj = Image(googleImage, /BOX_AXES, $
map_projection=proj, ellipsoid=ellipsoid, $
Center_Latitude=centerLat, Center_Longitude=centerLon, $
LIMIT=limit, XRANGE=xrange, YRANGE=yrange, GRID_UNITS=1, $
DIMENSIONS=[700,700], LOCATION=[50,50])
I get a completely blank window. I would appreciate knowing how to do this correctly. My eventual goal is to have the cursor report the latitude and longitude from the image as I move my cursor over it.
This should look similar to the image on this page:
http://www.idlcoyote.com/map_tips/googlemap.php
Thanks,
David