Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: jorge.conrado@cptec.inpe.br Newsgroups: comp.lang.python Subject: read 4D binary data Date: Thu, 26 Nov 2015 15:15:43 -0200 Lines: 17 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de RNZgxG5ioAxEDnCeq6lDBgi0rtyMt3tK68Zo6aDhGRkQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.100 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.82; '*S*': 0.02; 'binary': 0.05; 'received:150': 0.09; 'python': 0.10; 'dimension': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'header:User- Agent:1': 0.26; 'points': 0.27; 'skip:( 20': 0.28; 'array': 0.29; "i'm": 0.30; 'data.': 0.36; 'to:addr:python-list': 0.36; 'charset :us-ascii': 0.37; 'hi,': 0.38; 'data': 0.39; 'to:addr:python.org': 0.40; 'from:no real name:2**0': 0.60; 'received:br': 0.66; 'levels': 0.70; 'latitude': 0.84; 'longitude': 0.84; 'subject:read': 0.84 X-Virus-Scanned: Debian amavisd-new at tornado X-PHP-Originating-Script: 33:rcube.php X-Sender: jorge.conrado@cptec.inpe.br User-Agent: Roundcube Webmail/1.0.3 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99589 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