read 4D binary data
Mark Lawrence
breamoreboy at yahoo.co.uk
Thu Nov 26 12:43:34 EST 2015
On 26/11/2015 17:15, jorge.conrado at 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
More information about the Python-list
mailing list