NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
I have not worked with the VB netcdf wrapper myself but i did work a bit with netcdf and with vb. from what i see th vb wrapper uses the C function names. and what you want to do is add two *attributes* to your variables one called longname and one units you would end up using: something like: stat = nc_put_att_text(sr_ncid, lat_id, "long_name", 8, "Latitude"); you could look at the attributes functions documentation http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-c/Attributes.html#Attributes On Wed, May 25, 2011 at 9:00 PM, <netcdfgroup-request@xxxxxxxxxxxxxxxx>wrote: > Send netcdfgroup mailing list submissions to > netcdfgroup@xxxxxxxxxxxxxxxx > > To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.unidata.ucar.edu/mailman/listinfo/netcdfgroup > or, via email, send a message with subject or body 'help' to > netcdfgroup-request@xxxxxxxxxxxxxxxx > > You can reach the person managing the list at > netcdfgroup-owner@xxxxxxxxxxxxxxxx > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of netcdfgroup digest..." > > > Today's Topics: > > 1. Adding units and long name to variables using VB.net wrapper > (Homfray, David A) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 25 May 2011 12:23:45 +0100 > From: "Homfray, David A" <David.Homfray@xxxxxxxxxx> > To: <netcdfgroup@xxxxxxxxxxxxxxxx> > Subject: [netcdfgroup] Adding units and long name to variables using > VB.net wrapper > Message-ID: > < > A63153883A27C248965F00B5FB03685F50821D@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> > > Content-Type: text/plain; charset="us-ascii" > > Hi > > I am new to the netCDF format and using the VB.net wrapper (created by > Ed Hartnett) to create netCDF data. I am able to create the three data > sets of interest but would like to add the units and long name to each > variable. I am unsure how to do it using the VB.net wrapper and would > appreciate any help in solving my problem > > Regards > > David > __________________________ > David A. Homfray > MAST NB Operations Manager > Culham Centre for Fusion Energy > D3/2.68, Culham Science Centre > Abingdon OX14 3DB > T +44(0)1235 466952 > F +44(0)1235 466511 > M +44(0) 7971 091930 > E david.homfray@xxxxxxxxxx > www.ccfe.ac.uk <http://www.ccfe.ac.uk/> > __________________________ > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mailman.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/attachments/20110525/1646a052/attachment.html > > > > ------------------------------ > > _______________________________________________ > netcdfgroup mailing list > netcdfgroup@xxxxxxxxxxxxxxxx > For list information or to unsubscribe, visit: > http://www.unidata.ucar.edu/mailing_lists/ > > End of netcdfgroup Digest, Vol 392, Issue 1 > ******************************************* > -- Yair Suari Geva Carmel, Israel 30855 Phone-0528-524520, 04-9840943
netcdfgroup
archives: