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

Home » Public Forums » archive » Ayuda para utilizar MCTK para imagenes LST :MOD11A2
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
Ayuda para utilizar MCTK para imagenes LST :MOD11A2 [message #62994] Tue, 21 October 2008 10:39 Go to next message
josephjesus79 is currently offline  josephjesus79
Messages: 1
Registered: October 2008
Junior Member
Quiero georeferenciar imagenes modis de temperatura y estoy utilizando
el programa ejemplo del MCTK.
pro test_batch_modis_conversion_grid
compile_opt idl2
modis_grid_file = 'C:\MOD13A3.A2004061.h10v06.004.2004110184849.hdf'
;The specified output location MUST end in the appropriate path
;separator for your OS
output_location = 'C:\MCTK_Output\'
output_rootname = 'monthly_NDVI'
grid_name = 'MOD_Grid_monthly_1km_VI'
sd_names = ['1 km monthly NDVI','1 km monthly EVI']
;Output method schema is:
;0 = Standard, 1 = Reprojected, 2 = Standard and reprojected
out_method = 1
output_projection = envi_proj_create(/geographic)
;Specify the output X and Y pixel sizes in double precision floating
;point. Sizes must be in units relevant to selected output projection
;(degrees in this example).
out_ps_x = 0.008370d
out_ps_y = 0.008370d
;The interp_method keyword uses the same numbering scheme as
;ENVI_REGISTER_DOIT's METHOD keyword
;Choosing Triangulation with Nearest Neighbor.
interpolation_method = 6
;Set reprojection background and any native fill values to -999
;Setting num_x_pts to 50 and num_y_pts to 50 results in 2500 GCPs.
;That should be more than enough....
convert_modis_data, in_file=modis_grid_file, $
out_path=output_location, out_root=output_rootname, $
/higher_product, /grid, gd_name=grid_name, sd_names=sd_names, $
out_method=out_method, out_proj=output_projection, $
out_ps_x=out_ps_x, out_ps_y=out_ps_y, num_x_pts=50, $
num_y_pts=50, interp_method=interpolation_method, $
background=-999, fill_replace_value=-999, $
r_fid_array=r_fid_array, r_fname_array=r_fname_array
end.

Este programa funciona cuando utilizas el MOD13A3, pero cuando utilizo
el MOD11A2, sale el siguiente error
Attempt to subscript Num_Dims_Array with Valid_SDS is out of range.
Re: Ayuda para utilizar MCTK para imagenes LST :MOD11A2 [message #63262 is a reply to message #62994] Wed, 29 October 2008 12:08 Go to previous message
dlopezaspe is currently offline  dlopezaspe
Messages: 10
Registered: October 2008
Junior Member
On Oct 21, 2:39 pm, josephjesu...@gmail.com wrote:
> Quiero georeferenciar imagenesmodisde temperatura y estoy utilizando
> el programa ejemplo del MCTK.
> pro test_batch_modis_conversion_grid
> compile_opt idl2
> modis_grid_file = 'C:\MOD13A3.A2004061.h10v06.004.2004110184849.hdf'
> ;The specified output location MUST end in the appropriate path
> ;separator for your OS
> output_location = 'C:\MCTK_Output\'
> output_rootname = 'monthly_NDVI'
> grid_name = 'MOD_Grid_monthly_1km_VI'
> sd_names = ['1 km monthly NDVI','1 km monthly EVI']
> ;Output method schema is:
> ;0 = Standard, 1 = Reprojected, 2 = Standard and reprojected
> out_method = 1
> output_projection = envi_proj_create(/geographic)
> ;Specify the output X and Y pixel sizes in double precision floating
> ;point. Sizes must be in units relevant to selected output projection
> ;(degrees in this example).
> out_ps_x = 0.008370d
> out_ps_y = 0.008370d
> ;The interp_method keyword uses the same numbering scheme as
> ;ENVI_REGISTER_DOIT's METHOD keyword
> ;Choosing Triangulation with Nearest Neighbor.
> interpolation_method = 6
> ;Set reprojection background and any native fill values to -999
> ;Setting num_x_pts to 50 and num_y_pts to 50 results in 2500 GCPs.
> ;That should be more than enough....
> convert_modis_data, in_file=modis_grid_file, $
> out_path=output_location, out_root=output_rootname, $
> /higher_product, /grid, gd_name=grid_name, sd_names=sd_names, $
> out_method=out_method, out_proj=output_projection, $
> out_ps_x=out_ps_x, out_ps_y=out_ps_y, num_x_pts=50, $
> num_y_pts=50, interp_method=interpolation_method, $
> background=-999, fill_replace_value=-999, $
> r_fid_array=r_fid_array, r_fname_array=r_fname_array
> end.
>
> Este programa funciona cuando utilizas el MOD13A3, pero cuando utilizo
> el MOD11A2, sale el siguiente error
> Attempt to subscript Num_Dims_Array with Valid_SDS is out of range.

Hola Jose disculpa en que plataforma SO
quieres correr el MCTK.
pro test_batch_modis_conversion_grid
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reading HDF files
Next Topic: Re: array dimension change

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

Current Time: Fri Oct 10 14:07:13 PDT 2025

Total time taken to generate the page: 1.11774 seconds