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

Home » Public Forums » archive » Re: Message error after 200 iterations using MCTK in IDL
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
Re: Message error after 200 iterations using MCTK in IDL [message #67341] Thu, 16 July 2009 01:52
laureroupioz is currently offline  laureroupioz
Messages: 6
Registered: July 2009
Junior Member
Hello David and Devin,

Thank you for your answers, I will have a look to the new version.

Cheers.

Laure.
Re: Message error after 200 iterations using MCTK in IDL [message #67352 is a reply to message #67341] Wed, 15 July 2009 06:25 Go to previous message
devin.white is currently offline  devin.white
Messages: 50
Registered: March 2007
Member
The latest version of MCTK includes a fix for this issue, which
actually relates to a limitation in the underlying HDF library used by
MCTK. If you go to the Code Library section of the ITT VIS website
and search for "MODIS", you'll find an entry for MCTK that includes a
download link.


On Jul 15, 9:10 am, laureroupioz <laureroup...@gmail.com> wrote:
> Hello,
>
> I'm using the command convert_modis_data in order to convert and
> reproject my MCD43B3*.hdf products.
> I have 276 files (6 tiles for every 8 days products), the script runs
> well for 200 files and then gives this message error: "unable to
> attach to specified grid. Check name against HDF file contents" and
> then: "Attempt to call undefined procedure/function: 'EOS_GD_CLOSE'."
> Different runs have been performed changing the order of the processed
> files in order to exclude the possibility of a problem coming from a
> particular dataset.
> To avoid a memory problem, each dataset converted and reprojected is
> removed immediatly for the ENVI 'avalaible bands list' window.
>
> Here is an part of the script used:
>
> convert_modis_data, IN_FILE=grid_file, $
>   OUT_PATH=pathout, OUT_ROOT=output_rootname, $
>   /higher_product, /grid, SD_NAMES=sd_names, GD_NAME = grid_name, $
>   OUT_METHOD=out_method, OUT_PROJ=output_projection, $
>   NUM_X_PTS=50, NUM_Y_PTS=50, INTERP_METHOD=interpolation_method, $
>   BACKGROUND=-10, FILL_REPLACE_VALUE=-10, OUT_PS_X=1000., $
>   OUT_PS_Y=1000., R_FID_ARRAY=envi_fids, R_FNAME_ARRAY=fnames
>
> ; use to remove from the 'available bands list' of ENVI
> FOR i=0
> ENVI_FILE_MNG, ID=envi_fids, /REMOVE
>
> Do you have an idea why the script stops after 200 iterations and how
> I can solve this problem?
> Thank you for your help.
>
> Laure.
Re: Message error after 200 iterations using MCTK in IDL [message #67353 is a reply to message #67352] Wed, 15 July 2009 06:23 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
laureroupioz writes:

> Do you have an idea why the script stops after 200 iterations and how
> I can solve this problem?

200 is an odd number. (Well, at least in the sense
of it being a curious number.) I would guess a bug
in someone's code (and probably not yours), in which
a file handler was not being released properly. I think
I would take this one straight to ITTVIS.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: problem with modal dialog boxes on Ubuntu 8.10
Next Topic: hi

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

Current Time: Fri Oct 10 16:24:13 PDT 2025

Total time taken to generate the page: 0.36746 seconds