Commit b13c7432b121486c8e3f04a9170ab52c58520802

Authored by Benjamin Renard
1 parent 53a5af40

Generate NetCDF-4 files with ConvertDDTimeToDouble (fix for #8700)

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/DATA/TOOLS/ConvertDDTimeToDouble.c
@@ -278,7 +278,7 @@ int convertNCFile(char* oldFilePath, char* newFilePath) { @@ -278,7 +278,7 @@ int convertNCFile(char* oldFilePath, char* newFilePath) {
278 278
279 //Create new file 279 //Create new file
280 int newFileId; 280 int newFileId;
281 - status = nc_create(newFilePath, NC_CLOBBER, &newFileId); 281 + status = nc_create(newFilePath, NC_CLOBBER | NC_NETCDF4, &newFileId);
282 282
283 if (status != NC_NOERR) { 283 if (status != NC_NOERR) {
284 fprintf(stderr,"Cannot create NC file %s %s\n",newFilePath,nc_strerror(status)); 284 fprintf(stderr,"Cannot create NC file %s %s\n",newFilePath,nc_strerror(status));