comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Mercator Map Projection Image and Contour "Bleeding" Problem

Mercator Map Projection Image and Contour "Bleeding" Problem
type: item
description: Hello everyone, What I'm trying to do is to create a contour/image and have it appear on a map projection. The latitudes in my dataset are seperated by 5 degrees, beginning at -87.5, and ending at +87.5. Similarly, the longitudes that I'm using are seperated 5 degrees, beginning at -180, and ending at +180. I first noticed the bleeding when I attempted to contour my data to a map projection, and while the contours would appear in the northern hemisphere, they would be overwritten in the southern hemisphere from what appeared to be northern hemisphere equitorial data. Frustrated, I decided to try the map_patch() routine instead, and use it to create an image of my data and overlay it onto the projection. Strangely, I got the same results. However, the image will display correctly for any other map projection that I choose. In case I haven't been clear enough describing my problem, I have attached below a program that demonstrates it. Simply run the program, and an image will be displayed showing my issue. Unfortunately, I've only been able to test it on IDL Versions 5.5 and 5.6, with the same results. ANY help, insight, advice, or experience with a similar problem would be greatly appreciated, and I would be eternally grateful. Thanks, Justin Bronn ;;BEGIN TEST_MERCATOR PROCEDURE pro test_mercator $ , MERCATOR=mercator, CYLINDRICAL=cylindrical $ , NORTH_POLAR=north_polar, SOUTH_POLAR=south_polar ;;Setting the lats array, and associated variables lats = [-87.5, -82.5, -77.5, -72.5, -67.5, -62.5, -57.5, -52.5, $ -47.5, -42.5, -37.5, -32.0, -27.5, -22.5, -17.5, -12.5, $ -7.5, -2.5, 2.5, 7.5, 12.5, 17.5, 22.5, 27.5, 32.5, $ 37.5, 42.5, 47.5, 52.5, 57.5, 62.5, 67.5, 72.5, 77.5, $ 82.5, 87.5] num_lats = n_elements(lats) min_lat = min(lats) max_lat = max(lats) ;;Setting the lons array and associated variables lons = [-180.0, -175.0, -170.0, -165.0, -160.0, -155.0, -150.0, $ -145.0, -140.0, -135.0, -130.0, -125.0, -120.0, -115.0, $ -110.0, -105.0, -100.0, -95.0, -90.0, -85.0…
creator: jbronn
date: 2003-09-22T22:16:30-00:00