That error number (-128) means that you are attempting to use a feature that was not enabled when the netcdf-c library was built. In this case, my guess would be that the netcdf-c library did not enable netcdf-4 support. > Hallo, > i have a rather simple question for you. > I am writing Fortran combined with C code to write netcdf format. > Everything works fine when I use > retval = nc_create(file_name, NC_CLOBBER, ncid); > to create a file > But I need variables that write string format > For example Date variable that should have nc_put_var_string (as I understood > only netcdf4 supports that) > And when I use the > retval = nc_create(file_name, NC_NETCDF4, ncid); > i get a return value of -128. I have tried to research it on my own but I am > not finding any answers that I could use. > My includes in c are: > #include <stdlib.h> > #include <stdio.h> > #include <netcdf.h> > #include <string.h> > #include <malloc.h> > #include <assert.h> > And the rest of the code are functions written for definition, get, put and > so on > Should I define something to be able to write netcdf4 format? > > If you could provide any help on that I would be grateful. > > Kindest regards, > Ana Gregorac, > Junior programmer > Joanneum Research, Graz > > =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: JRA-286857 Department: Support netCDF Priority: Normal Status: Open =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.