map projection [message #62571] |
Mon, 22 September 2008 10:18  |
xiao zhang
Messages: 81 Registered: June 2008
|
Member |
|
|
Does any one have good ideas about adjusting the same map projection
from C to IDL?
I have a 800*800 in Polar Stereographic in C and trying to adjust it
in to IDL, but always cannot find the perfect match. :( Thank you
|
|
|
Re: map projection [message #62715 is a reply to message #62571] |
Mon, 22 September 2008 18:13  |
xiao zhang
Messages: 81 Registered: June 2008
|
Member |
|
|
On Sep 22, 12:25 pm, David Fanning <n...@dfanning.com> wrote:
> xiao writes:
>> Does any one have good ideas about adjusting the same map projection
>> from C to IDL?
>> I have a 800*800 in Polar Stereographic in C and trying to adjust it
>> in to IDL, but always cannot find the perfect match. :(
>
> Should be no problem with this if you are using
> the MAP_PROJ_**** routines. We do this routinely
> here.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Thanks David. but i still got a question, what is the difference
between these lines:
map=MAP_PROJ_INIT('Cylindrical',center_longitude=117.5,cente r_latitude=-32.5,limit=[lat_min,lon_min,lat_max,lon_max])
r= MAP_PROJ_FORWARD([lon_min,lon_max],[lat_min,lat_max],/
fill,MAP_STRUCTURE=map)
result=map_proj_image(a1,
[lon_min,lat_min,lon_max,lat_max],MAP_STRUCTURE=map, missing=0)
MAP_GRID,/label,linestyle=0, map_structure=map,
color=FSC_Color('Blue'),GLINETHICK=2,CHARSIZE=2,charthick=2
MAP_CONTINENTS,/HIRES,map_structure=map,
color=FSC_Color('Blue'),MLINETHICK=2
And
Map_set,/continent,/grid,/
noerase,limit=[lat_min,lon_min,lat_max,lon_max],$
charsize = 1.5,COLOR=0,/LABEL,con_color=TrueClrInx(2),xmargin =
[5,5],ymargin = [4,4]
I think they should be same, but why they have a such different image?
Thanks :)
|
|
|
Re: map projection [message #62720 is a reply to message #62571] |
Mon, 22 September 2008 10:25  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
xiao writes:
> Does any one have good ideas about adjusting the same map projection
> from C to IDL?
> I have a 800*800 in Polar Stereographic in C and trying to adjust it
> in to IDL, but always cannot find the perfect match. :(
Should be no problem with this if you are using
the MAP_PROJ_**** routines. We do this routinely
here.
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|