This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>From: Mark Takala <address@hidden> >Organization: University of Wisconsin/SSEC >Keywords: 200012071945.eB7JjOo04438 netCDF lidar Mark, >after I have used Ncgen to generate c code >from an example cdl, how do i then use this >generated code to write netcdf files from >different sets of data? The idea is that ncgen generates a template C source file that you then flesh out into an application that does what you want. I typically use ncgen to create a quick example of what to do and then edit the file using my favorite text editor and add input of data from somewhere and write it out to a netCDF. You can use ncdump to list out the netCDF to verify that it looks the way you think it ought to. The steps beyond are use of the netCDF in whatever application you originally had intention of using. Tom Yoksas