[Met_help] [rt.rap.ucar.edu #40570] History for netCDF_format_files_please help

RAL HelpDesk {for John Halley Gotway} met_help at ucar.edu
Wed Sep 8 09:10:31 MDT 2010


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

Hi,

I work at the National Meteorological Administration- Romania,
Verification Department

I have installed the MET v2.0, and I wish to use it for the precipitation
verification, essapcially MODE verification and wawelets.
I have 5 outputs models available in GRIB format(GRIB 1) : ECMWF,
ARPEGE(french model) ALADIN and ALARO - (runs in Romania) and COSMO.

I have the observations: 24 hours accumulated precipitation in a station
point. I interpolate the observation in the same projection LatLon  and I
wrote  the results in the netcdf format : attached file
(netCDF format is not usual used here ..I am not very confortable with ...)

"ncview file" I can see the precipitation distribution .."ncdump".. print
the header and the content..
Bot If I try to use this file with MODE (using PREV and OBS .. the same
file "prec20100903.txt.1x1.nc"
I have this:
-----------------------------------------------------------------------
*** Running MODE on APCP using a GRIB forecast and netCDF observation ***
Forecast File: /data/OBS_PRECIP/CDF/prec20100903.txt.1x1.nc
Observation File: /data/OBS_PRECIP/CDF/prec20100903.txt.1x1.nc
Match Config File: /data/METV/CONFIG/ALAROModeConfig_24
Merge Config File: /data/METV/CONFIG/ALAROModeConfig_24
NetCDF: Attribute not found
--------------------------------------------------------------------------
What is wrong with my file ?

2. I've tried to convert the forecasts GRIB files (GRIB 1) to netCDF file
with ncl_convert2nc. The .nc file output is not accepted by MET. The
original file *.grb is accepted ..but the netCDF no
Thank you in advance for any help
Yours sincerelly,

O. Diaconu

PS. Sorry for my enghlish. I hope thaat my Email is .. "understandable one"


National Meteorological Administration Mail Server
Mail Scanned by NMA Antivirus Server


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

Subject: Re: [rt.rap.ucar.edu #40570] netCDF_format_files_please help
From: John Halley Gotway
Time: Tue Sep 07 11:57:54 2010

O. Diaconu,

We're happy to help.  Let me answer your questions in reverse order.

MET is actually set up to read GRIB1 the best.  So you do not need to
run the "ncl_convert2nc".  Instead, just feed the GRIB1 files directly
into the MET tools.  However, when running the grid-to-grid
tools in MET (Grid-Stat, MODE, and Wavelet-Stat), the forecast and
observation files must be on the same grid.  We recommend using the
"copygb" tool to regrid GRIB1 files and put them on a common
grid.  See the link for copygb from the MET Downloads page:
   http://www.dtcenter.org/met/users/downloads/index.php

Now, the NetCDF file you sent me is close to being able to be used by
MET.  You'll just need to add a few variable attributes to define the
timing information and some global attributes to define the
grid on which this data resides.  You basically need to make this
NetCDF file look like the NetCDF output of the PCP-Combine tool.
Here's what I'd suggest doing:

(1) Pick a couple of your GRIB files that are on the grid you'd like
to use.
(2) Run them through the PCP-Combine tool to generate a sample PCP-
Combine output file.
(3) Look at the global attributes in that file that define the grid
and copy them into your NetCDF file.
(4) Look at the variable attributes for timing information, and define
them in your NetCDF file.

Please give that a try, and if you get stuck, send me one of your GRIB
files and your NetCDF file.  I'll be happy to take a look and make
suggestions.

Also, if you haven't already done so, be sure to retrieve the latest
set of patches for METv2.0:
   http://www.dtcenter.org/met/users/support/known_issues/METv2.0/index.php

Just follow the directions listed in the first section.

Thanks,
John Halley Gotway
met_help at ucar.edu

RAL HelpDesk {for otilia.diaconu} wrote:
> Tue Sep 07 03:49:24 2010: Request 40570 was acted upon.
> Transaction: Ticket created by otilia.diaconu at meteoromania.ro
>        Queue: met_help
>      Subject: netCDF_format_files_please help
>        Owner: Nobody
>   Requestors: otilia.diaconu at meteoromania.ro
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=40570 >
>
>
> Hi,
>
> I work at the National Meteorological Administration- Romania,
> Verification Department
>
> I have installed the MET v2.0, and I wish to use it for the
precipitation
> verification, essapcially MODE verification and wawelets.
> I have 5 outputs models available in GRIB format(GRIB 1) : ECMWF,
> ARPEGE(french model) ALADIN and ALARO - (runs in Romania) and COSMO.
>
> I have the observations: 24 hours accumulated precipitation in a
station
> point. I interpolate the observation in the same projection LatLon
and I
> wrote  the results in the netcdf format : attached file
> (netCDF format is not usual used here ..I am not very confortable
with ...)
>
> "ncview file" I can see the precipitation distribution .."ncdump"..
print
> the header and the content..
> Bot If I try to use this file with MODE (using PREV and OBS .. the
same
> file "prec20100903.txt.1x1.nc"
> I have this:
>
-----------------------------------------------------------------------
> *** Running MODE on APCP using a GRIB forecast and netCDF
observation ***
> Forecast File: /data/OBS_PRECIP/CDF/prec20100903.txt.1x1.nc
> Observation File: /data/OBS_PRECIP/CDF/prec20100903.txt.1x1.nc
> Match Config File: /data/METV/CONFIG/ALAROModeConfig_24
> Merge Config File: /data/METV/CONFIG/ALAROModeConfig_24
> NetCDF: Attribute not found
>
--------------------------------------------------------------------------
> What is wrong with my file ?
>
> 2. I've tried to convert the forecasts GRIB files (GRIB 1) to netCDF
file
> with ncl_convert2nc. The .nc file output is not accepted by MET. The
> original file *.grb is accepted ..but the netCDF no
> Thank you in advance for any help
> Yours sincerelly,
>
> O. Diaconu
>
> PS. Sorry for my enghlish. I hope thaat my Email is ..
"understandable one"
>
>
> National Meteorological Administration Mail Server
> Mail Scanned by NMA Antivirus Server
>

------------------------------------------------
Subject: netCDF_format_files_please help
From: Otilia Diaconu
Time: Tue Sep 07 12:15:41 2010

Thank you very much for the answer.
Due to the 7 hours time lag, I will perform the sugested steps tomorow
moorning at the office
In fact, I have transformed my GRIB into netCDF with ncl_convert2nc in
order
to pick-up the header for my Obs netcdf fille !
I will send you the results , tomorrow,
Thanks again,
Otilia Diaconu


On Tue, Sep 7, 2010 at 8:57 PM, RAL HelpDesk {for John Halley Gotway}
<
met_help at ucar.edu> wrote:

> O. Diaconu,
>
> We're happy to help.  Let me answer your questions in reverse order.
>
> MET is actually set up to read GRIB1 the best.  So you do not need
to run
> the "ncl_convert2nc".  Instead, just feed the GRIB1 files directly
into the
> MET tools.  However, when running the grid-to-grid
> tools in MET (Grid-Stat, MODE, and Wavelet-Stat), the forecast and
> observation files must be on the same grid.  We recommend using the
"copygb"
> tool to regrid GRIB1 files and put them on a common
> grid.  See the link for copygb from the MET Downloads page:
>   http://www.dtcenter.org/met/users/downloads/index.php
>
> Now, the NetCDF file you sent me is close to being able to be used
by MET.
>  You'll just need to add a few variable attributes to define the
timing
> information and some global attributes to define the
> grid on which this data resides.  You basically need to make this
NetCDF
> file look like the NetCDF output of the PCP-Combine tool.  Here's
what I'd
> suggest doing:
>
> (1) Pick a couple of your GRIB files that are on the grid you'd like
to
> use.
> (2) Run them through the PCP-Combine tool to generate a sample PCP-
Combine
> output file.
> (3) Look at the global attributes in that file that define the grid
and
> copy them into your NetCDF file.
> (4) Look at the variable attributes for timing information, and
define them
> in your NetCDF file.
>
> Please give that a try, and if you get stuck, send me one of your
GRIB
> files and your NetCDF file.  I'll be happy to take a look and make
> suggestions.
>
> Also, if you haven't already done so, be sure to retrieve the latest
set of
> patches for METv2.0:
>
http://www.dtcenter.org/met/users/support/known_issues/METv2.0/index.php
>
> Just follow the directions listed in the first section.
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
> RAL HelpDesk {for otilia.diaconu} wrote:
> > Tue Sep 07 03:49:24 2010: Request 40570 was acted upon.
> > Transaction: Ticket created by otilia.diaconu at meteoromania.ro
> >        Queue: met_help
> >      Subject: netCDF_format_files_please help
> >        Owner: Nobody
> >   Requestors: otilia.diaconu at meteoromania.ro
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=40570 >
> >
> >
> > Hi,
> >
> > I work at the National Meteorological Administration- Romania,
> > Verification Department
> >
> > I have installed the MET v2.0, and I wish to use it for the
precipitation
> > verification, essapcially MODE verification and wawelets.
> > I have 5 outputs models available in GRIB format(GRIB 1) : ECMWF,
> > ARPEGE(french model) ALADIN and ALARO - (runs in Romania) and
COSMO.
> >
> > I have the observations: 24 hours accumulated precipitation in a
station
> > point. I interpolate the observation in the same projection LatLon
and I
> > wrote  the results in the netcdf format : attached file
> > (netCDF format is not usual used here ..I am not very confortable
with
> ...)
> >
> > "ncview file" I can see the precipitation distribution
.."ncdump".. print
> > the header and the content..
> > Bot If I try to use this file with MODE (using PREV and OBS .. the
same
> > file "prec20100903.txt.1x1.nc"
> > I have this:
> >
-----------------------------------------------------------------------
> > *** Running MODE on APCP using a GRIB forecast and netCDF
observation ***
> > Forecast File: /data/OBS_PRECIP/CDF/prec20100903.txt.1x1.nc
> > Observation File: /data/OBS_PRECIP/CDF/prec20100903.txt.1x1.nc
> > Match Config File: /data/METV/CONFIG/ALAROModeConfig_24
> > Merge Config File: /data/METV/CONFIG/ALAROModeConfig_24
> > NetCDF: Attribute not found
> >
>
--------------------------------------------------------------------------
> > What is wrong with my file ?
> >
> > 2. I've tried to convert the forecasts GRIB files (GRIB 1) to
netCDF file
> > with ncl_convert2nc. The .nc file output is not accepted by MET.
The
> > original file *.grb is accepted ..but the netCDF no
> > Thank you in advance for any help
> > Yours sincerelly,
> >
> > O. Diaconu
> >
> > PS. Sorry for my enghlish. I hope thaat my Email is ..
"understandable
> one"
> >
> >
> > National Meteorological Administration Mail Server
> > Mail Scanned by NMA Antivirus Server
> >
>
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #40570] netCDF_format_files_please help
From: John Halley Gotway
Time: Tue Sep 07 12:18:44 2010

Otilia,

Ah, I understand.  However, instead of running through ncl_convert2nc,
you should instead run it through pcp_combine.  That'll tell you how
you should set up the NetCDF header data.

Just let me know if you get stuck.

Thanks,
John

RAL HelpDesk {for Otilia Diaconu} wrote:
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=40570 >
>
> Thank you very much for the answer.
> Due to the 7 hours time lag, I will perform the sugested steps
tomorow
> moorning at the office
> In fact, I have transformed my GRIB into netCDF with ncl_convert2nc
in order
> to pick-up the header for my Obs netcdf fille !
> I will send you the results , tomorrow,
> Thanks again,
> Otilia Diaconu
>
>
> On Tue, Sep 7, 2010 at 8:57 PM, RAL HelpDesk {for John Halley
Gotway} <
> met_help at ucar.edu> wrote:
>
>> O. Diaconu,
>>
>> We're happy to help.  Let me answer your questions in reverse
order.
>>
>> MET is actually set up to read GRIB1 the best.  So you do not need
to run
>> the "ncl_convert2nc".  Instead, just feed the GRIB1 files directly
into the
>> MET tools.  However, when running the grid-to-grid
>> tools in MET (Grid-Stat, MODE, and Wavelet-Stat), the forecast and
>> observation files must be on the same grid.  We recommend using the
"copygb"
>> tool to regrid GRIB1 files and put them on a common
>> grid.  See the link for copygb from the MET Downloads page:
>>   http://www.dtcenter.org/met/users/downloads/index.php
>>
>> Now, the NetCDF file you sent me is close to being able to be used
by MET.
>>  You'll just need to add a few variable attributes to define the
timing
>> information and some global attributes to define the
>> grid on which this data resides.  You basically need to make this
NetCDF
>> file look like the NetCDF output of the PCP-Combine tool.  Here's
what I'd
>> suggest doing:
>>
>> (1) Pick a couple of your GRIB files that are on the grid you'd
like to
>> use.
>> (2) Run them through the PCP-Combine tool to generate a sample PCP-
Combine
>> output file.
>> (3) Look at the global attributes in that file that define the grid
and
>> copy them into your NetCDF file.
>> (4) Look at the variable attributes for timing information, and
define them
>> in your NetCDF file.
>>
>> Please give that a try, and if you get stuck, send me one of your
GRIB
>> files and your NetCDF file.  I'll be happy to take a look and make
>> suggestions.
>>
>> Also, if you haven't already done so, be sure to retrieve the
latest set of
>> patches for METv2.0:
>>
http://www.dtcenter.org/met/users/support/known_issues/METv2.0/index.php
>>
>> Just follow the directions listed in the first section.
>>
>> Thanks,
>> John Halley Gotway
>> met_help at ucar.edu
>>
>> RAL HelpDesk {for otilia.diaconu} wrote:
>>> Tue Sep 07 03:49:24 2010: Request 40570 was acted upon.
>>> Transaction: Ticket created by otilia.diaconu at meteoromania.ro
>>>        Queue: met_help
>>>      Subject: netCDF_format_files_please help
>>>        Owner: Nobody
>>>   Requestors: otilia.diaconu at meteoromania.ro
>>>       Status: new
>>>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=40570 >
>>>
>>>
>>> Hi,
>>>
>>> I work at the National Meteorological Administration- Romania,
>>> Verification Department
>>>
>>> I have installed the MET v2.0, and I wish to use it for the
precipitation
>>> verification, essapcially MODE verification and wawelets.
>>> I have 5 outputs models available in GRIB format(GRIB 1) : ECMWF,
>>> ARPEGE(french model) ALADIN and ALARO - (runs in Romania) and
COSMO.
>>>
>>> I have the observations: 24 hours accumulated precipitation in a
station
>>> point. I interpolate the observation in the same projection LatLon
and I
>>> wrote  the results in the netcdf format : attached file
>>> (netCDF format is not usual used here ..I am not very confortable
with
>> ...)
>>> "ncview file" I can see the precipitation distribution
.."ncdump".. print
>>> the header and the content..
>>> Bot If I try to use this file with MODE (using PREV and OBS .. the
same
>>> file "prec20100903.txt.1x1.nc"
>>> I have this:
>>>
-----------------------------------------------------------------------
>>> *** Running MODE on APCP using a GRIB forecast and netCDF
observation ***
>>> Forecast File: /data/OBS_PRECIP/CDF/prec20100903.txt.1x1.nc
>>> Observation File: /data/OBS_PRECIP/CDF/prec20100903.txt.1x1.nc
>>> Match Config File: /data/METV/CONFIG/ALAROModeConfig_24
>>> Merge Config File: /data/METV/CONFIG/ALAROModeConfig_24
>>> NetCDF: Attribute not found
>>>
>>
--------------------------------------------------------------------------
>>> What is wrong with my file ?
>>>
>>> 2. I've tried to convert the forecasts GRIB files (GRIB 1) to
netCDF file
>>> with ncl_convert2nc. The .nc file output is not accepted by MET.
The
>>> original file *.grb is accepted ..but the netCDF no
>>> Thank you in advance for any help
>>> Yours sincerelly,
>>>
>>> O. Diaconu
>>>
>>> PS. Sorry for my enghlish. I hope thaat my Email is ..
"understandable
>> one"
>>>
>>> National Meteorological Administration Mail Server
>>> Mail Scanned by NMA Antivirus Server
>>>
>>

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


More information about the Met_help mailing list