[Met_help] [rt.rap.ucar.edu #89718] History for python embedding for Gaussian grid

Randy Bullock via RT met_help at ucar.edu
Tue Apr 16 13:32:42 MDT 2019


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Hi MET-Help,

I read MET supports a Gaussian grid, and see the corresponding core here:
/glade/p/ral/jntp/MET/MET_releases/8.0/met-8.0/src/libcode/vx_grid/gaussian_grid_defs.h


When I tried to pass "met_data" and "attrs" of Gaussian grid in python
embedding, it gives following error:

{'long_name': 'totalCloudFrac', 'init': '20181105_060000', 'valid':
'20181105_060000', 'grid': {'nx': 1280, 'ny': 640, 'lon_zero': 0, 'type':
'Gaussian', 'name': 'ERA5'}, 'name': 'ERA5', 'lead': '060000', 'level':
'ALL', 'units': '%', 'accum': '000000'}
ERROR  :
ERROR  : grid_from_python_dict() -> bad projection type: "Gaussian"
ERROR  :
ERROR: For GFS, /glade/p/ral/jntp/MET/MET_releases/8.0/bin//grid_stat
crashed  Exit status: 1


And I found there is no definition for Gaussian grid in :
/glade/p/ral/jntp/MET/MET_releases/8.0/met-8.0/src/libcode/vx_data2d_python/grid_from_python_dict.cc

but it exists in :
/glade/p/ral/jntp/MET/MET_releases/8.0/met-8.0/src/libcode/vx_nc_util/grid_output.cc

Is this a bug related to python embedding routine ?

Thank you,

BJ


--
Byoung-Joo (BJ) Jung
National Center for Atmospheric Research
Mesoscale and Microscale Meteorology Laboratory
PO Box 3000, Boulder CO 80307
Phone: 303-497-8151


----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: python embedding for Gaussian grid
From: Randy Bullock
Time: Tue Apr 16 11:44:34 2019

Hello -

The MET python embedding is currently just a beta release, and does
not
support all the features that are included in MET generally.  At this
time
the Python embedding does not support Gaussian grids.  This will be
included in a future release.

Sorry.  I know that's not the answer you were probably hoping for.

Randy

On Fri, Apr 12, 2019 at 3:59 PM bjung at ucar.edu via RT
<met_help at ucar.edu>
wrote:

>
> Fri Apr 12 15:59:04 2019: Request 89718 was acted upon.
> Transaction: Ticket created by bjung at ucar.edu
>        Queue: met_help
>      Subject: python embedding for Gaussian grid
>        Owner: Nobody
>   Requestors: bjung at ucar.edu
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89718 >
>
>
> Hi MET-Help,
>
> I read MET supports a Gaussian grid, and see the corresponding core
here:
>
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_grid/gaussian_grid_defs.h
>
>
> When I tried to pass "met_data" and "attrs" of Gaussian grid in
python
> embedding, it gives following error:
>
> {'long_name': 'totalCloudFrac', 'init': '20181105_060000', 'valid':
> '20181105_060000', 'grid': {'nx': 1280, 'ny': 640, 'lon_zero': 0,
'type':
> 'Gaussian', 'name': 'ERA5'}, 'name': 'ERA5', 'lead': '060000',
'level':
> 'ALL', 'units': '%', 'accum': '000000'}
> ERROR  :
> ERROR  : grid_from_python_dict() -> bad projection type: "Gaussian"
> ERROR  :
> ERROR: For GFS,
/glade/p/ral/jntp/MET/MET_releases/8.0/bin//grid_stat
> crashed  Exit status: 1
>
>
> And I found there is no definition for Gaussian grid in :
>
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_data2d_python/grid_from_python_dict.cc
>
> but it exists in :
>
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_nc_util/grid_output.cc
>
> Is this a bug related to python embedding routine ?
>
> Thank you,
>
> BJ
>
>
> --
> Byoung-Joo (BJ) Jung
> National Center for Atmospheric Research
> Mesoscale and Microscale Meteorology Laboratory
> PO Box 3000, Boulder CO 80307
> Phone: 303-497-8151
>
>

------------------------------------------------
Subject: python embedding for Gaussian grid
From: bjung at ucar.edu
Time: Tue Apr 16 12:25:48 2019

Thank you for your answer, Randy.

One more question,
Can MET ingest Grib format in Gaussian grid, or CF-compliant NetCDF
format
in Gaussian Grid ?

Thank you,
BJ


On Tue, Apr 16, 2019 at 11:44 AM Randy Bullock via RT
<met_help at ucar.edu>
wrote:

> Hello -
>
> The MET python embedding is currently just a beta release, and does
not
> support all the features that are included in MET generally.  At
this time
> the Python embedding does not support Gaussian grids.  This will be
> included in a future release.
>
> Sorry.  I know that's not the answer you were probably hoping for.
>
> Randy
>
> On Fri, Apr 12, 2019 at 3:59 PM bjung at ucar.edu via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > Fri Apr 12 15:59:04 2019: Request 89718 was acted upon.
> > Transaction: Ticket created by bjung at ucar.edu
> >        Queue: met_help
> >      Subject: python embedding for Gaussian grid
> >        Owner: Nobody
> >   Requestors: bjung at ucar.edu
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89718 >
> >
> >
> > Hi MET-Help,
> >
> > I read MET supports a Gaussian grid, and see the corresponding
core here:
> >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_grid/gaussian_grid_defs.h
> >
> >
> > When I tried to pass "met_data" and "attrs" of Gaussian grid in
python
> > embedding, it gives following error:
> >
> > {'long_name': 'totalCloudFrac', 'init': '20181105_060000',
'valid':
> > '20181105_060000', 'grid': {'nx': 1280, 'ny': 640, 'lon_zero': 0,
'type':
> > 'Gaussian', 'name': 'ERA5'}, 'name': 'ERA5', 'lead': '060000',
'level':
> > 'ALL', 'units': '%', 'accum': '000000'}
> > ERROR  :
> > ERROR  : grid_from_python_dict() -> bad projection type:
"Gaussian"
> > ERROR  :
> > ERROR: For GFS,
/glade/p/ral/jntp/MET/MET_releases/8.0/bin//grid_stat
> > crashed  Exit status: 1
> >
> >
> > And I found there is no definition for Gaussian grid in :
> >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_data2d_python/grid_from_python_dict.cc
> >
> > but it exists in :
> >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_nc_util/grid_output.cc
> >
> > Is this a bug related to python embedding routine ?
> >
> > Thank you,
> >
> > BJ
> >
> >
> > --
> > Byoung-Joo (BJ) Jung
> > National Center for Atmospheric Research
> > Mesoscale and Microscale Meteorology Laboratory
> > PO Box 3000, Boulder CO 80307
> > Phone: 303-497-8151
> >
> >
>
>

--

Byoung-Joo (BJ) Jung

National Center for Atmospheric Research

Mesoscale and Microscale Meteorology Laboratory

PO Box 3000, Boulder CO 80307

Phone: 303-497-8151

------------------------------------------------
Subject: python embedding for Gaussian grid
From: Randy Bullock
Time: Tue Apr 16 12:31:52 2019

Hello again -

I had a look at the MET library code, and I believe that Gaussian
grids
should work with data in GRIB2 format.

Randy

On Tue, Apr 16, 2019 at 12:25 PM bjung at ucar.edu via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89718 >
>
> Thank you for your answer, Randy.
>
> One more question,
> Can MET ingest Grib format in Gaussian grid, or CF-compliant NetCDF
format
> in Gaussian Grid ?
>
> Thank you,
> BJ
>
>
> On Tue, Apr 16, 2019 at 11:44 AM Randy Bullock via RT
<met_help at ucar.edu>
> wrote:
>
> > Hello -
> >
> > The MET python embedding is currently just a beta release, and
does not
> > support all the features that are included in MET generally.  At
this
> time
> > the Python embedding does not support Gaussian grids.  This will
be
> > included in a future release.
> >
> > Sorry.  I know that's not the answer you were probably hoping for.
> >
> > Randy
> >
> > On Fri, Apr 12, 2019 at 3:59 PM bjung at ucar.edu via RT
<met_help at ucar.edu
> >
> > wrote:
> >
> > >
> > > Fri Apr 12 15:59:04 2019: Request 89718 was acted upon.
> > > Transaction: Ticket created by bjung at ucar.edu
> > >        Queue: met_help
> > >      Subject: python embedding for Gaussian grid
> > >        Owner: Nobody
> > >   Requestors: bjung at ucar.edu
> > >       Status: new
> > >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89718
> >
> > >
> > >
> > > Hi MET-Help,
> > >
> > > I read MET supports a Gaussian grid, and see the corresponding
core
> here:
> > >
> > >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_grid/gaussian_grid_defs.h
> > >
> > >
> > > When I tried to pass "met_data" and "attrs" of Gaussian grid in
python
> > > embedding, it gives following error:
> > >
> > > {'long_name': 'totalCloudFrac', 'init': '20181105_060000',
'valid':
> > > '20181105_060000', 'grid': {'nx': 1280, 'ny': 640, 'lon_zero':
0,
> 'type':
> > > 'Gaussian', 'name': 'ERA5'}, 'name': 'ERA5', 'lead': '060000',
'level':
> > > 'ALL', 'units': '%', 'accum': '000000'}
> > > ERROR  :
> > > ERROR  : grid_from_python_dict() -> bad projection type:
"Gaussian"
> > > ERROR  :
> > > ERROR: For GFS,
/glade/p/ral/jntp/MET/MET_releases/8.0/bin//grid_stat
> > > crashed  Exit status: 1
> > >
> > >
> > > And I found there is no definition for Gaussian grid in :
> > >
> > >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_data2d_python/grid_from_python_dict.cc
> > >
> > > but it exists in :
> > >
> > >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_nc_util/grid_output.cc
> > >
> > > Is this a bug related to python embedding routine ?
> > >
> > > Thank you,
> > >
> > > BJ
> > >
> > >
> > > --
> > > Byoung-Joo (BJ) Jung
> > > National Center for Atmospheric Research
> > > Mesoscale and Microscale Meteorology Laboratory
> > > PO Box 3000, Boulder CO 80307
> > > Phone: 303-497-8151
> > >
> > >
> >
> >
>
> --
>
> Byoung-Joo (BJ) Jung
>
> National Center for Atmospheric Research
>
> Mesoscale and Microscale Meteorology Laboratory
>
> PO Box 3000, Boulder CO 80307
>
> Phone: 303-497-8151
>
>

------------------------------------------------
Subject: python embedding for Gaussian grid
From: bjung at ucar.edu
Time: Tue Apr 16 12:36:11 2019

Thanks, Randy.

It helps a lot!

BJ

On Tue, Apr 16, 2019 at 12:31 PM Randy Bullock via RT
<met_help at ucar.edu>
wrote:

> Hello again -
>
> I had a look at the MET library code, and I believe that Gaussian
grids
> should work with data in GRIB2 format.
>
> Randy
>
> On Tue, Apr 16, 2019 at 12:25 PM bjung at ucar.edu via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89718 >
> >
> > Thank you for your answer, Randy.
> >
> > One more question,
> > Can MET ingest Grib format in Gaussian grid, or CF-compliant
NetCDF
> format
> > in Gaussian Grid ?
> >
> > Thank you,
> > BJ
> >
> >
> > On Tue, Apr 16, 2019 at 11:44 AM Randy Bullock via RT
<met_help at ucar.edu
> >
> > wrote:
> >
> > > Hello -
> > >
> > > The MET python embedding is currently just a beta release, and
does not
> > > support all the features that are included in MET generally.  At
this
> > time
> > > the Python embedding does not support Gaussian grids.  This will
be
> > > included in a future release.
> > >
> > > Sorry.  I know that's not the answer you were probably hoping
for.
> > >
> > > Randy
> > >
> > > On Fri, Apr 12, 2019 at 3:59 PM bjung at ucar.edu via RT <
> met_help at ucar.edu
> > >
> > > wrote:
> > >
> > > >
> > > > Fri Apr 12 15:59:04 2019: Request 89718 was acted upon.
> > > > Transaction: Ticket created by bjung at ucar.edu
> > > >        Queue: met_help
> > > >      Subject: python embedding for Gaussian grid
> > > >        Owner: Nobody
> > > >   Requestors: bjung at ucar.edu
> > > >       Status: new
> > > >  Ticket <URL:
> https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89718
> > >
> > > >
> > > >
> > > > Hi MET-Help,
> > > >
> > > > I read MET supports a Gaussian grid, and see the corresponding
core
> > here:
> > > >
> > > >
> > >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_grid/gaussian_grid_defs.h
> > > >
> > > >
> > > > When I tried to pass "met_data" and "attrs" of Gaussian grid
in
> python
> > > > embedding, it gives following error:
> > > >
> > > > {'long_name': 'totalCloudFrac', 'init': '20181105_060000',
'valid':
> > > > '20181105_060000', 'grid': {'nx': 1280, 'ny': 640, 'lon_zero':
0,
> > 'type':
> > > > 'Gaussian', 'name': 'ERA5'}, 'name': 'ERA5', 'lead': '060000',
> 'level':
> > > > 'ALL', 'units': '%', 'accum': '000000'}
> > > > ERROR  :
> > > > ERROR  : grid_from_python_dict() -> bad projection type:
"Gaussian"
> > > > ERROR  :
> > > > ERROR: For GFS,
/glade/p/ral/jntp/MET/MET_releases/8.0/bin//grid_stat
> > > > crashed  Exit status: 1
> > > >
> > > >
> > > > And I found there is no definition for Gaussian grid in :
> > > >
> > > >
> > >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_data2d_python/grid_from_python_dict.cc
> > > >
> > > > but it exists in :
> > > >
> > > >
> > >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_nc_util/grid_output.cc
> > > >
> > > > Is this a bug related to python embedding routine ?
> > > >
> > > > Thank you,
> > > >
> > > > BJ
> > > >
> > > >
> > > > --
> > > > Byoung-Joo (BJ) Jung
> > > > National Center for Atmospheric Research
> > > > Mesoscale and Microscale Meteorology Laboratory
> > > > PO Box 3000, Boulder CO 80307
> > > > Phone: 303-497-8151
> > > >
> > > >
> > >
> > >
> >
> > --
> >
> > Byoung-Joo (BJ) Jung
> >
> > National Center for Atmospheric Research
> >
> > Mesoscale and Microscale Meteorology Laboratory
> >
> > PO Box 3000, Boulder CO 80307
> >
> > Phone: 303-497-8151
> >
> >
>
>

--

Byoung-Joo (BJ) Jung

National Center for Atmospheric Research

Mesoscale and Microscale Meteorology Laboratory

PO Box 3000, Boulder CO 80307

Phone: 303-497-8151

------------------------------------------------
Subject: python embedding for Gaussian grid
From: Randy Bullock
Time: Tue Apr 16 13:30:02 2019

Glad to help, BJ!

I'll close out this ticket, then.

Randy

On Tue, Apr 16, 2019 at 12:36 PM bjung at ucar.edu via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89718 >
>
> Thanks, Randy.
>
> It helps a lot!
>
> BJ
>
> On Tue, Apr 16, 2019 at 12:31 PM Randy Bullock via RT
<met_help at ucar.edu>
> wrote:
>
> > Hello again -
> >
> > I had a look at the MET library code, and I believe that Gaussian
grids
> > should work with data in GRIB2 format.
> >
> > Randy
> >
> > On Tue, Apr 16, 2019 at 12:25 PM bjung at ucar.edu via RT <
> met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89718 >
> > >
> > > Thank you for your answer, Randy.
> > >
> > > One more question,
> > > Can MET ingest Grib format in Gaussian grid, or CF-compliant
NetCDF
> > format
> > > in Gaussian Grid ?
> > >
> > > Thank you,
> > > BJ
> > >
> > >
> > > On Tue, Apr 16, 2019 at 11:44 AM Randy Bullock via RT <
> met_help at ucar.edu
> > >
> > > wrote:
> > >
> > > > Hello -
> > > >
> > > > The MET python embedding is currently just a beta release, and
does
> not
> > > > support all the features that are included in MET generally.
At this
> > > time
> > > > the Python embedding does not support Gaussian grids.  This
will be
> > > > included in a future release.
> > > >
> > > > Sorry.  I know that's not the answer you were probably hoping
for.
> > > >
> > > > Randy
> > > >
> > > > On Fri, Apr 12, 2019 at 3:59 PM bjung at ucar.edu via RT <
> > met_help at ucar.edu
> > > >
> > > > wrote:
> > > >
> > > > >
> > > > > Fri Apr 12 15:59:04 2019: Request 89718 was acted upon.
> > > > > Transaction: Ticket created by bjung at ucar.edu
> > > > >        Queue: met_help
> > > > >      Subject: python embedding for Gaussian grid
> > > > >        Owner: Nobody
> > > > >   Requestors: bjung at ucar.edu
> > > > >       Status: new
> > > > >  Ticket <URL:
> > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89718
> > > >
> > > > >
> > > > >
> > > > > Hi MET-Help,
> > > > >
> > > > > I read MET supports a Gaussian grid, and see the
corresponding core
> > > here:
> > > > >
> > > > >
> > > >
> > >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_grid/gaussian_grid_defs.h
> > > > >
> > > > >
> > > > > When I tried to pass "met_data" and "attrs" of Gaussian grid
in
> > python
> > > > > embedding, it gives following error:
> > > > >
> > > > > {'long_name': 'totalCloudFrac', 'init': '20181105_060000',
'valid':
> > > > > '20181105_060000', 'grid': {'nx': 1280, 'ny': 640,
'lon_zero': 0,
> > > 'type':
> > > > > 'Gaussian', 'name': 'ERA5'}, 'name': 'ERA5', 'lead':
'060000',
> > 'level':
> > > > > 'ALL', 'units': '%', 'accum': '000000'}
> > > > > ERROR  :
> > > > > ERROR  : grid_from_python_dict() -> bad projection type:
"Gaussian"
> > > > > ERROR  :
> > > > > ERROR: For GFS,
> /glade/p/ral/jntp/MET/MET_releases/8.0/bin//grid_stat
> > > > > crashed  Exit status: 1
> > > > >
> > > > >
> > > > > And I found there is no definition for Gaussian grid in :
> > > > >
> > > > >
> > > >
> > >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_data2d_python/grid_from_python_dict.cc
> > > > >
> > > > > but it exists in :
> > > > >
> > > > >
> > > >
> > >
> >
> /glade/p/ral/jntp/MET/MET_releases/8.0/met-
8.0/src/libcode/vx_nc_util/grid_output.cc
> > > > >
> > > > > Is this a bug related to python embedding routine ?
> > > > >
> > > > > Thank you,
> > > > >
> > > > > BJ
> > > > >
> > > > >
> > > > > --
> > > > > Byoung-Joo (BJ) Jung
> > > > > National Center for Atmospheric Research
> > > > > Mesoscale and Microscale Meteorology Laboratory
> > > > > PO Box 3000, Boulder CO 80307
> > > > > Phone: 303-497-8151
> > > > >
> > > > >
> > > >
> > > >
> > >
> > > --
> > >
> > > Byoung-Joo (BJ) Jung
> > >
> > > National Center for Atmospheric Research
> > >
> > > Mesoscale and Microscale Meteorology Laboratory
> > >
> > > PO Box 3000, Boulder CO 80307
> > >
> > > Phone: 303-497-8151
> > >
> > >
> >
> >
>
> --
>
> Byoung-Joo (BJ) Jung
>
> National Center for Atmospheric Research
>
> Mesoscale and Microscale Meteorology Laboratory
>
> PO Box 3000, Boulder CO 80307
>
> Phone: 303-497-8151
>
>

------------------------------------------------
Subject: python embedding for Gaussian grid
From: Randy Bullock
Time: Tue Apr 16 13:32:41 2019

Resolved.

------------------------------------------------


More information about the Met_help mailing list