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.
This bug caused problems displaying/updating images
in nmap when ii > MAX_PIX and reading the time strings.
nprogs/nmap/source/nmap_image.c about line 149,
* convert the file names to time strings
*/
for ( ii = istart, jj = 0; ii < nn; ii++, jj++ ) {
image_getDttmFromFile(dnamelist[ii]->d_name, times[jj]);
ti_dtm4 ( times[jj], tarr[jj], &ignore,
strlen(times[jj]), sizeof(tarr[jj]) );
tarr[ii][13] = '\0';
}
tarr index ii should be jj when adding the NULL terminator:
tarr[jj][13] = '\0';
Steve Chiswell
Unidata User Support