Skip to main content
Question

Create list based on Raster Nodata values


I've got a large number of raster tile and would like to create a list that shows how many have a certain nodata value, for example, how many have a nodata value of o, how many have a nodata value of -39 to -1 and how many have a nodata value of <= -40. What would be the best way to do this?

I've tried a few different methods but so far have only ended up with empty csv files.

Thanks.

4 replies

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • August 2, 2017

Hi @jamesclarke,

The RasterBandPropertyExtractor transformer will give you the NoData values for each band, in the list _band{}.band_nodata. You can use ListSearcher transformers to separate the rasters by NoData value.


daveatsafe wrote:

Hi @jamesclarke,

The RasterBandPropertyExtractor transformer will give you the NoData values for each band, in the list _band{}.band_nodata. You can use ListSearcher transformers to separate the rasters by NoData value.

So I've got the lists and they show up fine in the Data Inspector but I still get blank .csv files as the output. Why isn't it producing a list in the .csv file?

 

 


danilo_fme
Evangelist
Forum|alt.badge.img+41
  • Evangelist
  • August 22, 2017
jamesclarke wrote:
So I've got the lists and they show up fine in the Data Inspector but I still get blank .csv files as the output. Why isn't it producing a list in the .csv file?

 

 

Hi @jamesclarke, i believe the csv file has no attribute.

 

Could you share us your Workspace template? (.FMWT )

 

 

Thanks,

 

Danilo

 


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • August 22, 2017

Because most data formats do not understand fme lists.

 

Assuming you list is in the format _list{}.value, _list{}.count, try using a ListExploder just prior to the CSV writer, and set the attributes on the csv to value and count.

To get your your data into that format, use the RasterBandPropertyExtractor as @DaveAtSafe suggests, and follow that by the StatisticaCalculator with ComputeHistograms selected.


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