Skip to main content

Hi

 

I cant seem to find a way to test files on filesize.

It's not a format attribute or something you can import with the files...

 

You can do it with python probably, but I'm not a programmer.

(I tried and failed 🙂 )

 

All I want is:

TESTER

filesize > 1 183 000 bytes

 

 

 

You need to use the Reader "Directory and File Pathnames". One of the properties that is returned is the file size.


You need to use the Reader "Directory and File Pathnames". One of the properties that is returned is the file size.

so I need to replace my "Tiff" reader with the "Directory and File Pathnames" reader?


so I need to replace my "Tiff" reader with the "Directory and File Pathnames" reader?

Yes. Configute that new Reader to read .TIFF files. Then use a filter to keep only the ones that have the size you want.

The result of that Tester could go to a FeatureReader to properly read the TIFF and do whatever you need with it.


Yes. Configute that new Reader to read .TIFF files. Then use a filter to keep only the ones that have the size you want.

The result of that Tester could go to a FeatureReader to properly read the TIFF and do whatever you need with it.

Do you know how I can select the smallest value?

I can sort them from small to big, but then I don't know how to acces the first value (the smallest) to make an attribute from it.


Do you know how I can select the smallest value?

I can sort them from small to big, but then I don't know how to acces the first value (the smallest) to make an attribute from it.

With a Sampler you can pick only the first one


With a Sampler you can pick only the first one

Yes thx, also statistics calculator can help with my problem, I learned.


Reply