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

Home » Public Forums » archive » IDL stop reading file after 200 files
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
IDL stop reading file after 200 files [message #89175] Wed, 30 July 2014 11:23 Go to next message
Pawan is currently offline  Pawan
Messages: 9
Registered: April 2006
Junior Member
I have an IDL program that reads many thousands HDF-EOS file (HDF4) (using EOS_GD_OPEN
....). When I'm reading more the ~200 files the program unable to
open more files without giving any error. It keeps working and produce junk data in the data variables.
What can be done to avoid this problem? (I'm reading simultaneously
only one file and then closing it with EOS_GD_close and also using EOS_GD_DETACH)

Thanks,
Pawan

Following is the part of code I am using:

-----------------------------------------------
fid = EOS_GD_OPEN(filename,/READ)
r1 = EOS_GD_INQGRID(filename,gridname)
gridid=EOS_GD_ATTACH(fid,gridname)
ginfo=EOS_GD_GRIDINFO(gridid,xdim,ydim,upleft,lowright)
ginfo=EOS_GD_PROJINFO(gridid,projcode, zonecode, spherecode, projparm)
status=EOS_GD_DETACH(gridid)
result=EOS_GD_CLOSE(fid)
------------------------------------------------

I am using this code to read meta data from MODIS MOD09 product.

any suggestion will be helpful.
Re: IDL stop reading file after 200 files [message #89193 is a reply to message #89175] Thu, 31 July 2014 09:51 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
What is the error you are getting?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Ellipse in (lon, lat)
Next Topic: spawn

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

Current Time: Wed Oct 08 11:40:00 PDT 2025

Total time taken to generate the page: 0.00458 seconds