Re: write binary

From: Prince K. XAVIER <xavier_at_nyahnyahspammersnyahnyah>
Date: Wed, 06 Sep 2006 15:08:17 +0200

Hi,
Managed to write sequential unformatted binary! The following segment
seems to be similar to the fortran segment. Hope somebody might benefit
with this info.

dateF = (/year,month,day,1.,0./)
fbinrecwrite(outpath, -1, dateF )
fbinrecwrite(outpath, -1, merged({loni:lonf},{lati:latf},n,nd))

*PS: on the example page of "fbinwrite", the example given is for
*"**fbindirwrite"*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/fbindirwrite.shtml>***
<http://www.ncl.ucar.edu/Document/Functions/Built-in/fbindirwrite.shtml>

Prince

Prince K. XAVIER wrote:
> Hello all,
>
> I am wondering if the following fortran and NCL commands are equivalant.
>
> Fortran:
> open(nfic,file=ficodem,form='unformatted')
> write(nfic)float(year),float(month),float(day),1.,0.
> write(nfic)((v(jlo,ila),jlo=nlod,nlof),ila=nlad,nlaf)
>
> NCL:
> dateF = (/year,month,day,1.,0./)
> fbindirwrite(outpath, dateF )
> fbindirwrite(outpath, v({nlod:nlof},{nlad:nlaf}))
>
> But, both the outputs show different file sizes!
> Any help is greatly appreciated.
> Thanks
> prince
>

-- 
Prince K. XAVIER		
Laboratoire de Meteorologie Dynamique
Ecole Normale Superieure
24 Rue Lhomond 75231 Paris 
cedex 05 FRANCE
Tel: +33 (0)1 44 32 22 32
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 06 2006 - 07:08:17 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 06 2006 - 10:52:20 MDT