/********************************************************************* * Copyright 2018, UCAR/Unidata * See netcdf/COPYRIGHT file for copying and redistribution conditions. *********************************************************************/ /** This provides a simple netcdf-4 metadata -> xml printer. Primarily for use in debugging, but could be adapted to create other tools. */ /**************************************************/ #include "config.h" #include #include #include "netcdf.h" #include "ncbytes.h" extern int NC4print(NCbytes* buf, int ncid); int main(int argc, char** argv) { int i; int ret = NC_NOERR; if(argc == 1) { fprintf(stderr,"usage: nc4printer ...\n"); exit(1); } for(i=1;i