Hi Frank, > due to a first help i was able to produce a first example. It is included as > attachment. Thanks very much for making this available! > There is one problem left. Writing and reading the station_name as a char > variable is producing additional character items in the nc-file and in the > retrieved character value as a result of nf90_get_var > > Is there a solution? You sent a subsequent email saying you found a solution for the problem. As you've noted, the StationName values are not terminated, since they're represented as counted arrays of characters. My solution was just to replace write(6,'(1a,1i1,1a,1a)') "Station ",iStationNo,", StationName: ",trim(cStationName) with write(6,'(1a,1i1,1a,1a)') "Station ",iStationNo,", StationName: ",cStationName(1:(index(cStationName,char(0))-1)) but please let me know if you have a better or shorter fix. My Fortran is a bit rusty ... > There is no problem, if you want to keep this example (after solving the > remaining problem). Yes, I'd like to include it (with credit) as an extra example on our examples page. --Russ > -----UrsprÃngliche Nachricht----- > Von: Unidata netCDF Support [mailto:address@hidden > Gesendet: Dienstag, 18. MÃrz 2014 20:42 > An: address@hidden > Cc: address@hidden > Betreff: [netCDF #PKG-241010]: Fortran code exaple for netcdf > > Hi Frank, > > > I do not know if the support is free and so on... so if it is free and > > there is some one who can help ... > > > > i have searched throughout the unidata webpage, but haven't found a > > usable example to create, write and read station data with > > netcdf-Fortran based on the Example H.3. Time series of station data > > in the incomplete multidimensional array representation out of the > > cf-convention 1.6. > > > > Is it possible to provide an example for the creation, writing and > > reading of example H3 based on netcdf-Fortran(90)? > > I assume you're referring to the CF Conventions version 1.6, and the appendix > H on Discrete Sampling Geometries. Sorry, but we don't even have good > examples in C yet for those data structures. It would certainly be useful to > provide more realistic examples, using the CF Conventions, than the primitive > examples we currently make available > at: > > http://www.unidata.ucar.edu/netcdf/examples/programs/ > > It's possible someone in the CF community may have written some test code or > examples for these relatively new profile conventions, first introduced in > the version 1.6 CF Conventions. You may want to inquire on the CF mailing > list: > > http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata > > --Russ > > Russ Rew UCAR Unidata Program > address@hidden http://www.unidata.ucar.edu > > > > Ticket Details > =================== > Ticket ID: PKG-241010 > Department: Support netCDF > Priority: Normal > Status: Closed > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: PKG-241010 Department: Support netCDF Priority: Normal Status: Closed
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.