Skip to main content

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.

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.


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?

 

 


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

 


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.


Reply