Skip to main content

Hi,

Has somebody some experience writing netCDF files?

I do not find any example about how to make it using FME?
I have a lot of raster, and I would like to write them like a single netCDF file. I would like to write four dimensions (coordinates x and y, elevation and time), and get the attribute from the raster.

Thanks in advance

Best wihes

Hi

The easiest way to start is if you have an existing NetCDF file which have the same number of dimensions / setup as the result you're looking for. You can then open it in the FME Data Inspector and see exactly how and which format attributes you will have to supply to your writer.

You then set those manually in your workspace, write out the results, compare with the Data Inspector, and rinse, repeat.

Here's a snapshot from an AttributeCreator I've got just before outputting the multi-band raster (use a RasterBandCombiner first if necessary) to the NetCDF writer:

You will probably also need to set netcdf_band{n}.coordinate_variable{m} for your dimension values.

David


Reply