[Thread Prev][Thread Next][Index]
Re: loading binary fortran data
> from fortran:
> write(101) (( m(i,j), i=200), j=1:100 )
^^^^^^
Is it possible that your error occurred because of 'i' is not
incremented in the above write statement?
On Wed, 23 Feb 2000, Dail Rowe wrote:
> Hi,
>
> I am having a problem reading binary data written by a fortran program
> into
> ferret. The following works
>
> from fortran:
> write(101) (( m(i,j), i=1:200), j=1:64 )
>
> in ferret:
> define axis/x=1:200:1 xa
> define axis/y=1:64:1 ya
> define grid/x=xa/y=ya g
> set data/ez/form=unf/grid=g/var=p/col=12800 fort.101
> shade p
>
> However this does not work
>
> from fortran:
> write(101) (( m(i,j), i=200), j=1:100 )
>
> in ferret:
> define axis/x=1:200:1 xa
> define axis/y=1:100:1 ya
> define grid/x=xa/y=ya g
> set data/ez/form=unf/grid=g/var=p/col=20000 fort.101
> shade p
>
> The only difference between the two is in the size of the array in the
> data file.
>
> I have tried increasing the memory size, but that doesn't help.
>
> The error message I get is something like (sorry I don't have the exact
> message
> here):
>
> fort.62 is not connected for formatted input
>
> followed by a core dump.
>
> I am running v4.91 under Red Hat Linux v 6.1(2?)
>
> Any assistance will be greatly appreciated.
>
> Thanks,
> dail
>
>
>
>
>
>
>
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement