Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99590 > unrolled thread

Re: read 4D binary data

Started byMark Lawrence <breamoreboy@yahoo.co.uk>
First post2015-11-26 17:43 +0000
Last post2015-11-26 17:43 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: read 4D binary data Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-11-26 17:43 +0000

#99590 — Re: read 4D binary data

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2015-11-26 17:43 +0000
SubjectRe: read 4D binary data
Message-ID<mailman.149.1448559896.20593.python-list@python.org>
On 26/11/2015 17:15, jorge.conrado@cptec.inpe.br wrote:
> Hi,
>
>
> I'm startig in Python and I have a 4D binary data. The dimension of my
> data is:
>
> 67 ----> longitude points
> 41 ----> latitude points
> 10 ----> pressure levels points
> 33 ----> time points
>
>
> How can I read this data and what can I do to get a 2D array
> (longitude,latitude) for a specific pressure  and time dimension.
>
>
> Conrado

To open a file to access the contents 
https://docs.python.org/3/library/functions.html#open

If the data is in CSV format see https://docs.python.org/3/library/csv.html

For your data structure lists 
https://docs.python.org/3/library/stdtypes.html#lists and dicts 
https://docs.python.org/3/library/stdtypes.html#mapping-types-dict are 
always the first port of call.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web