Re: [udf-dlm-develop] dlm v24 and v25
Brought to you by:
esm
From: Harald F. <hf...@ap...> - 2000-01-12 02:03:51
|
I see two things which might cause the problems with reading over the end of files, if the time span is given for a longer time. And I'm not sure what Evelyn's code looks like. 1. If your IDL code contains something like this WHILE NOT udf_eof(fh) DO BEGIN . . ENDWHILE you can not expect to get more than the content of the UDF file with the first correct time. 2. If your IDL code contains something like REPEAT BEGIN . . ENDREP UNTIL (whatever EQ something) then the whole process crashes at udf.c line 1356 with the following message % UDF_READ: failed to fill_data: @ sensor 0 At the moment I don't see how udf_read can recognize that it has to close the existing UDF file and which other file to open in order to get the next times right. You are able to fix this in the IDL program if you check the etime of the present record against your end_time, and if you have reached the udf_eof(fh) you close it, and advance to the next UDF-file. I don't think that the problem is in UDF_EOF. Am I wrong? Harald ========================================================= Harald U. Frey Space Sciences Lab phone: 510-643-3323 University of California fax: 510-643-2624 Berkeley, CA 94720-7450 email: hf...@ss... |