Giter Site home page Giter Site logo

ecmwf / notebook-examples Goto Github PK

View Code? Open in Web Editor NEW
183.0 23.0 67.0 182.77 MB

Example notebooks showing how to work with ECMWF services and data

License: Apache License 2.0

Jupyter Notebook 98.74% GLSL 1.26%
notebook visualisation ecmwf ecmwf-api magics python

notebook-examples's People

Contributors

iainrussell avatar milanavuckovic avatar stephansiemen avatar sylvielamythepaut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

notebook-examples's Issues

Issue in medium-mslp-rain notebook

What happened?

I tried the medium-mslp-rain.ipynb notebook with Binder, and when computing the total precipitation between steps 12 24 UTC it returns a TypeError:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[22], line 3
      1 tp = (tp_24 - tp_12)
----> 3 tp.ls()

File /srv/conda/envs/notebook/lib/python3.10/site-packages/metview/metviewpy/fieldset.py:774, in Fieldset.ls(self, **kwargs)
    773 def ls(self, **kwargs):
--> 774     return self._get_db().ls(**kwargs)

File /srv/conda/envs/notebook/lib/python3.10/site-packages/metview/metviewpy/indexdb.py:465, in FieldsetDb.ls(self, extra_keys, filter, no_print)
    463 keys = list(ls_keys)
    464 keys.append("_msgIndex1")
--> 465 df = df[keys]
    466 df = df.sort_values("_msgIndex1")
    467 df = df.rename(columns={"_msgIndex1": "Message"})

TypeError: 'NoneType' object is not subscriptable

What are the steps to reproduce the bug?

Run the notebook with Binder as is.

Version

Latest

Platform (OS and architecture)

Binder

Relevant log output

No response

Accompanying data

No response

Organisation

Eurac Research

plotting error

Hi there,
I am a new Bee and trying to plot ecmwf forecast chart using the notebook script for 850 Temp and 500 Geopotential height, but getting the following error. I already downloaded the api key and code runs fine until it comes to the plotting functions where i get the following errors,

Any help in fixing the error will be greatly appreciated.

Cheers,
Basit

proj_create: /home/bak8122/.conda/envs/op13/share/proj/proj.db contains DATABASE.LAYOUT.VERSION.MINOR = 2 whereas a number >= 3 is expected. It comes from another PROJ installation.
proj_create: no database context specified
EXCEPTION in py_coast(): ProjP: cannot create crs to crs from [EPSG:4326] to [+proj=stere +lat_0=90 +lat_ts=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m]
Traceback (most recent call last):
File "", line 1, in
File "/home/bak8122/.conda/envs/op13/lib/python3.11/site-packages/magpye/geomap.py", line 607, in show
return self._execute()
^^^^^^^^^^^^^^^
File "/home/bak8122/.conda/envs/op13/lib/python3.11/site-packages/magpye/geomap.py", line 628, in _execute
result = magics.plot(*(macro.execute() for macro in queue))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bak8122/.conda/envs/op13/lib/python3.11/site-packages/Magics/macro.py", line 701, in plot
return _plot(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/bak8122/.conda/envs/op13/lib/python3.11/site-packages/Magics/macro.py", line 591, in _plot
_execute(n)
File "/home/bak8122/.conda/envs/op13/lib/python3.11/site-packages/Magics/macro.py", line 569, in _execute
o.execute()
File "/home/bak8122/.conda/envs/op13/lib/python3.11/site-packages/Magics/macro.py", line 290, in execute
self.action()
File "/home/bak8122/.conda/envs/op13/lib/python3.11/site-packages/Magics/Magics.py", line 132, in wrapped
raise MagicsError(char_to_string(err))
Magics.Magics.MagicsError: ProjP: cannot create crs to crs from [EPSG:4326] to [+proj=stere +lat_0=90 +lat_ts=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.