[ncl-talk] writing binary data

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Mon Mar 27 17:11:56 MDT 2017


Raj,

The short answer is no.  The function fbinrecwrite does not support mixed
data types, and this is the only function that can write Fortran sequential
unformatted records without a horrible kludge.  I recommend either text or
Netcdf formats for what you want to do.

You could look into calling a Fortran output subroutine from NCL, but that
would be more complicated than text or Netcdf formats.

--Dave


On Mon, Mar 27, 2017 at 2:42 PM, Raj K. Rai <rajkrai at gmail.com> wrote:

> Hi,
>
> I am trying to write string, integer, and real values using ncl as in the
> following fortran format.
>
> do j=1,5
>
> write(unit) stringx(j), intx(j),realx(j), 23.2
>
> end do
>
>
>
> I saw there is fbinrecwrite(fout,-1,stringx(1)) and so on for each value.
> Is there anyway we can write the data in ncl as in fortran.
>
>
> Thanks,
>
> Raj
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170327/d86706ab/attachment.html 


More information about the ncl-talk mailing list