Skip to main content
Question

Create list based on Raster Nodata values

  • August 2, 2017
  • 4 replies
  • 32 views

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

daveatsafe
Safer
Forum|alt.badge.img+20
  • 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.


  • Author
  • August 22, 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.

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
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • August 22, 2017
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+40
  • 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.