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.
> I am running a code with intel fortran > > The problem: > > Attribute domainOrigin in the code is set to 0,0 but when the output > file is read with ncdump its value change to 1264539600,0. A work around > is to set twice the attribute value to 0,0. > > The value of 126539600 it is the last value of the attribute validTimes > (vtime array). This is a problem with your program. You have dimensioned vtime to have only 144 elements, but then you have the loop: do i=2,144,2 vtime(i)=vtime(i-1)+3600 vtime(i+1)=vtime(i) end do which assigns v(145) the last time through. This assignment outside of the bounds of the vtime array overwrites a different variable, which probably causes the problem you are seeing. --Russ > Thanks in advance for your help > > > Jose Agustín García Reynoso http://www.atmosfera.unam.mx > address@hidden > Centro de Ciencias de la Atmosfera 52-55-56224073 > Universidad Nacional Autonoma de Mexico 52-55-56160789 (fax) > Circuito Exterior s/n Mexico DF 04510 > > > > > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: FXE-858183 Department: Support netCDF Priority: Normal Status: Closed