Re: problem with 'fbindirwrite'

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Nov 26 2012 - 12:13:09 MST

NCL is working fine. No changes have been made.

  a=(/1,2,3,4,5/)

  system("/bin/rm -f out.dat")
  fbindirwrite("out.dat",a)

  z = fbindirread("out.dat",0,dimsizes(a),"integer")
  print( a+" "+z)

============
Don't know GrADS ...

Maybe GrADS is expecting a fortran *sequential* file
that has 'hidden' record separators.

On 11/25/2012 09:52 AM, Ipsita Putatunda wrote:
> Hi ncl users,
> Does ncl version 6.1.0 supports 'fbindirwrite'
> function? I want to get my data output in binary form. While using
> 'fbindirwrite' function to do this and tried to plotted it in grads(with
> proper ctl file) it is not able to plot. But before using 'fbindirwrite'
> in ncl prompt if I print the output values it is printing values properly.
> I have also tried with very simple script for testing purpose, but that
> is also unable to print the values properly in grads (with other binary
> files grads is working fine in my machine).
>>a=(/1,2,3,4,5/)
>>print (a)
>>fbindirwrite("out.dat",a)
>
> Any help will be appreciated.
>
> Thanks,
> Ipsita
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 26 12:13:23 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 07 2012 - 13:30:06 MST