ecmwf / cfgrib

A Python interface to map GRIB files to the NetCDF Common Data Model following the CF Convention using ecCodes
Apache License 2.0
393 stars 75 forks source link

Working with Canadian Grib2 data #155

Open Mabus00 opened 4 years ago

Mabus00 commented 4 years ago

I'm a serious newby but no matter what I do cfgrib doesn't recognize dimensions in canadian grib2. What am I not understanding?

alexamici commented 4 years ago

Can you share a link to GRIB file with the problem data? (I have no idea what a "canadian grib2" is).

Mabus00 commented 4 years ago

Alex,

Thanks for responding. I’ve attached my Jupyter Notebook code so you can see what I am trying to do – note the dates of the data are files I downloaded a few days ago. I’m using x (UGRD) and y (VGRD) winds. You can try with current data - Canadian grib2 data is available from our Meteorological Service of Canada (MSC) Datamart website and here’s a link to modelled data I am trying to use https://dd.weather.gc.ca/model_gem_regional/10km/grib2/00/001/. If you go back in the parent directory you’ll find some explanation on file name nomenclature and content, and greater access to many data files. A google search also provides a lot of links and information.

I tried different approaches, added a time dimension, used cf2cdm to ensure the coordinates were in an acceptable format, used cfgrib module methods, etc. and I keep getting the same ValueError message. I was starting to investigate how to ensure the dimensions are recognized when I thought about emailing you to see if you can help. I know there are lots of “flavours” of grib and grib2 so I’m thinking maybe that’s the issue. Thanks again.

Cheers,

Wayne M. Renaud

902-266-8476

From: alexamici [mailto:notifications@github.com] Sent: August-10-20 4:16 AM To: ecmwf/cfgrib Cc: Mabus00; Author Subject: Re: [ecmwf/cfgrib] Working with Canadian Grib2 data (#155)

Can you share a link to GRIB file with the problem data? (I have no idea what a "canadian grib2" is).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ecmwf/cfgrib/issues/155#issuecomment-671200017 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSCXL5H6DRBVF4RRK74WM3R76NCRANCNFSM4PZK5EYQ . https://github.com/notifications/beacon/ADSCXL67GVZ4AHBOV3FAV7LR76NCRA5CNFSM4PZK5EY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFAA3GEI.gif

Mabus00 commented 4 years ago

Hi Alex,

I haven’t heard back from you on this. Have you had an opportunity to look at the issue?

Cheers,

Wayne M. Renaud

902-266-8476

From: wayne.renaud [mailto:wayne.renaud@gmail.com] Sent: August-10-20 10:17 AM To: 'ecmwf/cfgrib'; 'ecmwf/cfgrib' Cc: 'Author' Subject: RE: [ecmwf/cfgrib] Working with Canadian Grib2 data (#155)

Alex,

Thanks for responding. I’ve attached my Jupyter Notebook code so you can see what I am trying to do – note the dates of the data are files I downloaded a few days ago. I’m using x (UGRD) and y (VGRD) winds. You can try with current data - Canadian grib2 data is available from our Meteorological Service of Canada (MSC) Datamart website and here’s a link to modelled data I am trying to use https://dd.weather.gc.ca/model_gem_regional/10km/grib2/00/001/. If you go back in the parent directory you’ll find some explanation on file name nomenclature and content, and greater access to many data files. A google search also provides a lot of links and information.

I tried different approaches, added a time dimension, used cf2cdm to ensure the coordinates were in an acceptable format, used cfgrib module methods, etc. and I keep getting the same ValueError message. I was starting to investigate how to ensure the dimensions are recognized when I thought about emailing you to see if you can help. I know there are lots of “flavours” of grib and grib2 so I’m thinking maybe that’s the issue. Thanks again.

Cheers,

Wayne M. Renaud

902-266-8476

From: alexamici [mailto:notifications@github.com] Sent: August-10-20 4:16 AM To: ecmwf/cfgrib Cc: Mabus00; Author Subject: Re: [ecmwf/cfgrib] Working with Canadian Grib2 data (#155)

Can you share a link to GRIB file with the problem data? (I have no idea what a "canadian grib2" is).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ecmwf/cfgrib/issues/155#issuecomment-671200017 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSCXL5H6DRBVF4RRK74WM3R76NCRANCNFSM4PZK5EYQ . https://github.com/notifications/beacon/ADSCXL67GVZ4AHBOV3FAV7LR76NCRA5CNFSM4PZK5EY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFAA3GEI.gif