[MITgcm-support] open source software for creating binary files from NetCDF
Jonny Williams
Jonny.Williams at bristol.ac.uk
Wed Apr 22 09:40:51 EDT 2015
It seems that something along these lines in Python may be able to do the
trick...
>>> import numpy as np
>>> a = np.array([1, 2, 3], dtype='float64')
>>> a.tofile('foo')
Jonny
On 22 April 2015 at 14:43, Jonny Williams <Jonny.Williams at bristol.ac.uk>
wrote:
> Hi everyone
>
> Just a quick question if I may.
>
> I've successfully used the readbin.m and writebin.m MATLAB scripts bundled
> with the MITgcm code base to make binary files from NetCDF files and vice
> versa.
>
> Is there an open source way of doing this using, say, CDO or R, etc?
>
> Thanks!
>
> Jonny
>
> --
> Dr Jonny Williams
> School of Geographical Sciences
> Cabot Institute
> University of Bristol
> BS8 1SS
>
> +44 (0)117 3318352
> jonny.williams at bristol.ac.uk
> http://www.bristol.ac.uk/geography/people/jonny-h-williams
> <http://bit.ly/jonnywilliams>
>
--
Dr Jonny Williams
School of Geographical Sciences
Cabot Institute
University of Bristol
BS8 1SS
+44 (0)117 3318352
jonny.williams at bristol.ac.uk
http://www.bristol.ac.uk/geography/people/jonny-h-williams
<http://bit.ly/jonnywilliams>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20150422/8e524cd8/attachment.htm>
More information about the MITgcm-support
mailing list