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

Home » Public Forums » archive » diferent results in program and envi
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
diferent results in program and envi [message #55120] Wed, 01 August 2007 01:58
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: .full_reset_session causing a seg fault
Next Topic: Reading and Plotting big txt. File

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

Current Time: Fri Oct 10 06:31:41 PDT 2025

Total time taken to generate the page: 0.95814 seconds