[Met_help] [rt.rap.ucar.edu #76489] History for Problem running shift_data_plane tool

John Halley Gotway via RT met_help at ucar.edu
Wed Jun 1 10:27:43 MDT 2016


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

Hi,
I encountered some problem while running the shift_data_tool.
this is my statement for the shift_data_plane:
shift_data_plane \
gfs_4_20150805_0000_012.grb2 \
shift_APCP.nc \
'name = "APCP";level="surface";' \
-from 30.0000 116.5000 \
-to 29.5000 117.0000 \
-v 2


At first,the erro shows:
DEBUG 1: Reading input file: gfs_4_20150803_0000_012.grb2
shift.sh: line 8: 20027 Segmentation fault      (core dumped) shift_data_plane gfs_4_20150803_0000_012.grb2 shift_APCP.nc 'name = "APCP";level="surface";' -from 30.0000 116.5000 -to 29.5000 117.0000 -v 2


I use gdb to look at the core file,and it wrote:
Core was generated by `shift_data_plane gfs_4_20150803_0000_012.grb2 shift_APCP.nc name = "APCP";level'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000440b93 in ?? ()


Then I tried another input file,and the erro was different:
DEBUG 1: Reading input file: gfs_4_20150804_0000_012.grb2
g2_info: Invalid section number found in GRIB message: 0
WARNING: 
WARNING: GRIB2 records not found in input file 'gfs_4_20150804_0000_012.grb2'
WARNING: 
ERROR  : 
ERROR  : Met2dDataFileFactory::new_met_2d_data_file() -> error opening file "gfs_4_20150804_0000_012.grb2"
ERROR  : 


I use wgrib2 to see the information of the grb2 file :
243:42927983:d=2015080300:APCP:surface:18-24 hour acc fcst: 
so I write the statement this way:'name = "APCP";level="surface";'
I am not sure if it is right.I have tried many other ways to define the  'field_string',but it did not work
can you tell me the right way to define the 'field_string'?


I have also tried to use wgrib2 to make a  smaller grib file that only contain APCP ,but it did not work .It no longer stop by Segmentation fault,but it keeps showing the second type of erro


I don't know where the problem is.Can you help me figure it out?I attach a grib file that only contain APCP


Thanks a lot,
Zoey


  





--


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

Subject: Problem running shift_data_plane tool
From: John Halley Gotway
Time: Wed May 25 09:52:18 2016

Zoey,

I see that you're having trouble running the shift_data_plane tool on
some
GRIB2 data.  Thanks for sending the sample file you're using.  When I
run
it on my met-5.1 installation it works fine.  Of course, I'd like to
reproduce your segfault if possible so that we can fix it.  We'd
always
prefer to write a useful error message instead of letting the code
segfault.

Please try running the following command:
   shift_data_plane gfs_4_20150804_0000_012.grb2 shift_APCP.nc 'name =
"APCP"; level = "A6";' -from 30.0000 116.5000 -to 29.5000 117.0000 -v
2

Notice that I set the level to "A6" to indicate that we want to use
the
record with 6 hours of accumulation (A).  Setting the level string is
discussed on page 49 of the met-5.1 user's guide:

http://www.dtcenter.org/met/users/docs/users_guide/MET_Users_Guide_v5.1.pdf

If that command fails, then you could also try running the
plot_data_plane
tool on the same file:
   plot_data_plane gfs_4_20150804_0000_012.grb2 plot_APCP.ps 'name =
"APCP"; level = "A6";'

I ran that command, converted the PostScript output to PNG format, and
attached the result.

If both shift_data_plane and plot_data_plane fail for this file, then
the
problem might be in the GRIB2 library to which you linked at build
time.  I
would make sure of the following...
  - You configured MET with the "--enable-grib2" option to compile
GRIB2
support.
  - The GRIB2 library to which you're linking was compiled with a
compatible version of the compiler you used for MET.

Here's a page from the MET online tutorial about compiling these
libraries:

http://www.dtcenter.org/met/users/support/online_tutorial/METv5.0/compilation/req_libs.php

Also, you could send me the "met-5.1/config.log" file from the top-
level
MET directory.  That would give me a lot of information about how MET
was
configured/compiled.

Thanks,
John Halley Gotway
met_help at ucar.edu


On Wed, May 25, 2016 at 1:52 AM, zhuangyuan via RT <met_help at ucar.edu>
wrote:

>
> Wed May 25 01:52:25 2016: Request 76489 was acted upon.
> Transaction: Ticket created by zhuangyuanzoey at 163.com
>        Queue: met_help
>      Subject: Problem running shift_data_plane tool
>        Owner: Nobody
>   Requestors: zhuangyuanzoey at 163.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=76489 >
>
>
> Hi,
> I encountered some problem while running the shift_data_tool.
> this is my statement for the shift_data_plane:
> shift_data_plane \
> gfs_4_20150805_0000_012.grb2 \
> shift_APCP.nc \
> 'name = "APCP";level="surface";' \
> -from 30.0000 116.5000 \
> -to 29.5000 117.0000 \
> -v 2
>
>
> At first,the erro shows:
> DEBUG 1: Reading input file: gfs_4_20150803_0000_012.grb2
> shift.sh: line 8: 20027 Segmentation fault      (core dumped)
> shift_data_plane gfs_4_20150803_0000_012.grb2 shift_APCP.nc 'name =
> "APCP";level="surface";' -from 30.0000 116.5000 -to 29.5000 117.0000
-v 2
>
>
> I use gdb to look at the core file,and it wrote:
> Core was generated by `shift_data_plane gfs_4_20150803_0000_012.grb2
> shift_APCP.nc name = "APCP";level'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0x0000000000440b93 in ?? ()
>
>
> Then I tried another input file,and the erro was different:
> DEBUG 1: Reading input file: gfs_4_20150804_0000_012.grb2
> g2_info: Invalid section number found in GRIB message: 0
> WARNING:
> WARNING: GRIB2 records not found in input file
> 'gfs_4_20150804_0000_012.grb2'
> WARNING:
> ERROR  :
> ERROR  : Met2dDataFileFactory::new_met_2d_data_file() -> error
opening
> file "gfs_4_20150804_0000_012.grb2"
> ERROR  :
>
>
> I use wgrib2 to see the information of the grb2 file :
> 243:42927983:d=2015080300:APCP:surface:18-24 hour acc fcst:
> so I write the statement this way:'name = "APCP";level="surface";'
> I am not sure if it is right.I have tried many other ways to define
the
> 'field_string',but it did not work
> can you tell me the right way to define the 'field_string'?
>
>
> I have also tried to use wgrib2 to make a  smaller grib file that
only
> contain APCP ,but it did not work .It no longer stop by Segmentation
> fault,but it keeps showing the second type of erro
>
>
> I don't know where the problem is.Can you help me figure it out?I
attach a
> grib file that only contain APCP
>
>
> Thanks a lot,
> Zoey
>
>
>
>
>
>
>
>
> --
>
>

------------------------------------------------
Subject: Problem running shift_data_plane tool
From: zhuangyuan
Time: Thu May 26 04:07:30 2016


Dear John,


Thank you very much for your quik reply.Followed your steps,I figure
out that libg2c was the crux. Now I have solve the problem.
It turns out that I didn't compile GRIB2 C-Library properly.The
question is how to edit 'makefile'.Now I edit the 'makefile' like
this:
DEFS=-DUSE_JPEG2000 -DUSE_PNG
INC=-I/nfs3/yuanasm/yzhuang/met/zlib/include
-I/nfs3/yuanasm/yzhuang/met/png/include
-I/nfs3/yuanasm/yzhuang/met/jasper/include
CFLAGS= -O3 -g  $(INC) $(DEFS)
CC=icc
LIB=libgrib2c.a


Then I compiled MET and the shift_data_plane tool works well!
Since  the information in the README file of g2c is so limited,it took
me a while to figure out how to compile g2c.
So it would be very helpful if you can put some tips on how to compile
libg2c in MET Online Tutorial.


By the way,I tried to compile MET on other two computers.They are both
in fedora system and only have GNU compilers.And it encountered some
problems same as
http://mailman.ucar.edu/pipermail/met_help/2016-March/002544.html
I notice that you attached two modified files but the link is
invalid.Can you send me the files and let me try again?


Thanks again for your help.Looking forward to your reply.


Zoey







At 2016-05-25 23:52:18, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:
>Zoey,
>
>I see that you're having trouble running the shift_data_plane tool on
some
>GRIB2 data.  Thanks for sending the sample file you're using.  When I
run
>it on my met-5.1 installation it works fine.  Of course, I'd like to
>reproduce your segfault if possible so that we can fix it.  We'd
always
>prefer to write a useful error message instead of letting the code
segfault.
>
>Please try running the following command:
>   shift_data_plane gfs_4_20150804_0000_012.grb2 shift_APCP.nc 'name
=
>"APCP"; level = "A6";' -from 30.0000 116.5000 -to 29.5000 117.0000 -v
2
>
>Notice that I set the level to "A6" to indicate that we want to use
the
>record with 6 hours of accumulation (A).  Setting the level string is
>discussed on page 49 of the met-5.1 user's guide:
>
>http://www.dtcenter.org/met/users/docs/users_guide/MET_Users_Guide_v5.1.pdf
>
>If that command fails, then you could also try running the
plot_data_plane
>tool on the same file:
>   plot_data_plane gfs_4_20150804_0000_012.grb2 plot_APCP.ps 'name =
>"APCP"; level = "A6";'
>
>I ran that command, converted the PostScript output to PNG format,
and
>attached the result.
>
>If both shift_data_plane and plot_data_plane fail for this file, then
the
>problem might be in the GRIB2 library to which you linked at build
time.  I
>would make sure of the following...
>  - You configured MET with the "--enable-grib2" option to compile
GRIB2
>support.
>  - The GRIB2 library to which you're linking was compiled with a
>compatible version of the compiler you used for MET.
>
>Here's a page from the MET online tutorial about compiling these
libraries:
>
>http://www.dtcenter.org/met/users/support/online_tutorial/METv5.0/compilation/req_libs.php
>
>Also, you could send me the "met-5.1/config.log" file from the top-
level
>MET directory.  That would give me a lot of information about how MET
was
>configured/compiled.
>
>Thanks,
>John Halley Gotway
>met_help at ucar.edu
>
>
>On Wed, May 25, 2016 at 1:52 AM, zhuangyuan via RT
<met_help at ucar.edu>
>wrote:
>
>>
>> Wed May 25 01:52:25 2016: Request 76489 was acted upon.
>> Transaction: Ticket created by zhuangyuanzoey at 163.com
>>        Queue: met_help
>>      Subject: Problem running shift_data_plane tool
>>        Owner: Nobody
>>   Requestors: zhuangyuanzoey at 163.com
>>       Status: new
>>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=76489 >
>>
>>
>> Hi,
>> I encountered some problem while running the shift_data_tool.
>> this is my statement for the shift_data_plane:
>> shift_data_plane \
>> gfs_4_20150805_0000_012.grb2 \
>> shift_APCP.nc \
>> 'name = "APCP";level="surface";' \
>> -from 30.0000 116.5000 \
>> -to 29.5000 117.0000 \
>> -v 2
>>
>>
>> At first,the erro shows:
>> DEBUG 1: Reading input file: gfs_4_20150803_0000_012.grb2
>> shift.sh: line 8: 20027 Segmentation fault      (core dumped)
>> shift_data_plane gfs_4_20150803_0000_012.grb2 shift_APCP.nc 'name =
>> "APCP";level="surface";' -from 30.0000 116.5000 -to 29.5000
117.0000 -v 2
>>
>>
>> I use gdb to look at the core file,and it wrote:
>> Core was generated by `shift_data_plane
gfs_4_20150803_0000_012.grb2
>> shift_APCP.nc name = "APCP";level'.
>> Program terminated with signal SIGSEGV, Segmentation fault.
>> #0  0x0000000000440b93 in ?? ()
>>
>>
>> Then I tried another input file,and the erro was different:
>> DEBUG 1: Reading input file: gfs_4_20150804_0000_012.grb2
>> g2_info: Invalid section number found in GRIB message: 0
>> WARNING:
>> WARNING: GRIB2 records not found in input file
>> 'gfs_4_20150804_0000_012.grb2'
>> WARNING:
>> ERROR  :
>> ERROR  : Met2dDataFileFactory::new_met_2d_data_file() -> error
opening
>> file "gfs_4_20150804_0000_012.grb2"
>> ERROR  :
>>
>>
>> I use wgrib2 to see the information of the grb2 file :
>> 243:42927983:d=2015080300:APCP:surface:18-24 hour acc fcst:
>> so I write the statement this way:'name = "APCP";level="surface";'
>> I am not sure if it is right.I have tried many other ways to define
the
>> 'field_string',but it did not work
>> can you tell me the right way to define the 'field_string'?
>>
>>
>> I have also tried to use wgrib2 to make a  smaller grib file that
only
>> contain APCP ,but it did not work .It no longer stop by
Segmentation
>> fault,but it keeps showing the second type of erro
>>
>>
>> I don't know where the problem is.Can you help me figure it out?I
attach a
>> grib file that only contain APCP
>>
>>
>> Thanks a lot,
>> Zoey
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>>
>

------------------------------------------------
Subject: Problem running shift_data_plane tool
From: John Halley Gotway
Time: Thu May 26 11:54:18 2016

Zoey,

My apologies.  Yes, that is a known issue that we just haven't
developed a
good fix for yet!

I've attached updated version of the Makefiles for vx_config and
vx_color
libraries.  Please try saving them to the top-level "met-5.1"
directory.
After you've run the "configure" command, please execute the following
commands:

  cp vx_config.Makefile.in src/basic/vx_config/Makefile.in
  cp vx_color.Makefile.in src/libcode/vx_color/Makefile.in

Then run "make install".

Please let me know how it goes.

Thanks,
John



On Thu, May 26, 2016 at 4:07 AM, zhuangyuan via RT <met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=76489 >
>
>
> Dear John,
>
>
> Thank you very much for your quik reply.Followed your steps,I figure
out
> that libg2c was the crux. Now I have solve the problem.
> It turns out that I didn't compile GRIB2 C-Library properly.The
question
> is how to edit 'makefile'.Now I edit the 'makefile' like this:
> DEFS=-DUSE_JPEG2000 -DUSE_PNG
> INC=-I/nfs3/yuanasm/yzhuang/met/zlib/include
> -I/nfs3/yuanasm/yzhuang/met/png/include
> -I/nfs3/yuanasm/yzhuang/met/jasper/include
> CFLAGS= -O3 -g  $(INC) $(DEFS)
> CC=icc
> LIB=libgrib2c.a
>
>
> Then I compiled MET and the shift_data_plane tool works well!
> Since  the information in the README file of g2c is so limited,it
took me
> a while to figure out how to compile g2c.
> So it would be very helpful if you can put some tips on how to
compile
> libg2c in MET Online Tutorial.
>
>
> By the way,I tried to compile MET on other two computers.They are
both in
> fedora system and only have GNU compilers.And it encountered some
problems
> same as
> http://mailman.ucar.edu/pipermail/met_help/2016-March/002544.html
> I notice that you attached two modified files but the link is
invalid.Can
> you send me the files and let me try again?
>
>
> Thanks again for your help.Looking forward to your reply.
>
>
> Zoey
>
>
>
>
>
>
>
> At 2016-05-25 23:52:18, "John Halley Gotway via RT"
<met_help at ucar.edu>
> wrote:
> >Zoey,
> >
> >I see that you're having trouble running the shift_data_plane tool
on some
> >GRIB2 data.  Thanks for sending the sample file you're using.  When
I run
> >it on my met-5.1 installation it works fine.  Of course, I'd like
to
> >reproduce your segfault if possible so that we can fix it.  We'd
always
> >prefer to write a useful error message instead of letting the code
> segfault.
> >
> >Please try running the following command:
> >   shift_data_plane gfs_4_20150804_0000_012.grb2 shift_APCP.nc
'name =
> >"APCP"; level = "A6";' -from 30.0000 116.5000 -to 29.5000 117.0000
-v 2
> >
> >Notice that I set the level to "A6" to indicate that we want to use
the
> >record with 6 hours of accumulation (A).  Setting the level string
is
> >discussed on page 49 of the met-5.1 user's guide:
> >
> >
>
http://www.dtcenter.org/met/users/docs/users_guide/MET_Users_Guide_v5.1.pdf
> >
> >If that command fails, then you could also try running the
plot_data_plane
> >tool on the same file:
> >   plot_data_plane gfs_4_20150804_0000_012.grb2 plot_APCP.ps 'name
=
> >"APCP"; level = "A6";'
> >
> >I ran that command, converted the PostScript output to PNG format,
and
> >attached the result.
> >
> >If both shift_data_plane and plot_data_plane fail for this file,
then the
> >problem might be in the GRIB2 library to which you linked at build
time.
> I
> >would make sure of the following...
> >  - You configured MET with the "--enable-grib2" option to compile
GRIB2
> >support.
> >  - The GRIB2 library to which you're linking was compiled with a
> >compatible version of the compiler you used for MET.
> >
> >Here's a page from the MET online tutorial about compiling these
> libraries:
> >
> >
>
http://www.dtcenter.org/met/users/support/online_tutorial/METv5.0/compilation/req_libs.php
> >
> >Also, you could send me the "met-5.1/config.log" file from the top-
level
> >MET directory.  That would give me a lot of information about how
MET was
> >configured/compiled.
> >
> >Thanks,
> >John Halley Gotway
> >met_help at ucar.edu
> >
> >
> >On Wed, May 25, 2016 at 1:52 AM, zhuangyuan via RT
<met_help at ucar.edu>
> >wrote:
> >
> >>
> >> Wed May 25 01:52:25 2016: Request 76489 was acted upon.
> >> Transaction: Ticket created by zhuangyuanzoey at 163.com
> >>        Queue: met_help
> >>      Subject: Problem running shift_data_plane tool
> >>        Owner: Nobody
> >>   Requestors: zhuangyuanzoey at 163.com
> >>       Status: new
> >>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=76489 >
> >>
> >>
> >> Hi,
> >> I encountered some problem while running the shift_data_tool.
> >> this is my statement for the shift_data_plane:
> >> shift_data_plane \
> >> gfs_4_20150805_0000_012.grb2 \
> >> shift_APCP.nc \
> >> 'name = "APCP";level="surface";' \
> >> -from 30.0000 116.5000 \
> >> -to 29.5000 117.0000 \
> >> -v 2
> >>
> >>
> >> At first,the erro shows:
> >> DEBUG 1: Reading input file: gfs_4_20150803_0000_012.grb2
> >> shift.sh: line 8: 20027 Segmentation fault      (core dumped)
> >> shift_data_plane gfs_4_20150803_0000_012.grb2 shift_APCP.nc 'name
=
> >> "APCP";level="surface";' -from 30.0000 116.5000 -to 29.5000
117.0000 -v
> 2
> >>
> >>
> >> I use gdb to look at the core file,and it wrote:
> >> Core was generated by `shift_data_plane
gfs_4_20150803_0000_012.grb2
> >> shift_APCP.nc name = "APCP";level'.
> >> Program terminated with signal SIGSEGV, Segmentation fault.
> >> #0  0x0000000000440b93 in ?? ()
> >>
> >>
> >> Then I tried another input file,and the erro was different:
> >> DEBUG 1: Reading input file: gfs_4_20150804_0000_012.grb2
> >> g2_info: Invalid section number found in GRIB message: 0
> >> WARNING:
> >> WARNING: GRIB2 records not found in input file
> >> 'gfs_4_20150804_0000_012.grb2'
> >> WARNING:
> >> ERROR  :
> >> ERROR  : Met2dDataFileFactory::new_met_2d_data_file() -> error
opening
> >> file "gfs_4_20150804_0000_012.grb2"
> >> ERROR  :
> >>
> >>
> >> I use wgrib2 to see the information of the grb2 file :
> >> 243:42927983:d=2015080300:APCP:surface:18-24 hour acc fcst:
> >> so I write the statement this way:'name =
"APCP";level="surface";'
> >> I am not sure if it is right.I have tried many other ways to
define the
> >> 'field_string',but it did not work
> >> can you tell me the right way to define the 'field_string'?
> >>
> >>
> >> I have also tried to use wgrib2 to make a  smaller grib file that
only
> >> contain APCP ,but it did not work .It no longer stop by
Segmentation
> >> fault,but it keeps showing the second type of erro
> >>
> >>
> >> I don't know where the problem is.Can you help me figure it out?I
> attach a
> >> grib file that only contain APCP
> >>
> >>
> >> Thanks a lot,
> >> Zoey
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> --
> >>
> >>
> >
>
>

------------------------------------------------
Subject: Problem running shift_data_plane tool
From: zhuangyuan
Time: Thu May 26 19:58:45 2016

John,


It worked!Thanks for your help!


--
Zoey



At 2016-05-27 01:54:19, "John Halley Gotway via RT"
<met_help at ucar.edu> wrote:
>Zoey,
>
>My apologies.  Yes, that is a known issue that we just haven't
developed a
>good fix for yet!
>
>I've attached updated version of the Makefiles for vx_config and
vx_color
>libraries.  Please try saving them to the top-level "met-5.1"
directory.
>After you've run the "configure" command, please execute the
following
>commands:
>
>  cp vx_config.Makefile.in src/basic/vx_config/Makefile.in
>  cp vx_color.Makefile.in src/libcode/vx_color/Makefile.in
>
>Then run "make install".
>
>Please let me know how it goes.
>
>Thanks,
>John
>
>
>
>On Thu, May 26, 2016 at 4:07 AM, zhuangyuan via RT
<met_help at ucar.edu>
>wrote:
>
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=76489 >
>>
>>
>> Dear John,
>>
>>
>> Thank you very much for your quik reply.Followed your steps,I
figure out
>> that libg2c was the crux. Now I have solve the problem.
>> It turns out that I didn't compile GRIB2 C-Library properly.The
question
>> is how to edit 'makefile'.Now I edit the 'makefile' like this:
>> DEFS=-DUSE_JPEG2000 -DUSE_PNG
>> INC=-I/nfs3/yuanasm/yzhuang/met/zlib/include
>> -I/nfs3/yuanasm/yzhuang/met/png/include
>> -I/nfs3/yuanasm/yzhuang/met/jasper/include
>> CFLAGS= -O3 -g  $(INC) $(DEFS)
>> CC=icc
>> LIB=libgrib2c.a
>>
>>
>> Then I compiled MET and the shift_data_plane tool works well!
>> Since  the information in the README file of g2c is so limited,it
took me
>> a while to figure out how to compile g2c.
>> So it would be very helpful if you can put some tips on how to
compile
>> libg2c in MET Online Tutorial.
>>
>>
>> By the way,I tried to compile MET on other two computers.They are
both in
>> fedora system and only have GNU compilers.And it encountered some
problems
>> same as
>> http://mailman.ucar.edu/pipermail/met_help/2016-March/002544.html
>> I notice that you attached two modified files but the link is
invalid.Can
>> you send me the files and let me try again?
>>
>>
>> Thanks again for your help.Looking forward to your reply.
>>
>>
>> Zoey
>>
>>
>>
>>
>>
>>
>>
>> At 2016-05-25 23:52:18, "John Halley Gotway via RT"
<met_help at ucar.edu>
>> wrote:
>> >Zoey,
>> >
>> >I see that you're having trouble running the shift_data_plane tool
on some
>> >GRIB2 data.  Thanks for sending the sample file you're using.
When I run
>> >it on my met-5.1 installation it works fine.  Of course, I'd like
to
>> >reproduce your segfault if possible so that we can fix it.  We'd
always
>> >prefer to write a useful error message instead of letting the code
>> segfault.
>> >
>> >Please try running the following command:
>> >   shift_data_plane gfs_4_20150804_0000_012.grb2 shift_APCP.nc
'name =
>> >"APCP"; level = "A6";' -from 30.0000 116.5000 -to 29.5000 117.0000
-v 2
>> >
>> >Notice that I set the level to "A6" to indicate that we want to
use the
>> >record with 6 hours of accumulation (A).  Setting the level string
is
>> >discussed on page 49 of the met-5.1 user's guide:
>> >
>> >
>>
http://www.dtcenter.org/met/users/docs/users_guide/MET_Users_Guide_v5.1.pdf
>> >
>> >If that command fails, then you could also try running the
plot_data_plane
>> >tool on the same file:
>> >   plot_data_plane gfs_4_20150804_0000_012.grb2 plot_APCP.ps 'name
=
>> >"APCP"; level = "A6";'
>> >
>> >I ran that command, converted the PostScript output to PNG format,
and
>> >attached the result.
>> >
>> >If both shift_data_plane and plot_data_plane fail for this file,
then the
>> >problem might be in the GRIB2 library to which you linked at build
time.
>> I
>> >would make sure of the following...
>> >  - You configured MET with the "--enable-grib2" option to compile
GRIB2
>> >support.
>> >  - The GRIB2 library to which you're linking was compiled with a
>> >compatible version of the compiler you used for MET.
>> >
>> >Here's a page from the MET online tutorial about compiling these
>> libraries:
>> >
>> >
>>
http://www.dtcenter.org/met/users/support/online_tutorial/METv5.0/compilation/req_libs.php
>> >
>> >Also, you could send me the "met-5.1/config.log" file from the
top-level
>> >MET directory.  That would give me a lot of information about how
MET was
>> >configured/compiled.
>> >
>> >Thanks,
>> >John Halley Gotway
>> >met_help at ucar.edu
>> >
>> >
>> >On Wed, May 25, 2016 at 1:52 AM, zhuangyuan via RT
<met_help at ucar.edu>
>> >wrote:
>> >
>> >>
>> >> Wed May 25 01:52:25 2016: Request 76489 was acted upon.
>> >> Transaction: Ticket created by zhuangyuanzoey at 163.com
>> >>        Queue: met_help
>> >>      Subject: Problem running shift_data_plane tool
>> >>        Owner: Nobody
>> >>   Requestors: zhuangyuanzoey at 163.com
>> >>       Status: new
>> >>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=76489 >
>> >>
>> >>
>> >> Hi,
>> >> I encountered some problem while running the shift_data_tool.
>> >> this is my statement for the shift_data_plane:
>> >> shift_data_plane \
>> >> gfs_4_20150805_0000_012.grb2 \
>> >> shift_APCP.nc \
>> >> 'name = "APCP";level="surface";' \
>> >> -from 30.0000 116.5000 \
>> >> -to 29.5000 117.0000 \
>> >> -v 2
>> >>
>> >>
>> >> At first,the erro shows:
>> >> DEBUG 1: Reading input file: gfs_4_20150803_0000_012.grb2
>> >> shift.sh: line 8: 20027 Segmentation fault      (core dumped)
>> >> shift_data_plane gfs_4_20150803_0000_012.grb2 shift_APCP.nc
'name =
>> >> "APCP";level="surface";' -from 30.0000 116.5000 -to 29.5000
117.0000 -v
>> 2
>> >>
>> >>
>> >> I use gdb to look at the core file,and it wrote:
>> >> Core was generated by `shift_data_plane
gfs_4_20150803_0000_012.grb2
>> >> shift_APCP.nc name = "APCP";level'.
>> >> Program terminated with signal SIGSEGV, Segmentation fault.
>> >> #0  0x0000000000440b93 in ?? ()
>> >>
>> >>
>> >> Then I tried another input file,and the erro was different:
>> >> DEBUG 1: Reading input file: gfs_4_20150804_0000_012.grb2
>> >> g2_info: Invalid section number found in GRIB message: 0
>> >> WARNING:
>> >> WARNING: GRIB2 records not found in input file
>> >> 'gfs_4_20150804_0000_012.grb2'
>> >> WARNING:
>> >> ERROR  :
>> >> ERROR  : Met2dDataFileFactory::new_met_2d_data_file() -> error
opening
>> >> file "gfs_4_20150804_0000_012.grb2"
>> >> ERROR  :
>> >>
>> >>
>> >> I use wgrib2 to see the information of the grb2 file :
>> >> 243:42927983:d=2015080300:APCP:surface:18-24 hour acc fcst:
>> >> so I write the statement this way:'name =
"APCP";level="surface";'
>> >> I am not sure if it is right.I have tried many other ways to
define the
>> >> 'field_string',but it did not work
>> >> can you tell me the right way to define the 'field_string'?
>> >>
>> >>
>> >> I have also tried to use wgrib2 to make a  smaller grib file
that only
>> >> contain APCP ,but it did not work .It no longer stop by
Segmentation
>> >> fault,but it keeps showing the second type of erro
>> >>
>> >>
>> >> I don't know where the problem is.Can you help me figure it
out?I
>> attach a
>> >> grib file that only contain APCP
>> >>
>> >>
>> >> Thanks a lot,
>> >> Zoey
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >>
>> >
>>
>>
>

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


More information about the Met_help mailing list