Re: Problems transferring an XDR file. [message #5264] |
Thu, 23 November 1995 00:00 |
gurman
Messages: 82 Registered: August 1992
|
Member |
|
|
In article <9511200900.AA02898@ste-med-mac.aplcomm.jhuapl.edu>,
linda_peco@jhuapl.edu (Linda M. Peco) wrote:
> Hello -
>
> I am trying to take IDL savesets to other systems and I am having no
> luck at all. I am saving the savesets on a VAX/VMS system, I have tried
> using both IDL ver. 3.5.1 and 3.6.1a. The following command is being used:
>
>
> save, filename='save.xdr', /xdr, /variables
>
> OR
>
> save, filename='save.xdr', /xdr, x, y, z, etc. (where I list the
>
variables I want)
>
> I have transfered the savesets via FTP (binary) to PC's, SUN's and HP's
> and have obtained the same error on each system during the restore. I have
> attempted to restore the saveset in both IDL and PV-Wave. The error remains
> the same.
>
> ERROR: Unexpected item code found in save file.
>
> Does anyone have any suggestions ? Is there something system-wide I am
> missing ?
>
Are you by any chance saving repeatedly into files with the same name?
I seem to recall those versions of IDL had a problem with that under Open
VMS.
Joe Gurman
--
Joseph B. Gurman / NASA Goddard Space Flight Center/ Solar Data Analysis Center / Code 682 / Greenbelt MD 20771 USA / gurman@uvsp.nascom.nasa.gov
| Federal employees are still prohibited from holding opinions while at work. Any opinions expressed herein must therefore be someone else's. |
|
|
|
Re: Problems transferring an XDR file. [message #5281 is a reply to message #5264] |
Mon, 20 November 1995 00:00  |
rivers
Messages: 228 Registered: March 1991
|
Senior Member |
|
|
In article <9511200900.AA02898@ste-med-mac.aplcomm.jhuapl.edu>, linda_peco@jhuapl.edu (Linda M. Peco) writes:
> Hello -
>
> I am trying to take IDL savesets to other systems and I am having no
> luck at all. I am saving the savesets on a VAX/VMS system, I have tried
> using both IDL ver. 3.5.1 and 3.6.1a. The following command is being used:
>
>
> save, filename='save.xdr', /xdr, /variables
>
> OR
>
> save, filename='save.xdr', /xdr, x, y, z, etc. (where I list the
> variables I want)
>
> I have transfered the savesets via FTP (binary) to PC's, SUN's and HP's
> and have obtained the same error on each system during the restore. I have
> attempted to restore the saveset in both IDL and PV-Wave. The error remains
> the same.
I cannot reproduce this problem. I just saved 3 variables into an XDR file on
a VAX/VMS 5.5-2 system using IDL 3.5.1:
IDL. Version 3.5.1 (vms vax).
Copyright 1989-1993, Research Systems, Inc.
All rights reserved. Unauthorized reproduction prohibited.
Installation number: 2718.
Licensed for use by: Brookhaven National Laboratory
IDL> a = 1.1
IDL> b=!pi
IDL> c = exp(4)
IDL> print, a, b, c
1.10000 3.14159 54.5981
IDL> save, a, b, c, file='[rivers.temp]test.xdr', /xdr
I FTPed the file to a SunOS 4.1.3 system and an SGI IRIX 5.2 system, both
running IDL 4.0.1, and read the XDR file in with no problem. The values of the
variables were correct.
IDL. Version 4.0.1 (sunos sparc).
Copyright 1989-1995, Research Systems, Inc.
All rights reserved. Unauthorized reproduction prohibited.
Installation number: 1921-13.
Licensed for use by: CARS - Univ. of Chicago
IDL> restore, 'test.xdr'
IDL> print, a, b, c
1.10000 3.14159 54.5981
Note that there IS a known bug with netCDF files written with IDL 3.5 and 3.6
on VAX systems. There is a utility program to repair the files.
____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
|
|
|