comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: diferent results in program and envi
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: diferent results in program and envi [message #55103 is a reply to message #55100] Wed, 01 August 2007 08:04 Go to previous message
Jeff N. is currently offline  Jeff N.
Messages: 120
Registered: April 2005
Senior Member
On Aug 1, 4:58 am, "skymaxw...@gmail.com" <skymaxw...@gmail.com>
wrote:
> Hello. I have some images and some GCP for each. I georeferenced some
> of them by ENVI.
> now i want to do this by program. But my results are different. Why ?
> Here is fragment of my source code
>
> ;;;;;;;;;;;;;;;;;;
> ...
> pts0=[[geo_points[0,0],geo_points[1,0],0.0,0.0],$
> [geo_points[0,1],geo_points[1,1],ns-1,0.0],$
> [geo_points[0,2],geo_points[1,2],0.0,nl-1],$
> [geo_points[0,3],geo_points[1,3],ns-1,nl-1],$
> print,'pts0'
> print,pts0
>
> ;units=ENVI_TRANSLATE_PROJECTION_UNITS('Degrees')
> proj=ENVI_PROJ_CREATE(/GEOGRAPHIC)
> pixel_size=[0.00011710,0.00009006]
> ;proj=ENVI_PROJ_CREATE(/UTM,ZONE=UTM_Zone,DATUM='WGS-84')
>
> ENVI_DOIT,'ENVI_REGISTER_DOIT',$
> W_FID=fid,$
> W_POS=pos,$
> W_DIMS=dims,$
> METHOD=5,$
> PIXEL_SIZE=pixel_size,$
> PTS=pts0,$
> PROJ=proj,$
> R_FID=r_fid,$
> OUT_NAME='D:\pts0',$
> OUT_BNAME='my transform'
> ;;;;;;;;;;;;;;;;;;;;;;;;;
>
> and another question how define pixel size by my program?
>
> Thanks

How are the results different? How do you know which answer is the
right one? (in other words: what if you're doing it wrong by hand?)
And aren't you defining a pixel size in the code you just posted? Or
are you asking how to calculate it I guess?

Jeff
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: plot axis problem?
Next Topic: Problem with large .txt file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 02:26:23 PDT 2025

Total time taken to generate the page: 0.79945 seconds