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.
>To: address@hidden >From: "Reula, Oscar" <address@hidden> >Subject: Re: 20020910: subject >Organization: FaMAF, Univ. Nac. de Cordoba, 5000 Cordoba, ARGENTINA >Keywords: 200210031824.g93IO1129487, no data written Oscar, > static size_t count_field[] = > {0,N_GRID_PLOT_PTS_1,N_GRID_PLOT_PTS_2,N_GRID_PLOT_PTS_3}; /* where to > stop writing */ If one of {N_GRID_PLOT_PTS_1, N_GRID_PLOT_PTS_2, N_GRID_PLOT_PTS_3} were defined to be 0, that would cause no data to be written. > stat = > nc_put_vara_double(ncid,field_id,start_field,count_field,&((*plot_ptr).plot_field[field_ind][0][0][0])); Try printing the values of start_field and count_field arrays before the above statement is executed. Otherwise, I'm afraid I can't see anything wrong ... --Russ