NSF Unidata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #CTW-339617]: netcdf version check

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 John,

Sorry to have been unresponsive, we've been doing final testing before a
release.

> Assuming that the nf_format_64bit parameter were defined, but the configure
> script determined that for the given installation, large file offsets were
> not available, would it be an error to do this?
>
> NF_CREATE(FileName, OR(NF_CLOBBER,NF_64BIT_OFFSET), DH%NCID)

I believe that would be a harmless no-op.  I don't have any platforms here to
test
on that don't support LFS, so I can't just run a test easily.  But the above
should
work fine even on platforms that don't support LFS.  A "file too large" error
would
occur in case this program later tried to write a file > 2 GiB in size. but
things
would work fine up to that poiunt, and the file created would have 64-bit
offsets.

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: CTW-339617
Department: Support netCDF
Priority: Normal
Status: Closed