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.
Hi, The following is mostly to complete information in our inquiry tracking system. I intend to update the McIDAS CVS repository with the changes made to fix the code problems I found... Previously I wrote: > It seems that the gvaradir/gvaraget/gvarnavf problem expierenced earlier on > unidata2 is related to the 64-bit build of McIDAS-X v2007. > ... > My hunch is that there must be one or more mistyped varibles used > in source for gvaradir/gvaraget/gvarnavf or one or more of the > procedures they call. My hunch turned out to be correct. The problem seen in listing data-from and access data out of the EAST and WEST datasets on unidata2.ssec.wisc.edu when using 64-bit versions of gvaradir and gvaraget was being caused by the mistyping of variables passed to Mcdaytimetosec: Mcdaytimetosec declaration in daytime.c: int Mcdaytimetosec (int day, int hms, int *secs) Values passed in gvaradir.cp: ... int tmpDate, tmpTime; time_t tmpSeconds; ... rc = Mcdaytimetosec(tmpDate, tmpTime, &tmpSeconds); Values passed in gvaraget.cp: ... imginfo *newNode = NULL; ... time_t newSeconds = 0; ... time_t loDayTimSec = 0; time_t hiDayTimSec = 0; ... int loDate, hiDate; int loTime, hiTime; ... rc = Mcdaytimetosec(newNode->imgDate, newNode->imgTime, &newSeconds); ... rc = Mcdaytimetosec(loDate, loTime, &loDayTimSec); rc = Mcdaytimetosec(hiDate, hiTime, &hiDayTimSec); After correcting the typing for tmpSeconds in gvaradir.cp, and newSeconds, loDayTimSec, and hiDayTimSec in gvaraget.cp from time_t to int and rebuilding gvaradir and gvaraget, IMGLIST and IMGDISP access to the EAST and WEST datasets work correctly. Cheers, Tom **************************************************************************** Unidata User Support UCAR Unidata Program (303) 497-8642 P.O. Box 3000 address@hidden Boulder, CO 80307 ---------------------------------------------------------------------------- Unidata HomePage http://www.unidata.ucar.edu **************************************************************************** Ticket Details =================== Ticket ID: MCX-750494 Department: Support Datastream Priority: Low Status: Closed