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


Groups > comp.lang.python > #99591

Re: read 4D binary data

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.python
Subject Re: read 4D binary data
Date Thu, 26 Nov 2015 17:52:16 -0000 (UTC)
Organization A noiseless patient Spider
Lines 18
Message-ID <n37gsf$h02$5@dont-email.me> (permalink)
References <mailman.148.1448558147.20593.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Thu, 26 Nov 2015 17:52:16 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="17410"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NAWOrepTY5fhC2rh8KAgLVylToMrrIms="
User-Agent Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2)
Cancel-Lock sha1:rBT/VzSg23qIs5OyDrDbdt5uG04=
Xref csiph.com comp.lang.python:99591

Show key headers only | View raw


On Thu, 26 Nov 2015 15:15:43 -0200, jorge.conrado wrote:

> 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.

First of all, define the data structure you want to create.

I would have thought that for any given time, you would want a 2d array 
containing the pressure at each point (given by lat and lon) at that time.

-- 
Denis McMahon, denismfmcmahon@gmail.com

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


Thread

read 4D binary data jorge.conrado@cptec.inpe.br - 2015-11-26 15:15 -0200
  Re: read 4D binary data Denis McMahon <denismfmcmahon@gmail.com> - 2015-11-26 17:52 +0000

csiph-web