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

Home » Public Forums » archive » Question on MODIS Conversion Toolkit
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: Question on MODIS Conversion Toolkit [message #70702 is a reply to message #70651] Wed, 28 April 2010 18:29 Go to previous messageGo to previous message
Harry Kim is currently offline  Harry Kim
Messages: 16
Registered: April 2010
Junior Member
Devin,

Sorry for the confusion. out_ps_y was already set to 0.008365. I made
a mistake in re-typing my source code here.

Based on your suggestion, I changed my code using /UTM projection.

However, I got different error message this time saying that...

"Unable to attach to specified grid. Check name against HDF file
contents."

I don't understand. The *.hdf file is in the location designated in
the code.


---------------------------------
PRO MCTK_MOD11
compile_opt idl2

modis_grid_file = 'D:\MYD11A1.A2002191.h28v05.005.2007216150810.hdf'
output_location = 'D:\MODIS11\output'
output_rootname = 'MYD11_TEST'

grid_name = 'MOD_Grid_Daily_1km_LST'
sd_names = ['LST_Day_1km']

out_method = 1

output_projection = envi_proj_create(/UTM) ;/geographic) ;, /
datum=WGS-84)

;ps_x = 0.008365d
;ps_y = 0.008365d

ps_x = 1000.0
ps_y = 1000.0

print, 'Now IDL is making an image!!!'

interpolation_method = 6

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 = 0.008365d, out_ps_y = 0.008365d, num_x_pts=50,
num_y_pts=50, interp_method=interpolation_method ;, $
out_ps_x=ps_x, out_ps_y=ps_y, num_x_pts=50, num_y_pts=50,
interp_method=interpolation_method, $
background = -999

print, 'It is done!'

end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Widget_windows, scrolling and refreshing
Next Topic: Information about scroll action - new position/offset information?

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

Current Time: Fri Oct 10 02:17:28 PDT 2025

Total time taken to generate the page: 1.59868 seconds