IDL stop reading file after 200 files [message #89175] |
Wed, 30 July 2014 11:23  |
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.
|
|
|
|