dapdump.c#22    NChdrhdr = (NChdr*)calloc(1,sizeof(NChdr));
#23    MEMCHECK(hdr,NC_ENOMEM);
#24    hdr->ncid = ncid;
#25    hdr->content = ncbytesnew();
#26    if(hdrp) *hdrp = hdr;
#28    stat = nc_inq(hdr->ncid,
#29   &hdr->ndims,
#30   &hdr->nvars,
#31   &hdr->ngatts,
#32   &hdr->unlimid);
#36 hdr->ncid,hdr->ngatts,hdr->ndims,hdr->nvars,hdr->unlimid);
#38    hdr->gatts = (NCattribute*)calloc(1,hdr->ngatts*sizeof(NCattribute));
#39    MEMCHECK(hdr->gatts,NC_ENOMEM);
#40    if(hdr->ngatts > 0)
#42    for(i=0;i<hdr->ngatts;i++) {
#43 NCattributeatt = &hdr->gatts[i];
#49        stat = nc_inq_attname(hdr->ncid,NC_GLOBAL,i,attname);
#52 stat = nc_inq_att(hdr->ncid,NC_GLOBAL,att->name,&nctype,&nvalues);
#63     stat = nc_get_att(hdr->ncid,NC_GLOBAL,att->name,values);
#71     stat = nc_get_att(hdr->ncid,NC_GLOBAL,att->name,values);
#81    hdr->dims = (Dim*)malloc(hdr->ndims*sizeof(Dim));
#82    MEMCHECK(hdr->dims,NC_ENOMEM);
#83    for(i=0;i<hdr->ndims;i++) {
#84 hdr->dims[i].dimid = i;
#85        stat = nc_inq_dim(hdr->ncid,
#86                   hdr->dims[i].dimid,
#87                   hdr->dims[i].name,
#88                   &hdr->dims[i].size);
#91 i,hdr->dims[i].name,(unsigned long)hdr->dims[i].size);
#93    hdr->vars = (Var*)malloc(hdr->nvars*sizeof(Var));
#94    MEMCHECK(hdr->vars,NC_ENOMEM);
#95    for(i=0;i<hdr->nvars;i++) {
#96 Varvar = &hdr->vars[i];
#99        stat = nc_inq_var(hdr->ncid,
#127            stat = nc_inq_attname(hdr->ncid,var->varid,j,attname);
#130     stat = nc_inq_att(hdr->ncid,var->varid,att->name,&nctype,&nvalues);
#136     stat = nc_get_att(hdr->ncid,var->varid,att->name,values);


HyperKWIC - Version 7.20DA executed at 11:37 on 27 Oct 2017 | Polyhedron Solutions - INTERNAL USE | COMMERCIAL (Any O/S) SN 4AKIed