[Met_help] [rt.rap.ucar.edu #80005] History for CF-netcdf format-in met-5.2

John Halley Gotway via RT met_help at ucar.edu
Thu Mar 30 13:11:31 MDT 2017


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

Hi,

After debug GRIB-ECMWF table, ( many thanks) another problem appears in
using met-5,2 version.

I have a netcdf observation file provided by Climatological Department. Is
a CF file format ..

The file is attached to this message.

I can plot this file with :

plot_data_plane obs_prec.nc  obs_prec.ps 'name="TOT_PREC";level="(0,*,*)";'
 and the  obs_prec.ps looks OK.
But when I've try to run ( for COSMO model !)
:
wavelet_stat

using CONFIG file
..........................

/
// Forecast and observation fields to be verified
//
fcst = {
   field = [
      {
        name       = "TOT_PREC";
        level      =  [ "Z0" ];
        cat_thresh = [ >0.1, >=5.0 ];
      }
   ];
}

obs = {
   field = {
      name  = "TOT_PREC";
     level = "(0,*,*)";
      cat_thresh = [ >=0.1, >=5.0 ];
   };
}
// obs = fcst;
------------------

I have the error:

Dictionary::lookup_array() -> lookup failed for name "obs.field"

and if I uncomment "obs=fcst"

ERROR  : NcCfFile::data(NcVar *, const LongArray &, DataPlane &) -> needed
3 arguments for variable TOT_PREC, got 2
----------
The field TOT_PREC in obs file is TOT_PREC(time,lon,lat)... and the
forecast is TOT_PREC(lon,lat)..
..................

How can I manage this ?

Thank you in advacnce for your help,

Otilia Diaconu


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

Subject: CF-netcdf format-in met-5.2
From: John Halley Gotway
Time: Wed Mar 29 07:42:11 2017

Otilia,

Please look closely at how you've defined obs.field and compare it to
how
fcst.field is set.  It looks to me like you're missing square brackets
[
and ] in the obs.field section.

The field entry is an array and should be surrounded by those square
brackets.  Each array entry is a dictionary that is surround by curly
braces { and }.


obs = {
   field = [
     {
        name  = "TOT_PREC";
        level = "(0,*,*)";
        cat_thresh = [ >=0.1, >=5.0 ];
      };
   ];
}

Does that fix the problem?

John

On Tue, Mar 28, 2017 at 11:55 PM Otilia Diaconu via RT
<met_help at ucar.edu>
wrote:

>
> Tue Mar 28 23:55:36 2017: Request 80005 was acted upon.
> Transaction: Ticket created by otilia.diaconu at gmail.com
>        Queue: met_help
>      Subject: CF-netcdf format-in met-5.2
>        Owner: Nobody
>   Requestors: otilia.diaconu at gmail.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80005 >
>
>
> Hi,
>
> After debug GRIB-ECMWF table, ( many thanks) another problem appears
in
> using met-5,2 version.
>
> I have a netcdf observation file provided by Climatological
Department. Is
> a CF file format ..
>
> The file is attached to this message.
>
> I can plot this file with :
>
> plot_data_plane obs_prec.nc  obs_prec.ps
> 'name="TOT_PREC";level="(0,*,*)";'
>  and the  obs_prec.ps looks OK.
> But when I've try to run ( for COSMO model !)
> :
> wavelet_stat
>
> using CONFIG file
> ..........................
>
> /
> // Forecast and observation fields to be verified
> //
> fcst = {
>    field = [
>       {
>         name       = "TOT_PREC";
>         level      =  [ "Z0" ];
>         cat_thresh = [ >0.1, >=5.0 ];
>       }
>    ];
> }
>
> obs = {
>    field = {
>       name  = "TOT_PREC";
>      level = "(0,*,*)";
>       cat_thresh = [ >=0.1, >=5.0 ];
>    };
> }
> // obs = fcst;
> ------------------
>
> I have the error:
>
> Dictionary::lookup_array() -> lookup failed for name "obs.field"
>
> and if I uncomment "obs=fcst"
>
> ERROR  : NcCfFile::data(NcVar *, const LongArray &, DataPlane &) ->
needed
> 3 arguments for variable TOT_PREC, got 2
> ----------
> The field TOT_PREC in obs file is TOT_PREC(time,lon,lat)... and the
> forecast is TOT_PREC(lon,lat)..
> ..................
>
> How can I manage this ?
>
> Thank you in advacnce for your help,
>
> Otilia Diaconu
>
>

------------------------------------------------
Subject: CF-netcdf format-in met-5.2
From: Otilia Diaconu
Time: Wed Mar 29 10:15:30 2017

Hi John, oh yes  !  You have pointed on the error ! the brackets fixed
the
problem ! May be I have picked one old config file ??? I can' t
explain the
missed brackets !!!
It' s ok now !
The problem is solved
Thank you

Otilia Diaconu

On 29 Mar 2017 16:42, "John Halley Gotway via RT" <met_help at ucar.edu>
wrote:

> Otilia,
>
> Please look closely at how you've defined obs.field and compare it
to how
> fcst.field is set.  It looks to me like you're missing square
brackets [
> and ] in the obs.field section.
>
> The field entry is an array and should be surrounded by those square
> brackets.  Each array entry is a dictionary that is surround by
curly
> braces { and }.
>
>
> obs = {
>    field = [
>      {
>         name  = "TOT_PREC";
>         level = "(0,*,*)";
>         cat_thresh = [ >=0.1, >=5.0 ];
>       };
>    ];
> }
>
> Does that fix the problem?
>
> John
>
> On Tue, Mar 28, 2017 at 11:55 PM Otilia Diaconu via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > Tue Mar 28 23:55:36 2017: Request 80005 was acted upon.
> > Transaction: Ticket created by otilia.diaconu at gmail.com
> >        Queue: met_help
> >      Subject: CF-netcdf format-in met-5.2
> >        Owner: Nobody
> >   Requestors: otilia.diaconu at gmail.com
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80005 >
> >
> >
> > Hi,
> >
> > After debug GRIB-ECMWF table, ( many thanks) another problem
appears in
> > using met-5,2 version.
> >
> > I have a netcdf observation file provided by Climatological
Department.
> Is
> > a CF file format ..
> >
> > The file is attached to this message.
> >
> > I can plot this file with :
> >
> > plot_data_plane obs_prec.nc  obs_prec.ps
> > 'name="TOT_PREC";level="(0,*,*)";'
> >  and the  obs_prec.ps looks OK.
> > But when I've try to run ( for COSMO model !)
> > :
> > wavelet_stat
> >
> > using CONFIG file
> > ..........................
> >
> > /
> > // Forecast and observation fields to be verified
> > //
> > fcst = {
> >    field = [
> >       {
> >         name       = "TOT_PREC";
> >         level      =  [ "Z0" ];
> >         cat_thresh = [ >0.1, >=5.0 ];
> >       }
> >    ];
> > }
> >
> > obs = {
> >    field = {
> >       name  = "TOT_PREC";
> >      level = "(0,*,*)";
> >       cat_thresh = [ >=0.1, >=5.0 ];
> >    };
> > }
> > // obs = fcst;
> > ------------------
> >
> > I have the error:
> >
> > Dictionary::lookup_array() -> lookup failed for name "obs.field"
> >
> > and if I uncomment "obs=fcst"
> >
> > ERROR  : NcCfFile::data(NcVar *, const LongArray &, DataPlane &)
->
> needed
> > 3 arguments for variable TOT_PREC, got 2
> > ----------
> > The field TOT_PREC in obs file is TOT_PREC(time,lon,lat)... and
the
> > forecast is TOT_PREC(lon,lat)..
> > ..................
> >
> > How can I manage this ?
> >
> > Thank you in advacnce for your help,
> >
> > Otilia Diaconu
> >
> >
>
>

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


More information about the Met_help mailing list