Hi everyone,
I am having some issue when I call the function ENVI_CONVERT_FILE_MAP_PROJECTION in my code.
Basically I am trying to convert a MODIS ET product from sinusoidal to a UTM projection.
ENVI_OPEN_FILE, filename(i), r_fid=fid
ENVI_FILE_QUERY, fid, dims=dims
map_info = envi_get_map_info(fid=fid)
;define the output projection
o_pixel_size = [1000.0, 1000.0]
datum='WGS-84'
units = ENVI_TRANSLATE_PROJECTION_UNITS('m')
o_proj = envi_proj_create(/utm, datum=datum, zone=40, units=units)
out_name='C:\Desktop\ET\test.tif'
ENVI_CONVERT_FILE_MAP_PROJECTION,fid=fid, dims=dims, o_proj=o_proj,o_pixel_size=o_pixel_size, grid=[25,25], $
out_name=out_name, warp_method=2, resampling=0, background=0
I get this error:
reg_warp_doit
Variable is undefined WL.
Any clue?
I cannot find nor the function reg_warp_doit neither the WL variable.
I checked on the forum and somebody else got the same problem (but no answer).
http://www.exelisvis.com/...e/posts/Default.aspx