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

Home » Public Forums » archive » Re: Batch ENVI Resize Data (Spatial/Spectral)
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: Batch ENVI Resize Data (Spatial/Spectral) [message #71226 is a reply to message #71219] Fri, 04 June 2010 08:35 Go to previous messageGo to previous message
titan is currently offline  titan
Messages: 59
Registered: March 2006
Member
Ah ok..now I understand but It seems that it doesn't work like the tab
does
this is my code:
;; OPEN THE BIGGER IMAGE
ENVI_OPEN_FILE, AMSRE_asc_fname, R_FID=amsre_asc_r_fid, /
NO_INTERACTIVE_QUERY,/NO_REALIZE
ENVI_FILE_QUERY,amsre_asc_r_fid, DIMS=amsre_asc_dims, NS=amsre_asc_ns,
NL=amsre_asc_nl, NB=amsre_asc_nb

AMSRE_asc_img=ENVI_GET_DATA(FID=amsre_asc_r_fid,DIMS=amsre_a sc_dims,
POS=0)
AMSRE_asc_map_info=ENVI_GET_MAP_INFO(FID=amsre_asc_r_fid)
AMSRE_asc_proj=ENVI_GET_PROJECTION(FID=amsre_asc_r_fid,PIXEL _SIZE=amsre_asc_ps)
output_pixel_size=[1000.000, 1000.000];

I want to resize the image where there is Italy; I did a first test
using matrix inserting the sample and lines values obtained using the
RESIZE tab function but the result is not correct because I find an
image of 54x52x1 while using the tab resize function the file that I
get is 1304x1278
;;--------- Test using matrix: -----------------
AMSRE_italy=AMSRE_asc_img[715:768,72:123]
mc_italy_proj=[0.0D,0.0D,589086.84,5564990.5]
output_italy_proj = ENVI_MAP_INFO_CREATE(PROJ=AMSRE_asc_proj,
PS=output_pixel_size, MC=mc_italy_proj)
ENVI_ENTER_DATA,
AMSRE_italy,MAP_INFO=output_italy_proj,PIXEL_SIZE=output_pix el_size,$
BNAMES='AMSRE_Italy',R_FID=amsre_italy_r_fid
;;-------------------------------------------

italia_dims=LONG([-1,0,1303,0,1277])
italy_r_fact=[1.0,1.0]
ENVI_DOIT, 'RESIZE_DOIT', FID=amsre_asc_r_fid, DIMS=italia_dims,
POS=0,$
INTERP=0, RFACT=italy_r_fact, /IN_MEMORY,
R_FID=italy_resize_r_fid


Using the RESIZE DOIT how can I tell ENVI to take only the part that I
need obtaining a file of 1304x1278??
I hope that I'm clear..

thank you
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CONTOUR: how to get rid of that zero tick name?
Next Topic: Testing if HDF5 file is corrupt

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

Current Time: Thu Oct 09 20:55:17 PDT 2025

Total time taken to generate the page: 1.43911 seconds