Question

Calculate raster from multiple folder

  • 28 December 2018
  • 5 replies
  • 0 views

Badge

Hi all,

I have 3 folder 2016, 2017, 2018. Each folder have 46 images .TIF format.

In each folder, for one day have 3 images tif and split to _p1,_p2,_p3 and the date is same.

My goal sort images in each folder and execute raster calculate the first image of each folder to other first folder and then create folder based on squence 1,2,3....

I describe in here. Could you tell me how to the way make model ? Thank you


5 replies

Userlevel 2
Badge +17

Does "(Ai+Bi+Ci)/3" in your screenshot describes that creating a single raster from the three rasters on the left hand side (e.g. 20160101_p1, 20170102_p1, and 20180101_p1) by calculating average value for each cell in those rasters?

How many bands does each raster have?

 

Badge

Does "(Ai+Bi+Ci)/3" in your screenshot describes that creating a single raster from the three rasters on the left hand side (e.g. 20160101_p1, 20170102_p1, and 20180101_p1) by calculating average value for each cell in those rasters?

How many bands does each raster have?

 

Yes. One band for each image

Userlevel 2
Badge +17

Does "(Ai+Bi+Ci)/3" in your screenshot describes that creating a single raster from the three rasters on the left hand side (e.g. 20160101_p1, 20170102_p1, and 20180101_p1) by calculating average value for each cell in those rasters?

How many bands does each raster have?

 

What about my first question?

Badge

What about my first question?

yes. My question is the method to make it to receive the result like I describe.

In my mind, I think I will sort all file in folders and the next step I will make loop for the first image to n images in the folder and raster calculation. But I have not yet make it by this function?

Userlevel 2
Badge +17

If I understood the conditions and your requirement correctly, this workspace example might help you.

tiff2tiff-example.zip (FME 2018.1.0.3, including sample source dataset)

Reply