Skip to main content
Solved

test tiff files on filesize


koenvdw
Contributor
Forum|alt.badge.img+6

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

 

 

 

Best answer by oscard

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

View original
Did this help you find an answer to your question?

6 replies

oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • Best Answer
  • May 8, 2020

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


koenvdw
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • May 8, 2020
oscard wrote:

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?


oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • May 8, 2020
koenvdw wrote:

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.


koenvdw
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • May 8, 2020
oscard wrote:

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.


oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • May 11, 2020
koenvdw wrote:

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


koenvdw
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • May 11, 2020
oscard wrote:

With a Sampler you can pick only the first one

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings