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


Groups > comp.lang.python > #99590

Re: read 4D binary data

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: read 4D binary data
Date 2015-11-26 17:43 +0000
Message-ID <mailman.149.1448559896.20593.python-list@python.org> (permalink)
References <4d15f12abb4c4781168ce05d3b450f63@cptec.inpe.br>

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web