[QGIS-Developer] Problems opening .grib data in QGIS 3.4

Saber Razmjooei saber.razmjooei at lutraconsulting.co.uk
Wed Nov 7 22:09:03 PST 2018


Hi Tim,

I tried your dataset and got the same error in QGIS. Then when I tried to
download the netcdf version (which sometimes works better with mesh in
QGIS):

#!/usr/local/bin/python
import cdsapi
c = cdsapi.Client()
c.retrieve(
    "reanalysis-era5-complete",
{
    "class": "ea",
    "dataset": "era5",
    "date": "2018-08-01",
    "domain": "g",
    "expver": "1",
    "number": "0/1/2/3/4/5/6/7/8/9",
    "param": "238.140",
    "step": "0",
    "stream": "ewda",
    "time": "06:00:00/18:00:00",
    "type": "fc",
    "format": "netcdf",
    "target": "output.nc",
}, "global-waves-2018-08-01-0600-1800.nc")


I got he following error:
First GRIB is not on a regular lat/lon grid or on a regular Gaussian grid.
Exiting

For your example, you can use probably one of these datasets (I have tried
aerosols and they seem to open fine in QGIS):
https://atmosphere.copernicus.eu/catalogue#/

Let me know if you have any problems.

Cheers
Saber


On Thu, 8 Nov 2018 at 05:06, Tim Sutton <tim at kartoza.com> wrote:

> Hi All./ Martin
>
>
> I’m trying to get some mesh data for a presentation to a bunch of climate
> geeks later today. I tried grabbing a sample dataset from ECMWF/Copernicus
> like this:
>
> #!/usr/local/bin/python
> import cdsapi
> c = cdsapi.Client()
> c.retrieve(
>     "reanalysis-era5-complete",
> {
>     "class": "ea",
>     "dataset": "era5",
>     "date": "2018-08-01",
>     "domain": "g",
>     "expver": "1",
>     "number": "0/1/2/3/4/5/6/7/8/9",
>     "param": "238.140",
>     "step": "0/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18",
>     "stream": "ewda",
>     "time": "06:00:00/18:00:00",
>     "type": "fc",
>     "target": "output",
> }, "global-waves-2018-08-01-0600-1800.grib")
>
> ~
>
>
>
> When trying to add it as a mesh in Data Source Manager it gives a ‘file
> not supported’ error. So two questions:
>
> 1) anything obvious I am doing wrong?
> 2) where is the best place to get some demo .grib or NetCDF data that I
> can use to show off the cool new mesh stuff in 3.4 (with vector arrows etc).
>
> Regards
>
> Tim
>
>>
>
>
>
>
>
>
> *Tim Sutton*
>
> *Co-founder:* Kartoza
> *Ex Project chair:* QGIS.org
>
> Visit http://kartoza.com to find out about open source:
>
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
>
> *Skype*: timlinux
> *IRC:* timlinux on #qgis at freenode.net
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Saber Razmjooei
www.lutraconsulting.co.uk
+44 (0)7568 129733
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181108/e4f762c9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KartozaNewLogoThumbnail.jpg
Type: image/jpeg
Size: 6122 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181108/e4f762c9/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KartozaNewLogoThumbnail.jpg
Type: image/jpeg
Size: 6122 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20181108/e4f762c9/attachment-0003.jpg>


More information about the QGIS-Developer mailing list