X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 13 Aug 2013 02:38 AM by  anon
Map's xrange and yrange problem?
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
13 Aug 2013 02:38 AM
    Hi guys: I write the fellowing code to test map' xrange and yrange using IDL 8.2.3. With 'Stereographic' projection and disabling window' refresh, the map's xrange and yrange equal [0,0]. But for other projection (like Lambert) or enabled window' refresh, the map's xrange and yrange is OK. So why? How can I solve this problem? Very thanks! PRO test_map w = window() w.refresh, /disable mp_bg = MAP('Stereographic', /current, $ CENTER_LONGITUDE=110, $ CENTER_LATITUDE=90) OLDXRANGE = mp_bg.xrange OLDYRANGE = mp_bg.yrange print, OLDXRANGE, OLDYRANGE mp_bound = MAPCONTINENTS(/COUNTRIES, COLOR='BLACK') w.refresh mp_bg.xrange = OLDXRANGE mp_bg.yrange = OLDYRANGE stop w.erase w.refresh, /disable mp_bg = MAP('Lambert Conformal Conic', /current, $ STANDARD_PAR1=20, $ STANDARD_PAR2=30, $ limit=[0,60,50,130]) OLDXRANGE = mp_bg.xrange OLDYRANGE = mp_bg.yrange print, OLDXRANGE, OLDYRANGE mp_bound = MAPCONTINENTS(/COUNTRIES, COLOR='BLACK') w.refresh mp_bg.xrange = OLDXRANGE mp_bg.yrange = OLDYRANGE END

    Deleted User



    New Member


    Posts:
    New Member


    --
    14 Aug 2013 10:22 AM
    Hi Dai, This issue has been reported and it's in our system. The problem also seems to be solved and hopefully will be ready in one of the next releases of IDL. The workaround at the moment will be to not disable window updates, or to set the LIMIT after re-enabling updates manually. Thank you very much for letting us know about it! Cheers, Fernando

    Deleted User



    New Member


    Posts:
    New Member


    --
    15 Aug 2013 07:03 AM
    It is possible you might be able to find a fix here: http://www.idlcoyote.com/ng_tips/refreshbug.php
    You are not authorized to post a reply.