Skip to main content
Question

Convert an individual cell from a netcdf wave model file to a time series table

  • October 23, 2020
  • 2 replies
  • 55 views

I have a sample file from a gridded wave model for a small section on the South coast of England, ie it is a lat/long grid covering a few hours with 11 variables (wave height, wave period, that sort of thing) for each hour. I can view the file with Panoply.

While the larger spatial overview is great, I would love to extract a time series for a couple of grid cells with all parameters so i can for example compare the data with measured wave buoy data.

It should be quite easy as the the output should just be a table with the 11 variables as columns and each hour as a row (in a date/time format), but given the netcdf format this does not seem quite so straight forward - at least at my level of FME understanding :-) .

Not urgent but any pointers would be very welcome.

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.

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+64

It is essentially a number of rasters on top of each other. What I would do is start with one of the rasters (Sampler) then create polygons from the raster (RasterCellCoercer), determine how the raster number / time interval relation works, determine the rasterband / attribute relation. Then relate you buoys with the polygons.


  • Author
  • October 25, 2020

Many thanks Niels, that is exactly how it worked. The tricky thing is finding out about the number format, especially as one of the files i had was somehow corrupted, but it all makes sense now.

After reading the netcdf file first step is the attribute exposer to get to some of the netcdf attributes. The RasterBandSeparator then splits the file into the hourly time data, and the CasterCellCoercer creates the raster cell polygons which contain all the wave parameters. Some follow up manipulation then extracts the actual values using the integer value and factor for each parameter and composes the date/time to then export.