Skip to main content

I want to mosaick 188 netCDF files into a single netCDF file. I get the error

NetCDF writer: Failed to end definition. The error was 'NetCDF: One or more variable sizes violate format constraints'

The data is a DEM, so only one band which is elevation.

I have attempted both "Classic" and "64-bit Offset" Parameter

What am I doing wrong?

Difficult to say without more details. Perhaps you can post some sample data here?

NetCDF is a fairly tricky format, you'll probably have to make sure that the contents of the various lists like "netcdf_band{}.coordinate_variable{}" matches the number of bands in the output file.


The netCDF files are really large, so I don't know if it would be possible to post sample data.

Only one band, representing elevation, in metres (decimal metres)

X and Y is Longitude and Latitude in decimal degrees

70314 rows

57924 columns


Attached is one (zipped) csv. There are 187 more like this


Attached here is the netCDF that I generated from the csv I attached just before


@david_r​ I have uploaded some data, as you suggested


And here are my workbenches. The Runner & Worker convert all the csv files into netcdf files. This succeeded.

Then I tried to mosaic all of the netcdf files into a single netcdf file. This failed.


And here are my workbenches. The Runner & Worker convert all the csv files into netcdf files. This succeeded.

Then I tried to mosaic all of the netcdf files into a single netcdf file. This failed.

I just did a quick test with the NetCDF file that you posted, I had no issue mosaicking several versions of it. I you can't find the solution, I recommend you contact your FME reseller for assistance.


I just did a quick test with the NetCDF file that you posted, I had no issue mosaicking several versions of it. I you can't find the solution, I recommend you contact your FME reseller for assistance.

I do succeed in mosaicing about a dozen netcdf files together. I get an error when I attempt to mosaic all 188


Reply