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.
>Date: Tue, 29 Mar 94 14:14 GMT >From: address@hidden >To: STEVE <address@hidden> >Subject: Re: Binary portability between VMS and Ultrix In the above message you wrote: > Thank you for your fast reply to my questions. On the VMS side of > the problem it is definitely the FTP server, which is causing it. > I got the system managers to open the vms disks for nfs-access for > me and there was then no problem of reading vms created netCDF > file from Ultrix. Excellent! > In order to solve the problem with openVMS I looked with the > unix od on an octal dump of both a valid vms netcdf file and > an OpenVMS one. I found that the byte order was interchanged. > So on VMS the first word read: > 103,104,016,001 and on OpenVMS: 001,106,104,103 Just FYI, the first four octets of a netCDF file are: 'C' 'D' 'F' '\001'. > I played around with some compiler optionc concerning big and little > endiness on OpenVMS but failed to solve that thing until now. > Then I wrote a little program to flick these bytes and got a > valid netCDF file with good data but with all text inverted. So > the variable TIME got EMIT etc. Well, I'll stop that now, perhaps > I find time to sort that out on another day. If I have got a valid > version, I let you know, if you are interested. Does `libsrc/Makefile' have the option `-DSWAP' defined? -------- Steve Emmerson <address@hidden>