Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

A year spent in artificial intelligence is enough to make one believe in God.


devel / comp.lang.python / Re: xarry netcdf message

SubjectAuthor
o Re: xarry netcdf messageDioumacor FAYE

1
Re: xarry netcdf message

<mailman.335.1661321672.20444.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19319&group=comp.lang.python#19319

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: dioumaco...@gmail.com (Dioumacor FAYE)
Newsgroups: comp.lang.python
Subject: Re: xarry netcdf message
Date: Tue, 23 Aug 2022 15:52:48 +0000
Lines: 67
Message-ID: <mailman.335.1661321672.20444.python-list@python.org>
References: <CAETjNsAc2uTDngjbfE5vK1cihJFvSHaa2zdoqyCDSU3hQb1dmg@mail.gmail.com>
<CAJvz3=cWOd=GhQ73aoS2UbYq82T5obXfWiryOTaRNNkvdkk=0Q@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de U2wPNGWbGWNOyOSnn72JvQRQIWCE3zx/5Ff2IMqC40vw==
Return-Path: <dioumacorfaye@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=VeyBspEY;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.041
X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'message:': 0.03; '2022':
0.05; 'reason:': 0.07; 'cc:addr:python-list': 0.09; 'objects,':
0.09; 'skip:\xc2 20': 0.09; 'cc:no real name:2**0': 0.14;
'import': 0.15; 'url:mailman': 0.15; '825': 0.16; 'dtype': 0.16;
'failed:': 0.16; 'jupyter': 0.16; 'lat': 0.16; 'lon': 0.16;
'notebook': 0.16; 'skip:/ 80': 0.16; 'skip:/ 90': 0.16; 'units,':
0.16; 'python': 0.16; 'solve': 0.19; 'cc:addr:python.org': 0.20;
'unable': 0.21; 'skip:- 10': 0.25; 'url-ip:188.166.95.178/32':
0.25; 'url-ip:188.166.95/24': 0.25; 'url:listinfo': 0.25;
'cc:2**0': 0.25; 'url-ip:188.166/16': 0.25; '8bit%:19': 0.31;
'module': 0.31; 'url-ip:188/8': 0.31; 'think': 0.32; 'objects':
0.32; "skip:' 40": 0.32; 'message-id:@mail.gmail.com': 0.32;
'but': 0.32; "i'm": 0.33; 'path': 0.33; "didn't": 0.34; 'header
:In-Reply-To:1': 0.34; 'received:google.com': 0.34;
'from:addr:gmail.com': 0.35; 'files': 0.36; 'thanks,': 0.36;
"skip:' 10": 0.37; 'using': 0.37; 'received:209.85': 0.37; 'skip:_
30': 0.37; 'this.': 0.37; 'read': 0.38; 'received:209': 0.39;
'use': 0.39; 'data.': 0.40; 'subject:message': 0.40; 'hello,':
0.40; 'try': 0.40; 'skip:\xc2 10': 0.62; 'email:': 0.63;
'8bit%:9': 0.64; 'range': 0.64; 'full': 0.64; 'skip:t 20': 0.66;
'tel:': 0.68; 'skip:w 20': 0.69; 'url-ip:lookup error': 0.70;
'instead,': 0.70; 'skype:': 0.70; '8bit%:31': 0.73; 'skip:f 20':
0.75; 'attribute': 0.84; 'axis': 0.84; 'calendar,': 0.84;
'decode': 0.84; 'jorge': 0.84; 'mar.': 0.84; "skip:' 90": 0.84;
'\xc3\xa9crit\xc2\xa0:': 0.84; 'bien': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc;
bh=JcuBJTiIvbXD6TCDtr+B9G3TxF5kBfwbaKH3rZC32BY=;
b=VeyBspEYbPnST04qAQp1/znekTw5kVCH7b+cgdo7EyjuZZvG627M+6dveDhptvCAbR
N8LKqNpQE+pEYm5E3Shi17KtcwRRdGzB60CJgIS15HXga296DTeawAU1kfkr8N2FW6hf
HYs2o4fEzzJrjwX/sMKBIrZEEnX0L3TDwIiIQpvxKvVqS9g43gMkaTYYEixApkBOGurZ
Q5Nb5jPz3SCAQNrfQw/3Vp1kHrygcmkH4kokDPowmtTzfW6D8NHR1QglrX8/HAI++OgX
mM6lq3yvk1ZxZUPB+AQNCGJ4dyQ+5begPdkMiLibIvm8+VHZ5bBdlx0OtNOiGbrzGf9q
Jr9g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-message-state:from:to:cc;
bh=JcuBJTiIvbXD6TCDtr+B9G3TxF5kBfwbaKH3rZC32BY=;
b=hKy9mUG/TTf3E8Nak4KLk9+ytGvxj84WaHMj4Z6le6CXP5V0Hp5YulzAk7KABWFPAs
eDOhHczKBUl7dRa7XtL9/xbJvohcYsmkN8LkTZdIVkLAYhtQjftJzU7CURd2M7kOTBCA
DDZaaamQHAFotrraywFBCi9ZTD5J0hpAa7257euxqS8uWBpSEuUAwG061A419tFJzs9B
RLGT/M8yqYvda2RplwY3ZMbwhrf6FX5rG0ZzIhSCBBF6uFraW+XZGb/3jyWrZTyb0oOl
0BxeSIiTxqCKzBpdPd5a2Hw/hpIHML4SFLy5RQB26/yhnCX/PJxicr6UOlksnIz4xtfK
pouA==
X-Gm-Message-State: ACgBeo3iXEm+scdv7rGDrMSKAwYdGgfazfN+2tF/0ULif4SaOFd7cFXz
53Y2Kq9LxYcGp9hirh3cEta1SZIknReigdtHQuHVkkJF5u4=
X-Google-Smtp-Source: AA6agR6xfjy5mDA8i6tiBgpehmsqokwFG9CGLfiWXzJE79k0X8g18riMjT1hMOKINDYjwrQv0Ef0BCQT+tPvUjkvxDY=
X-Received: by 2002:a05:6512:3faa:b0:48a:f17a:579e with SMTP id
x42-20020a0565123faa00b0048af17a579emr9490530lfa.30.1661269979759; Tue, 23
Aug 2022 08:52:59 -0700 (PDT)
In-Reply-To: <CAETjNsAc2uTDngjbfE5vK1cihJFvSHaa2zdoqyCDSU3hQb1dmg@mail.gmail.com>
X-Mailman-Approved-At: Wed, 24 Aug 2022 02:14:31 -0400
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAJvz3=cWOd=GhQ73aoS2UbYq82T5obXfWiryOTaRNNkvdkk=0Q@mail.gmail.com>
X-Mailman-Original-References: <CAETjNsAc2uTDngjbfE5vK1cihJFvSHaa2zdoqyCDSU3hQb1dmg@mail.gmail.com>
 by: Dioumacor FAYE - Tue, 23 Aug 2022 15:52 UTC

Hello, I think you can try this.
I use Python 3.7.11 in jupyter Notebook
import xarray as xr
path = '/media/lpaosf/LPAOSF_DATA/maman/r1mm_r20mm_sdii/
chirps-v2.0.days_p05_r1mm_WA1981-2018.nc'
# Open the NetCDF files in xr.DataSet
r1mm = xr.open_dataset(path)
time=r1mm['time'].data
lon =r1mm['longitude'].data
lat =r1mm['latitude'].data
data_r1mm=r1mm['r1mm'].data

Le mar. 23 août 2022 à 15:38, Jorge Conrado Conforte Conforte <
jorgconforte@gmail.com> a écrit :

> Hi,
>
> I'm reading my netcdf data air.2m.mon.ltm.nc.
> I used the netcdf4 and I didn't have message when i read my data. But if I
> use the xarray I had this message:
>
>
> /home/conrado/.conda/envs/meuambi/lib/python3.8/site-packages/xarray/backends/plugins.py:61:
> RuntimeWarning: Engine 'cfgrib' loading failed:
> module 'cfgrib.messages' has no attribute 'DEFAULT_INDEXPATH'
> warnings.warn(f"Engine {name!r} loading failed:\n{ex}", RuntimeWarning)
>
> /home/conrado/.conda/envs/meuambi/lib/python3.8/site-packages/xarray/coding/times.py:673:
> SerializationWarning: Unable to decode time axis into full numpy.datetime64
> objects, continuing using cftime.datetime objects instead, reason: dates
> out of range
> dtype = _decode_cf_datetime_dtype(data, units, calendar, self.use_cftime)
>
> /home/conrado/.conda/envs/meuambi/lib/python3.8/site-packages/xarray/core/indexing.py:423:
> SerializationWarning: Unable to decode time axis into full numpy.datetime64
> objects, continuing using cftime.datetime objects instead, reason: dates
> out of range
> return np.asarray(array[self.key], dtype=None)
>
> What can I do to solve this message.
>
> Thanks,
>
> Conrado
> --
> https://mail.python.org/mailman/listinfo/python-list
>

--
Bien à vous,
--------------------- ------------------ -----------------
-------------------- -----------------
Dioumacor FAYE doctorant au LPAOSF/ESP/UCAD/BP 5085 Dakar-Fann, Sénégal.
Tel labo: (00221) 33 825 93 64
Email: d.faye20171634@zig.univ.sn <d.fayye20171634@univ.zig.sn> Tel:
+221773475098 +221783484308
Physicien en herbe
Pseudo Skype: dioumacorfaye

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor