I have a folder with 1000 tifs. I'd like to read 4 tifs, do some calculation and read the next 4 tifs. The problem is, that for example tif number 500 is missing. Now my current program stops right bevor tif number 500.
So my idea is that I check if the path exists with file_test and /directory and skip all missing values in the foor loop.
Directory: Set this keyword to return 1 (true) if File exists and is a directory. true =1, false = 0
for j = 0, 1102 do begin
PathEx = File_test(e:\Meteosat\Tiff\2016\06\17\MSG_201606170100_B4_L.tif', directory)
if PathEx = 1 then
B = READ_TIFF(e:\Meteosat\Tiff\2016\06\17\MSG_201606170100_B4_L.tif, GEOTIFF=tags)
if PathEx = 0 then
print, 'missing' and continue
end
I want to skip all missing paths. I don't know how to do this. I Also read something about .CONTINUE
But I have no clue how this works too. thank you! pampi