Skip to main content
Question

make a netCDF file

  • April 7, 2016
  • 1 reply
  • 61 views

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

1 reply

david_r
Celebrity
  • April 7, 2016

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


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