[Met_help] [rt.rap.ucar.edu #78380] History for Mask files for Europe
John Halley Gotway via RT
met_help at ucar.edu
Tue Dec 6 11:25:04 MST 2016
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
Hello!
I've succesfully installed and tested the MET software, but I've come to
a point with no solution - how to obtain a NetCDF mask file for a region
over Europe? What kind of GRIB data is needed? I've tried with standard
GDAS observation data and GFS GRIB2 data, but the only thing which
appeared was Segmentation fault (core dumped).
MAybe there is some issue with .poly file (I've attached it to email)
Many thanks
---
ppor. Łukasz Pajurek
Szefostwo Służby Hydrometeorologicznej SZ RP
Wydział Zabezpieczenia Informatycznego
2LT Łukasz Pajurek
Hydrometeorological Service of the Polish Armed Forces
IT Support Branch
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: Mask files for Europe
From: John Halley Gotway
Time: Tue Oct 25 14:05:04 2016
Hello,
I'm see that you have compiled MET version 5.2 and would now like to
define
some new masking regions. Thanks for sending your sample POLAND.poly
polyline file. When I opened it on my Linux machine, I noticed that
it
contains "^M" characters at the end of each line. Those show up in
files
generated on Windows machines. When I ran your polyline file through
the
gen_vx_mask, the "^M" caused a runtime error since NetCDF doesn't like
including that character in the NetCDF variable name.
One easy way to strip them off is the "dos2unix" utility:
dos2unix POLAND.poly
Next, I grabbed a sample GFS file:
wget http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/
gfs.2016102512/gfs.t12z.pgrb2.0p50.f000
Then I used the MET regrid_data_plane tool to put some data on a
lat/lon
grid over Europe:
met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon 100
100
25 0 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";'
Next, I ran the MET gen_vx_mask tool to apply your polyline to the
European
domain:
met-5.2/bin/gen_vx_mask gfs_euro.nc POLAND.poly POLAND_mask.nc
And then I ran the MET plot_data_plane tool to display the resulting
mask
field:
met-5.2/bin/plot_data_plane POLAND_mask.nc POLAND_mask.ps
'name="POLAND"; level="(*,*)";'
And I attached a PNG version of the resulting output.
As you can see, the mask is in roughly the right spot, but there are
obvious problems with the latitude and longitude values you've used to
define that mask for Poland.
Hope that helps.
Thanks,
John Halley Gotway
met_help at ucar.edu
On Tue, Oct 25, 2016 at 5:25 AM, l.pajurek via RT <met_help at ucar.edu>
wrote:
>
> Tue Oct 25 05:25:32 2016: Request 78380 was acted upon.
> Transaction: Ticket created by l.pajurek at meteo.mil.pl
> Queue: met_help
> Subject: Mask files for Europe
> Owner: Nobody
> Requestors: l.pajurek at meteo.mil.pl
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380 >
>
>
> Hello!
>
> I've succesfully installed and tested the MET software, but I've
come to
> a point with no solution - how to obtain a NetCDF mask file for a
region
> over Europe? What kind of GRIB data is needed? I've tried with
standard
> GDAS observation data and GFS GRIB2 data, but the only thing which
> appeared was Segmentation fault (core dumped).
> MAybe there is some issue with .poly file (I've attached it to
email)
>
> Many thanks
> ---
> ppor. Łukasz Pajurek
> Szefostwo Służby Hydrometeorologicznej SZ RP
> Wydział Zabezpieczenia Informatycznego
>
> 2LT Łukasz Pajurek
> Hydrometeorological Service of the Polish Armed Forces
> IT Support Branch
>
------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #78380] Mask files for Europe
From: l.pajurek
Time: Fri Oct 28 02:18:49 2016
W dniu 2016-10-25 20:05, John Halley Gotway via RT napisał(a):
> Hello,
>
> I'm see that you have compiled MET version 5.2 and would now like to
> define
> some new masking regions. Thanks for sending your sample
POLAND.poly
> polyline file. When I opened it on my Linux machine, I noticed that
it
> contains "^M" characters at the end of each line. Those show up in
> files
> generated on Windows machines. When I ran your polyline file
through
> the
> gen_vx_mask, the "^M" caused a runtime error since NetCDF doesn't
like
> including that character in the NetCDF variable name.
>
> One easy way to strip them off is the "dos2unix" utility:
> dos2unix POLAND.poly
>
> Next, I grabbed a sample GFS file:
> wget http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/
> gfs.2016102512/gfs.t12z.pgrb2.0p50.f000
>
> Then I used the MET regrid_data_plane tool to put some data on a
> lat/lon
> grid over Europe:
>
> met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon
100
> 100
> 25 0 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";'
>
> Next, I ran the MET gen_vx_mask tool to apply your polyline to the
> European
> domain:
>
> met-5.2/bin/gen_vx_mask gfs_euro.nc POLAND.poly POLAND_mask.nc
>
> And then I ran the MET plot_data_plane tool to display the resulting
> mask
> field:
>
> met-5.2/bin/plot_data_plane POLAND_mask.nc POLAND_mask.ps
> 'name="POLAND"; level="(*,*)";'
>
> And I attached a PNG version of the resulting output.
>
> As you can see, the mask is in roughly the right spot, but there are
> obvious problems with the latitude and longitude values you've used
to
> define that mask for Poland.
>
> Hope that helps.
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
> On Tue, Oct 25, 2016 at 5:25 AM, l.pajurek via RT
<met_help at ucar.edu>
> wrote:
>
>>
>> Tue Oct 25 05:25:32 2016: Request 78380 was acted upon.
>> Transaction: Ticket created by l.pajurek at meteo.mil.pl
>> Queue: met_help
>> Subject: Mask files for Europe
>> Owner: Nobody
>> Requestors: l.pajurek at meteo.mil.pl
>> Status: new
>> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380
>> >
>>
>>
>> Hello!
>>
>> I've succesfully installed and tested the MET software, but I've
come
>> to
>> a point with no solution - how to obtain a NetCDF mask file for a
>> region
>> over Europe? What kind of GRIB data is needed? I've tried with
>> standard
>> GDAS observation data and GFS GRIB2 data, but the only thing which
>> appeared was Segmentation fault (core dumped).
>> MAybe there is some issue with .poly file (I've attached it to
email)
>>
>> Many thanks
>> ---
>> ppor. Łukasz Pajurek
>> Szefostwo Służby Hydrometeorologicznej SZ RP
>> Wydział Zabezpieczenia Informatycznego
>>
>> 2LT Łukasz Pajurek
>> Hydrometeorological Service of the Polish Armed Forces
>> IT Support Branch
>>
Thank You very much for Your help! I've been using MET 5.0 vwersion,
but
now I've got this 5.2 version and it looks like it works.
I will try to make this mask file more suitable for my domain.
Thank You again fro Your cooperation.
Many thanks
---
ppor. Łukasz Pajurek
Szefostwo Służby Hydrometeorologicznej SZ RP
Wydział Zabezpieczenia Informatycznego
2LT Łukasz Pajurek
Hydrometeorological Service of the Polish Armed Forces
IT Support Branch
------------------------------------------------
Subject: Mask files for Europe
From: John Halley Gotway
Time: Fri Oct 28 11:05:14 2016
Glad that helped. I'll go ahead and resolve this issue.
As you use MET, please be sure to pass on your comments and
suggestions.
We really value user feedback in setting priorities for future
development.
Thanks,
John
On Fri, Oct 28, 2016 at 2:18 AM, l.pajurek via RT <met_help at ucar.edu>
wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380 >
>
> W dniu 2016-10-25 20:05, John Halley Gotway via RT napisał(a):
> > Hello,
> >
> > I'm see that you have compiled MET version 5.2 and would now like
to
> > define
> > some new masking regions. Thanks for sending your sample
POLAND.poly
> > polyline file. When I opened it on my Linux machine, I noticed
that it
> > contains "^M" characters at the end of each line. Those show up
in
> > files
> > generated on Windows machines. When I ran your polyline file
through
> > the
> > gen_vx_mask, the "^M" caused a runtime error since NetCDF doesn't
like
> > including that character in the NetCDF variable name.
> >
> > One easy way to strip them off is the "dos2unix" utility:
> > dos2unix POLAND.poly
> >
> > Next, I grabbed a sample GFS file:
> > wget http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/
> > gfs.2016102512/gfs.t12z.pgrb2.0p50.f000
> >
> > Then I used the MET regrid_data_plane tool to put some data on a
> > lat/lon
> > grid over Europe:
> >
> > met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon
100
> > 100
> > 25 0 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";'
> >
> > Next, I ran the MET gen_vx_mask tool to apply your polyline to the
> > European
> > domain:
> >
> > met-5.2/bin/gen_vx_mask gfs_euro.nc POLAND.poly POLAND_mask.nc
> >
> > And then I ran the MET plot_data_plane tool to display the
resulting
> > mask
> > field:
> >
> > met-5.2/bin/plot_data_plane POLAND_mask.nc POLAND_mask.ps
> > 'name="POLAND"; level="(*,*)";'
> >
> > And I attached a PNG version of the resulting output.
> >
> > As you can see, the mask is in roughly the right spot, but there
are
> > obvious problems with the latitude and longitude values you've
used to
> > define that mask for Poland.
> >
> > Hope that helps.
> >
> > Thanks,
> > John Halley Gotway
> > met_help at ucar.edu
> >
> > On Tue, Oct 25, 2016 at 5:25 AM, l.pajurek via RT
<met_help at ucar.edu>
> > wrote:
> >
> >>
> >> Tue Oct 25 05:25:32 2016: Request 78380 was acted upon.
> >> Transaction: Ticket created by l.pajurek at meteo.mil.pl
> >> Queue: met_help
> >> Subject: Mask files for Europe
> >> Owner: Nobody
> >> Requestors: l.pajurek at meteo.mil.pl
> >> Status: new
> >> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380
> >> >
> >>
> >>
> >> Hello!
> >>
> >> I've succesfully installed and tested the MET software, but I've
come
> >> to
> >> a point with no solution - how to obtain a NetCDF mask file for a
> >> region
> >> over Europe? What kind of GRIB data is needed? I've tried with
> >> standard
> >> GDAS observation data and GFS GRIB2 data, but the only thing
which
> >> appeared was Segmentation fault (core dumped).
> >> MAybe there is some issue with .poly file (I've attached it to
email)
> >>
> >> Many thanks
> >> ---
> >> ppor. Łukasz Pajurek
> >> Szefostwo Służby Hydrometeorologicznej SZ RP
> >> Wydział Zabezpieczenia Informatycznego
> >>
> >> 2LT Łukasz Pajurek
> >> Hydrometeorological Service of the Polish Armed Forces
> >> IT Support Branch
> >>
> Thank You very much for Your help! I've been using MET 5.0 vwersion,
but
> now I've got this 5.2 version and it looks like it works.
> I will try to make this mask file more suitable for my domain.
> Thank You again fro Your cooperation.
>
> Many thanks
> ---
> ppor. Łukasz Pajurek
> Szefostwo Służby Hydrometeorologicznej SZ RP
> Wydział Zabezpieczenia Informatycznego
>
> 2LT Łukasz Pajurek
> Hydrometeorological Service of the Polish Armed Forces
> IT Support Branch
>
>
------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #78380] Mask files for Europe
From: l.pajurek
Time: Thu Nov 24 05:26:59 2016
W dniu 2016-10-28 17:05, John Halley Gotway via RT napisał(a):
> Glad that helped. I'll go ahead and resolve this issue.
>
> As you use MET, please be sure to pass on your comments and
> suggestions.
> We really value user feedback in setting priorities for future
> development.
>
> Thanks,
> John
>
> On Fri, Oct 28, 2016 at 2:18 AM, l.pajurek via RT
<met_help at ucar.edu>
> wrote:
>
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380 >
>>
>> W dniu 2016-10-25 20:05, John Halley Gotway via RT napisał(a):
>> > Hello,
>> >
>> > I'm see that you have compiled MET version 5.2 and would now like
to
>> > define
>> > some new masking regions. Thanks for sending your sample
POLAND.poly
>> > polyline file. When I opened it on my Linux machine, I noticed
that it
>> > contains "^M" characters at the end of each line. Those show up
in
>> > files
>> > generated on Windows machines. When I ran your polyline file
through
>> > the
>> > gen_vx_mask, the "^M" caused a runtime error since NetCDF doesn't
like
>> > including that character in the NetCDF variable name.
>> >
>> > One easy way to strip them off is the "dos2unix" utility:
>> > dos2unix POLAND.poly
>> >
>> > Next, I grabbed a sample GFS file:
>> > wget http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/
>> > gfs.2016102512/gfs.t12z.pgrb2.0p50.f000
>> >
>> > Then I used the MET regrid_data_plane tool to put some data on a
>> > lat/lon
>> > grid over Europe:
>> >
>> > met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon
100
>> > 100
>> > 25 0 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";'
>> >
>> > Next, I ran the MET gen_vx_mask tool to apply your polyline to
the
>> > European
>> > domain:
>> >
>> > met-5.2/bin/gen_vx_mask gfs_euro.nc POLAND.poly POLAND_mask.nc
>> >
>> > And then I ran the MET plot_data_plane tool to display the
resulting
>> > mask
>> > field:
>> >
>> > met-5.2/bin/plot_data_plane POLAND_mask.nc POLAND_mask.ps
>> > 'name="POLAND"; level="(*,*)";'
>> >
>> > And I attached a PNG version of the resulting output.
>> >
>> > As you can see, the mask is in roughly the right spot, but there
are
>> > obvious problems with the latitude and longitude values you've
used to
>> > define that mask for Poland.
>> >
>> > Hope that helps.
>> >
>> > Thanks,
>> > John Halley Gotway
>> > met_help at ucar.edu
>> >
>> > On Tue, Oct 25, 2016 at 5:25 AM, l.pajurek via RT
<met_help at ucar.edu>
>> > wrote:
>> >
>> >>
>> >> Tue Oct 25 05:25:32 2016: Request 78380 was acted upon.
>> >> Transaction: Ticket created by l.pajurek at meteo.mil.pl
>> >> Queue: met_help
>> >> Subject: Mask files for Europe
>> >> Owner: Nobody
>> >> Requestors: l.pajurek at meteo.mil.pl
>> >> Status: new
>> >> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380
>> >> >
>> >>
>> >>
>> >> Hello!
>> >>
>> >> I've succesfully installed and tested the MET software, but I've
come
>> >> to
>> >> a point with no solution - how to obtain a NetCDF mask file for
a
>> >> region
>> >> over Europe? What kind of GRIB data is needed? I've tried with
>> >> standard
>> >> GDAS observation data and GFS GRIB2 data, but the only thing
which
>> >> appeared was Segmentation fault (core dumped).
>> >> MAybe there is some issue with .poly file (I've attached it to
email)
>> >>
>> >> Many thanks
>> >> ---
>> >> ppor. Łukasz Pajurek
>> >> Szefostwo Służby Hydrometeorologicznej SZ RP
>> >> Wydział Zabezpieczenia Informatycznego
>> >>
>> >> 2LT Łukasz Pajurek
>> >> Hydrometeorological Service of the Polish Armed Forces
>> >> IT Support Branch
>> >>
>> Thank You very much for Your help! I've been using MET 5.0
vwersion,
>> but
>> now I've got this 5.2 version and it looks like it works.
>> I will try to make this mask file more suitable for my domain.
>> Thank You again fro Your cooperation.
>>
>> Many thanks
>> ---
>> ppor. Łukasz Pajurek
>> Szefostwo Służby Hydrometeorologicznej SZ RP
>> Wydział Zabezpieczenia Informatycznego
>>
>> 2LT Łukasz Pajurek
>> Hydrometeorological Service of the Polish Armed Forces
>> IT Support Branch
>>
>>
Thank You for Your help!
I haven't been working on this thing for a couple of weeks because of
another jobs, but now I've found some time and I have another issue a
segmentation error.
I've done eberything You sent me to do, but in the beginning I'm stuck
with this error:
Segmentation fault
This appears when I'm trying to run
met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon 100 100
25 0 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";
Is this some compilation issue?
Many thanks
---
ppor. Łukasz Pajurek
Szefostwo Służby Hydrometeorologicznej SZ RP
Wydział Zabezpieczenia Informatycznego
2LT Łukasz Pajurek
Hydrometeorological Service of the Polish Armed Forces
IT Support Branch
------------------------------------------------
Subject: Mask files for Europe
From: John Halley Gotway
Time: Tue Nov 29 12:46:13 2016
Sorry for the delay in getting back to you on this issue.
I see that you're getting a seg fault when running the following
command:
met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon 100 100
25 0
0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";
Are you missing the trailing single quote? It should look like
this...
with a close single quote:
met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon 100 100
25 0
0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";'
Does that fix it?
Thanks,
John
On Thu, Nov 24, 2016 at 5:26 AM, l.pajurek via RT <met_help at ucar.edu>
wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380 >
>
> W dniu 2016-10-28 17:05, John Halley Gotway via RT napisał(a):
> > Glad that helped. I'll go ahead and resolve this issue.
> >
> > As you use MET, please be sure to pass on your comments and
> > suggestions.
> > We really value user feedback in setting priorities for future
> > development.
> >
> > Thanks,
> > John
> >
> > On Fri, Oct 28, 2016 at 2:18 AM, l.pajurek via RT
<met_help at ucar.edu>
> > wrote:
> >
> >>
> >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380 >
> >>
> >> W dniu 2016-10-25 20:05, John Halley Gotway via RT napisał(a):
> >> > Hello,
> >> >
> >> > I'm see that you have compiled MET version 5.2 and would now
like to
> >> > define
> >> > some new masking regions. Thanks for sending your sample
POLAND.poly
> >> > polyline file. When I opened it on my Linux machine, I noticed
that
> it
> >> > contains "^M" characters at the end of each line. Those show
up in
> >> > files
> >> > generated on Windows machines. When I ran your polyline file
through
> >> > the
> >> > gen_vx_mask, the "^M" caused a runtime error since NetCDF
doesn't like
> >> > including that character in the NetCDF variable name.
> >> >
> >> > One easy way to strip them off is the "dos2unix" utility:
> >> > dos2unix POLAND.poly
> >> >
> >> > Next, I grabbed a sample GFS file:
> >> > wget http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/
> >> > gfs.2016102512/gfs.t12z.pgrb2.0p50.f000
> >> >
> >> > Then I used the MET regrid_data_plane tool to put some data on
a
> >> > lat/lon
> >> > grid over Europe:
> >> >
> >> > met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000
'latlon 100
> >> > 100
> >> > 25 0 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";'
> >> >
> >> > Next, I ran the MET gen_vx_mask tool to apply your polyline to
the
> >> > European
> >> > domain:
> >> >
> >> > met-5.2/bin/gen_vx_mask gfs_euro.nc POLAND.poly
POLAND_mask.nc
> >> >
> >> > And then I ran the MET plot_data_plane tool to display the
resulting
> >> > mask
> >> > field:
> >> >
> >> > met-5.2/bin/plot_data_plane POLAND_mask.nc POLAND_mask.ps
> >> > 'name="POLAND"; level="(*,*)";'
> >> >
> >> > And I attached a PNG version of the resulting output.
> >> >
> >> > As you can see, the mask is in roughly the right spot, but
there are
> >> > obvious problems with the latitude and longitude values you've
used to
> >> > define that mask for Poland.
> >> >
> >> > Hope that helps.
> >> >
> >> > Thanks,
> >> > John Halley Gotway
> >> > met_help at ucar.edu
> >> >
> >> > On Tue, Oct 25, 2016 at 5:25 AM, l.pajurek via RT
<met_help at ucar.edu>
> >> > wrote:
> >> >
> >> >>
> >> >> Tue Oct 25 05:25:32 2016: Request 78380 was acted upon.
> >> >> Transaction: Ticket created by l.pajurek at meteo.mil.pl
> >> >> Queue: met_help
> >> >> Subject: Mask files for Europe
> >> >> Owner: Nobody
> >> >> Requestors: l.pajurek at meteo.mil.pl
> >> >> Status: new
> >> >> Ticket <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=78380
> >> >> >
> >> >>
> >> >>
> >> >> Hello!
> >> >>
> >> >> I've succesfully installed and tested the MET software, but
I've come
> >> >> to
> >> >> a point with no solution - how to obtain a NetCDF mask file
for a
> >> >> region
> >> >> over Europe? What kind of GRIB data is needed? I've tried with
> >> >> standard
> >> >> GDAS observation data and GFS GRIB2 data, but the only thing
which
> >> >> appeared was Segmentation fault (core dumped).
> >> >> MAybe there is some issue with .poly file (I've attached it to
email)
> >> >>
> >> >> Many thanks
> >> >> ---
> >> >> ppor. Łukasz Pajurek
> >> >> Szefostwo Służby Hydrometeorologicznej SZ RP
> >> >> Wydział Zabezpieczenia Informatycznego
> >> >>
> >> >> 2LT Łukasz Pajurek
> >> >> Hydrometeorological Service of the Polish Armed Forces
> >> >> IT Support Branch
> >> >>
> >> Thank You very much for Your help! I've been using MET 5.0
vwersion,
> >> but
> >> now I've got this 5.2 version and it looks like it works.
> >> I will try to make this mask file more suitable for my domain.
> >> Thank You again fro Your cooperation.
> >>
> >> Many thanks
> >> ---
> >> ppor. Łukasz Pajurek
> >> Szefostwo Służby Hydrometeorologicznej SZ RP
> >> Wydział Zabezpieczenia Informatycznego
> >>
> >> 2LT Łukasz Pajurek
> >> Hydrometeorological Service of the Polish Armed Forces
> >> IT Support Branch
> >>
> >>
>
> Thank You for Your help!
> I haven't been working on this thing for a couple of weeks because
of
> another jobs, but now I've found some time and I have another issue
a
> segmentation error.
> I've done eberything You sent me to do, but in the beginning I'm
stuck
> with this error:
> Segmentation fault
>
> This appears when I'm trying to run
>
> met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon 100
100
> 25 0 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";
>
> Is this some compilation issue?
>
> Many thanks
> ---
> ppor. Łukasz Pajurek
> Szefostwo Służby Hydrometeorologicznej SZ RP
> Wydział Zabezpieczenia Informatycznego
>
> 2LT Łukasz Pajurek
> Hydrometeorological Service of the Polish Armed Forces
> IT Support Branch
>
>
------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #78380] Mask files for Europe
From: l.pajurek
Time: Thu Dec 01 00:42:11 2016
W dniu 2016-11-29 19:46, John Halley Gotway via RT napisał(a):
> Sorry for the delay in getting back to you on this issue.
>
> I see that you're getting a seg fault when running the following
> command:
>
> met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon 100
100
> 25 0
> 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";
>
> Are you missing the trailing single quote? It should look like
this...
> with a close single quote:
>
> met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon 100
100
> 25 0
> 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";'
>
> Does that fix it?
>
> Thanks,
> John
>
>
>
> On Thu, Nov 24, 2016 at 5:26 AM, l.pajurek via RT
<met_help at ucar.edu>
> wrote:
>
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380 >
>>
>> W dniu 2016-10-28 17:05, John Halley Gotway via RT napisał(a):
>> > Glad that helped. I'll go ahead and resolve this issue.
>> >
>> > As you use MET, please be sure to pass on your comments and
>> > suggestions.
>> > We really value user feedback in setting priorities for future
>> > development.
>> >
>> > Thanks,
>> > John
>> >
>> > On Fri, Oct 28, 2016 at 2:18 AM, l.pajurek via RT
<met_help at ucar.edu>
>> > wrote:
>> >
>> >>
>> >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380 >
>> >>
>> >> W dniu 2016-10-25 20:05, John Halley Gotway via RT napisał(a):
>> >> > Hello,
>> >> >
>> >> > I'm see that you have compiled MET version 5.2 and would now
like to
>> >> > define
>> >> > some new masking regions. Thanks for sending your sample
POLAND.poly
>> >> > polyline file. When I opened it on my Linux machine, I
noticed that
>> it
>> >> > contains "^M" characters at the end of each line. Those show
up in
>> >> > files
>> >> > generated on Windows machines. When I ran your polyline file
through
>> >> > the
>> >> > gen_vx_mask, the "^M" caused a runtime error since NetCDF
doesn't like
>> >> > including that character in the NetCDF variable name.
>> >> >
>> >> > One easy way to strip them off is the "dos2unix" utility:
>> >> > dos2unix POLAND.poly
>> >> >
>> >> > Next, I grabbed a sample GFS file:
>> >> > wget http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/
>> >> > gfs.2016102512/gfs.t12z.pgrb2.0p50.f000
>> >> >
>> >> > Then I used the MET regrid_data_plane tool to put some data on
a
>> >> > lat/lon
>> >> > grid over Europe:
>> >> >
>> >> > met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000
'latlon 100
>> >> > 100
>> >> > 25 0 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";'
>> >> >
>> >> > Next, I ran the MET gen_vx_mask tool to apply your polyline to
the
>> >> > European
>> >> > domain:
>> >> >
>> >> > met-5.2/bin/gen_vx_mask gfs_euro.nc POLAND.poly
POLAND_mask.nc
>> >> >
>> >> > And then I ran the MET plot_data_plane tool to display the
resulting
>> >> > mask
>> >> > field:
>> >> >
>> >> > met-5.2/bin/plot_data_plane POLAND_mask.nc POLAND_mask.ps
>> >> > 'name="POLAND"; level="(*,*)";'
>> >> >
>> >> > And I attached a PNG version of the resulting output.
>> >> >
>> >> > As you can see, the mask is in roughly the right spot, but
there are
>> >> > obvious problems with the latitude and longitude values you've
used to
>> >> > define that mask for Poland.
>> >> >
>> >> > Hope that helps.
>> >> >
>> >> > Thanks,
>> >> > John Halley Gotway
>> >> > met_help at ucar.edu
>> >> >
>> >> > On Tue, Oct 25, 2016 at 5:25 AM, l.pajurek via RT
<met_help at ucar.edu>
>> >> > wrote:
>> >> >
>> >> >>
>> >> >> Tue Oct 25 05:25:32 2016: Request 78380 was acted upon.
>> >> >> Transaction: Ticket created by l.pajurek at meteo.mil.pl
>> >> >> Queue: met_help
>> >> >> Subject: Mask files for Europe
>> >> >> Owner: Nobody
>> >> >> Requestors: l.pajurek at meteo.mil.pl
>> >> >> Status: new
>> >> >> Ticket <URL: https://rt.rap.ucar.edu/rt/
>> Ticket/Display.html?id=78380
>> >> >> >
>> >> >>
>> >> >>
>> >> >> Hello!
>> >> >>
>> >> >> I've succesfully installed and tested the MET software, but
I've come
>> >> >> to
>> >> >> a point with no solution - how to obtain a NetCDF mask file
for a
>> >> >> region
>> >> >> over Europe? What kind of GRIB data is needed? I've tried
with
>> >> >> standard
>> >> >> GDAS observation data and GFS GRIB2 data, but the only thing
which
>> >> >> appeared was Segmentation fault (core dumped).
>> >> >> MAybe there is some issue with .poly file (I've attached it
to email)
>> >> >>
>> >> >> Many thanks
>> >> >> ---
>> >> >> ppor. Łukasz Pajurek
>> >> >> Szefostwo Służby Hydrometeorologicznej SZ RP
>> >> >> Wydział Zabezpieczenia Informatycznego
>> >> >>
>> >> >> 2LT Łukasz Pajurek
>> >> >> Hydrometeorological Service of the Polish Armed Forces
>> >> >> IT Support Branch
>> >> >>
>> >> Thank You very much for Your help! I've been using MET 5.0
vwersion,
>> >> but
>> >> now I've got this 5.2 version and it looks like it works.
>> >> I will try to make this mask file more suitable for my domain.
>> >> Thank You again fro Your cooperation.
>> >>
>> >> Many thanks
>> >> ---
>> >> ppor. Łukasz Pajurek
>> >> Szefostwo Służby Hydrometeorologicznej SZ RP
>> >> Wydział Zabezpieczenia Informatycznego
>> >>
>> >> 2LT Łukasz Pajurek
>> >> Hydrometeorological Service of the Polish Armed Forces
>> >> IT Support Branch
>> >>
>> >>
>>
>> Thank You for Your help!
>> I haven't been working on this thing for a couple of weeks because
of
>> another jobs, but now I've found some time and I have another issue
a
>> segmentation error.
>> I've done eberything You sent me to do, but in the beginning I'm
stuck
>> with this error:
>> Segmentation fault
>>
>> This appears when I'm trying to run
>>
>> met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon 100
100
>> 25 0 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";
>>
>> Is this some compilation issue?
>>
>> Many thanks
>> ---
>> ppor. Łukasz Pajurek
>> Szefostwo Służby Hydrometeorologicznej SZ RP
>> Wydział Zabezpieczenia Informatycznego
>>
>> 2LT Łukasz Pajurek
>> Hydrometeorological Service of the Polish Armed Forces
>> IT Support Branch
>>
>>
Unfrotunately, this was not helpful :)
Maybe it's about compilation? Is there any way to check it out? Test
scripts ran correctly, so I have no idea what could be done next. I've
installed MET on Debian 8.
---
ppor. Łukasz Pajurek
Szefostwo Służby Hydrometeorologicznej SZ RP
Wydział Zabezpieczenia Informatycznego
2LT Łukasz Pajurek
Hydrometeorological Service of the Polish Armed Forces
IT Support Branch
------------------------------------------------
Subject: Mask files for Europe
From: John Halley Gotway
Time: Thu Dec 01 15:38:21 2016
Unfortunately, it's very difficult to debug a segmentation fault
remotely
without access to the machine. Really, it could be any number of
things.
I'd suggest trying to play around with the regrid_data_plane tool to
see if
you can get it to run successfully in any instance. If so, try to
narrow
down the circumstance in which you produce a failure.
Unless I'm able to replicate the behavior here, it'll be difficult for
me
to be able to track it down for you.
John
On Thu, Dec 1, 2016 at 12:42 AM, l.pajurek via RT <met_help at ucar.edu>
wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380 >
>
> W dniu 2016-11-29 19:46, John Halley Gotway via RT napisał(a):
> > Sorry for the delay in getting back to you on this issue.
> >
> > I see that you're getting a seg fault when running the following
> > command:
> >
> > met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon 100
100
> > 25 0
> > 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";
> >
> > Are you missing the trailing single quote? It should look like
this...
> > with a close single quote:
> >
> > met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon 100
100
> > 25 0
> > 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";'
> >
> > Does that fix it?
> >
> > Thanks,
> > John
> >
> >
> >
> > On Thu, Nov 24, 2016 at 5:26 AM, l.pajurek via RT
<met_help at ucar.edu>
> > wrote:
> >
> >>
> >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380 >
> >>
> >> W dniu 2016-10-28 17:05, John Halley Gotway via RT napisał(a):
> >> > Glad that helped. I'll go ahead and resolve this issue.
> >> >
> >> > As you use MET, please be sure to pass on your comments and
> >> > suggestions.
> >> > We really value user feedback in setting priorities for future
> >> > development.
> >> >
> >> > Thanks,
> >> > John
> >> >
> >> > On Fri, Oct 28, 2016 at 2:18 AM, l.pajurek via RT
<met_help at ucar.edu>
> >> > wrote:
> >> >
> >> >>
> >> >> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78380
>
> >> >>
> >> >> W dniu 2016-10-25 20:05, John Halley Gotway via RT napisał(a):
> >> >> > Hello,
> >> >> >
> >> >> > I'm see that you have compiled MET version 5.2 and would now
like
> to
> >> >> > define
> >> >> > some new masking regions. Thanks for sending your sample
> POLAND.poly
> >> >> > polyline file. When I opened it on my Linux machine, I
noticed
> that
> >> it
> >> >> > contains "^M" characters at the end of each line. Those
show up in
> >> >> > files
> >> >> > generated on Windows machines. When I ran your polyline
file
> through
> >> >> > the
> >> >> > gen_vx_mask, the "^M" caused a runtime error since NetCDF
doesn't
> like
> >> >> > including that character in the NetCDF variable name.
> >> >> >
> >> >> > One easy way to strip them off is the "dos2unix" utility:
> >> >> > dos2unix POLAND.poly
> >> >> >
> >> >> > Next, I grabbed a sample GFS file:
> >> >> > wget http://www.ftp.ncep.noaa.gov/data/nccf/com/gfs/prod/
> >> >> > gfs.2016102512/gfs.t12z.pgrb2.0p50.f000
> >> >> >
> >> >> > Then I used the MET regrid_data_plane tool to put some data
on a
> >> >> > lat/lon
> >> >> > grid over Europe:
> >> >> >
> >> >> > met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000
'latlon
> 100
> >> >> > 100
> >> >> > 25 0 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";'
> >> >> >
> >> >> > Next, I ran the MET gen_vx_mask tool to apply your polyline
to the
> >> >> > European
> >> >> > domain:
> >> >> >
> >> >> > met-5.2/bin/gen_vx_mask gfs_euro.nc POLAND.poly
POLAND_mask.nc
> >> >> >
> >> >> > And then I ran the MET plot_data_plane tool to display the
> resulting
> >> >> > mask
> >> >> > field:
> >> >> >
> >> >> > met-5.2/bin/plot_data_plane POLAND_mask.nc POLAND_mask.ps
> >> >> > 'name="POLAND"; level="(*,*)";'
> >> >> >
> >> >> > And I attached a PNG version of the resulting output.
> >> >> >
> >> >> > As you can see, the mask is in roughly the right spot, but
there
> are
> >> >> > obvious problems with the latitude and longitude values
you've
> used to
> >> >> > define that mask for Poland.
> >> >> >
> >> >> > Hope that helps.
> >> >> >
> >> >> > Thanks,
> >> >> > John Halley Gotway
> >> >> > met_help at ucar.edu
> >> >> >
> >> >> > On Tue, Oct 25, 2016 at 5:25 AM, l.pajurek via RT <
> met_help at ucar.edu>
> >> >> > wrote:
> >> >> >
> >> >> >>
> >> >> >> Tue Oct 25 05:25:32 2016: Request 78380 was acted upon.
> >> >> >> Transaction: Ticket created by l.pajurek at meteo.mil.pl
> >> >> >> Queue: met_help
> >> >> >> Subject: Mask files for Europe
> >> >> >> Owner: Nobody
> >> >> >> Requestors: l.pajurek at meteo.mil.pl
> >> >> >> Status: new
> >> >> >> Ticket <URL: https://rt.rap.ucar.edu/rt/
> >> Ticket/Display.html?id=78380
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >> Hello!
> >> >> >>
> >> >> >> I've succesfully installed and tested the MET software, but
I've
> come
> >> >> >> to
> >> >> >> a point with no solution - how to obtain a NetCDF mask file
for a
> >> >> >> region
> >> >> >> over Europe? What kind of GRIB data is needed? I've tried
with
> >> >> >> standard
> >> >> >> GDAS observation data and GFS GRIB2 data, but the only
thing which
> >> >> >> appeared was Segmentation fault (core dumped).
> >> >> >> MAybe there is some issue with .poly file (I've attached it
to
> email)
> >> >> >>
> >> >> >> Many thanks
> >> >> >> ---
> >> >> >> ppor. Łukasz Pajurek
> >> >> >> Szefostwo Służby Hydrometeorologicznej SZ RP
> >> >> >> Wydział Zabezpieczenia Informatycznego
> >> >> >>
> >> >> >> 2LT Łukasz Pajurek
> >> >> >> Hydrometeorological Service of the Polish Armed Forces
> >> >> >> IT Support Branch
> >> >> >>
> >> >> Thank You very much for Your help! I've been using MET 5.0
vwersion,
> >> >> but
> >> >> now I've got this 5.2 version and it looks like it works.
> >> >> I will try to make this mask file more suitable for my domain.
> >> >> Thank You again fro Your cooperation.
> >> >>
> >> >> Many thanks
> >> >> ---
> >> >> ppor. Łukasz Pajurek
> >> >> Szefostwo Służby Hydrometeorologicznej SZ RP
> >> >> Wydział Zabezpieczenia Informatycznego
> >> >>
> >> >> 2LT Łukasz Pajurek
> >> >> Hydrometeorological Service of the Polish Armed Forces
> >> >> IT Support Branch
> >> >>
> >> >>
> >>
> >> Thank You for Your help!
> >> I haven't been working on this thing for a couple of weeks
because of
> >> another jobs, but now I've found some time and I have another
issue a
> >> segmentation error.
> >> I've done eberything You sent me to do, but in the beginning I'm
stuck
> >> with this error:
> >> Segmentation fault
> >>
> >> This appears when I'm trying to run
> >>
> >> met-5.2/bin/regrid_data_plane gfs.t12z.pgrb2.0p50.f000 'latlon
100 100
> >> 25 0 0.5 0.5' gfs_euro.nc -field 'name="TMP"; level="Z2";
> >>
> >> Is this some compilation issue?
> >>
> >> Many thanks
> >> ---
> >> ppor. Łukasz Pajurek
> >> Szefostwo Służby Hydrometeorologicznej SZ RP
> >> Wydział Zabezpieczenia Informatycznego
> >>
> >> 2LT Łukasz Pajurek
> >> Hydrometeorological Service of the Polish Armed Forces
> >> IT Support Branch
> >>
> >>
>
> Unfrotunately, this was not helpful :)
> Maybe it's about compilation? Is there any way to check it out? Test
> scripts ran correctly, so I have no idea what could be done next.
I've
> installed MET on Debian 8.
>
> ---
> ppor. Łukasz Pajurek
> Szefostwo Służby Hydrometeorologicznej SZ RP
> Wydział Zabezpieczenia Informatycznego
>
> 2LT Łukasz Pajurek
> Hydrometeorological Service of the Polish Armed Forces
> IT Support Branch
>
>
------------------------------------------------
More information about the Met_help
mailing list