[Met_help] [rt.rap.ucar.edu #73595] History for I have question about MET MODE.

John Halley Gotway via RT met_help at ucar.edu
Thu Oct 29 15:44:48 MDT 2015


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

[IMAGE]

Hello, I'm Juwon Lee at KIAPS.

May I ask you about usage of MET MODE?

I want to apply to MODE for our model results, but I couldn't do that.

The error message is listed below.

 *** Running MODE on APCP using netCDF input for both forecast and 
    observation ***                                                   
    DEBUG 1: Default Config File:                                     
    /home/jwlee/MET/met-5.0/share/met/config/MODEConfig_default       
    DEBUG 1: Match Config File: ./config/MODEConfig_APCP_24_jwlee     
    DEBUG 1: Merge Config File: ./config/MODEConfig_APCP_24_jwlee     
    NetCDF: Attribute not found                                       
I made the fcst_file and obs_file of netcdf format.

The header of these files is listed below.

 netcdf 2015071200_00-24 {                      
    dimensions:                                    
    lat = 121 ;                                    
    lon = 111 ;                                    
                                                   
    variables:                                     
    float APCP_24(lat, lon) ;                      
    APCP_24:_FillValue = -9999.f ;                 
    APCP_24:name = "APCP_24" ;                     
    APCP_24:long_name = "Total precipitation" ;    
    APCP_24:level = "A24" ;                        
    APCP_24:units = "kg/m^2" ;                     
                                                   
    APCP_24:accum_time = "240000" ;                
    APCP_24:accum_time_sec = "86400" ;             
    float lat(lat) ;                               
    lat:_FillValue = -9999.f ;                     
    lat:units = "degrees_east" ;                   
    lat:long_name = "latitude" ;                   
    float lon(lon) ;                               
    lon:_FillValue = -9999.f ;                     
    lon:units = "degrees_north" ;                  
    lon:long_name = "longitude" ;                  
                                                   
    // global attributes:                          
    :Projection = "LatLon" ;                       
    :lat_ll = "20 degrees_north" ;                 
    :lon_ll = "-105.12 degrees_east" ;             
    :delta_lat = "0.25 delta_lat" ;                
    :delta_lon = "0.36 delta_lon" ;                
    :Nlat = "121 grid_points" ;                    
    :Nlon = "111 grid_points" ;                    
    }                                              
What is the problem this job?

I just modified two arguments of confuguration file, model name and grid_res
(25).

I used the rest of arguments providing sample file.

I'm waiting for your reply. Thank you.

P.S. I attched the obs_file. Please examine this file.



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

Subject: I have question about MET MODE.
From: John Halley Gotway
Time: Thu Oct 01 14:16:55 2015

Juwon,

Thanks for sending me the sample data file.  That made debugging a lot
easier.

First, let me apologize for that very un-helpful error message you
received
from met-5.0.  Running the same data file through the upcoming release
of
MET (version 5.1) will yield the following warning instead:

WARNING:
WARNING: read_netcdf_grid() -> Applying METv2.0 grid parsing logic
since
the "MET_version" global attribute is not present.
WARNING:

There are two minor issues... adding the MET_version global attribute
to
trigger the correct grid parsing logic and defining accum_time_sec as
an
integer rather than a string.  I ran the following commands to test
this
out:

# Modify the NetCDF file
ncatted -a MET_version,global,a,c,V5.0 -a
accum_time_sec,APCP_24,o,l,86400
2015071200_00-24.nc -o 2015071200_00-24_new.nc

# Run plot_data_plane to plot it
met-5.0/bin/plot_data_plane 2015071200_00-24_new.nc 2015071200_00-
24.ps
'name="APCP_24"; level="(*,*)";'

And the result is attached.

Thanks,
John Halley Gotway
met_help at ucar.edu



On Thu, Oct 1, 2015 at 1:10 AM, Juwon Lee via RT <met_help at ucar.edu>
wrote:

>
> Thu Oct 01 01:10:43 2015: Request 73595 was acted upon.
> Transaction: Ticket created by jw.lee at kiaps.org
>        Queue: met_help
>      Subject: I have question about MET MODE.
>        Owner: Nobody
>   Requestors: jw.lee at kiaps.org
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=73595 >
>
>
> [IMAGE]
>
> Hello, I'm Juwon Lee at KIAPS.
>
> May I ask you about usage of MET MODE?
>
> I want to apply to MODE for our model results, but I couldn't do
that.
>
> The error message is listed below.
>
>  *** Running MODE on APCP using netCDF input for both forecast and
>     observation ***
>     DEBUG 1: Default Config File:
>     /home/jwlee/MET/met-5.0/share/met/config/MODEConfig_default
>     DEBUG 1: Match Config File: ./config/MODEConfig_APCP_24_jwlee
>     DEBUG 1: Merge Config File: ./config/MODEConfig_APCP_24_jwlee
>     NetCDF: Attribute not found
> I made the fcst_file and obs_file of netcdf format.
>
> The header of these files is listed below.
>
>  netcdf 2015071200_00-24 {
>     dimensions:
>     lat = 121 ;
>     lon = 111 ;
>
>     variables:
>     float APCP_24(lat, lon) ;
>     APCP_24:_FillValue = -9999.f ;
>     APCP_24:name = "APCP_24" ;
>     APCP_24:long_name = "Total precipitation" ;
>     APCP_24:level = "A24" ;
>     APCP_24:units = "kg/m^2" ;
>
>     APCP_24:accum_time = "240000" ;
>     APCP_24:accum_time_sec = "86400" ;
>     float lat(lat) ;
>     lat:_FillValue = -9999.f ;
>     lat:units = "degrees_east" ;
>     lat:long_name = "latitude" ;
>     float lon(lon) ;
>     lon:_FillValue = -9999.f ;
>     lon:units = "degrees_north" ;
>     lon:long_name = "longitude" ;
>
>     // global attributes:
>     :Projection = "LatLon" ;
>     :lat_ll = "20 degrees_north" ;
>     :lon_ll = "-105.12 degrees_east" ;
>     :delta_lat = "0.25 delta_lat" ;
>     :delta_lon = "0.36 delta_lon" ;
>     :Nlat = "121 grid_points" ;
>     :Nlon = "111 grid_points" ;
>     }
> What is the problem this job?
>
> I just modified two arguments of confuguration file, model name and
> grid_res
> (25).
>
> I used the rest of arguments providing sample file.
>
> I'm waiting for your reply. Thank you.
>
> P.S. I attched the obs_file. Please examine this file.
>
>
>

------------------------------------------------
Subject: I have question about MET MODE.
From: John Halley Gotway
Time: Fri Oct 02 10:15:06 2015

Juwon,

I'm guessing this is just a problem in your MODE configuration file
named
"MODEConfig_APCP_24_jwlee".

Please try using the following setting in the "fcst" section:

fcst = {
   field = {
      name  = "APCP_24";  // the name of the NetCDF variable to be
used
      level = "(*,*)";             // how to index into that
variable's
dimensions
   };
...

Please let me know how that goes.

Thanks,
John

On Thu, Oct 1, 2015 at 8:32 PM, Juwon Lee via RT <met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=73595 >
>
> [IMAGE]
>
> Dear John,
>
> Thank you for your reply.
>
> I modified the input file along your comments, but I could'nt apply
to MET
> MODE.
>
> The error message is listed below.
>
>  *** Running MODE on APCP using netCDF input for both forecast and
>     observation ***
>     DEBUG 1: Default Config File:
>     /home/jwlee/MET/met-5.0/share/met/config/MODEConfig_default
>     DEBUG 1: Match Config File: ./config/MODEConfig_APCP_24_jwlee
>     DEBUG 1: Merge Config File: ./config/MODEConfig_APCP_24_jwlee
>     DEBUG 1: Forecast File:
>     /home/jwlee/MET/met-5.0/scripts/../../KIM-
SOP/COLD/2015071200_00-24.nc
>     DEBUG 1: Observation File:
>     /home/jwlee/MET/met-5.0/scripts/../../CMORPH/2015071200_00-24.nc
>     ERROR :
>     ERROR : process_fcst_obs_files() -> can't get data from file
>     "/home/jwlee/MET/met-5.0/scripts/../../KIM-SOP/COLD/
> 2015071200_00-24.nc"
>     ERROR :
> The input file (2015071200_00-24.nc) is located in that
> ("/home/jwlee/MET/met-5.0/scripts/../../KIM-SOP/COLD/) directory.
>
> I found the related source code involving this message,
>
> (met-5.0/src/tools/core/mode/mode_exec.cc)
>
> but I couldn't solve the problem.
>
> Can you help me? I'm waiting for your reply. Thank you.
>
> P.S. I attached the modified sample file.
>
>
>
>
>
>   -----------Original Message-----------
>   Sender : John Halley Gotway via RT < met_help at ucar.edu >
>   To : jw.lee at kiaps.org
>   Date : 2015-10-02 05:16:55
>   Subject : Re: [rt.rap.ucar.edu #73595] I have question about MET
MODE.
>
>   Juwon,
>
>   Thanks for sending me the sample data file. That made debugging a
lot
>   easier.
>
>   First, let me apologize for that very un-helpful error message you
> received
>   from met-5.0. Running the same data file through the upcoming
release of
>   MET (version 5.1) will yield the following warning instead:
>
>   WARNING:
>   WARNING: read_netcdf_grid() -> Applying METv2.0 grid parsing logic
since
>   the "MET_version" global attribute is not present.
>   WARNING:
>
>   There are two minor issues... adding the MET_version global
attribute to
>   trigger the correct grid parsing logic and defining accum_time_sec
as an
>   integer rather than a string. I ran the following commands to test
this
>   out:
>
>   # Modify the NetCDF file
>   ncatted -a MET_version,global,a,c,V5.0 -a
> accum_time_sec,APCP_24,o,l,86400
>   2015071200_00-24.nc -o 2015071200_00-24_new.nc
>
>   # Run plot_data_plane to plot it
>   met-5.0/bin/plot_data_plane 2015071200_00-24_new.nc 2015071200_00-
24.ps
>   'name="APCP_24"; level="(*,*)";'
>
>   And the result is attached.
>
>   Thanks,
>   John Halley Gotway
>   met_help at ucar.edu
>
>
>
>   On Thu, Oct 1, 2015 at 1:10 AM, Juwon Lee via RT wrote:
>
>   >
>   > Thu Oct 01 01:10:43 2015: Request 73595 was acted upon.
>   > Transaction: Ticket created by jw.lee at kiaps.org
>   > Queue: met_help
>   > Subject: I have question about MET MODE.
>   > Owner: Nobody
>   > Requestors: jw.lee at kiaps.org
>   > Status: new
>   > Ticket
>   >
>   >
>   > [IMAGE]
>   >
>   > Hello, I'm Juwon Lee at KIAPS.
>   >
>   > May I ask you about usage of MET MODE?
>   >
>   > I want to apply to MODE for our model results, but I couldn't do
that.
>   >
>   > The error message is listed below.
>   >
>   > *** Running MODE on APCP using netCDF input for both forecast
and
>   > observation ***
>   > DEBUG 1: Default Config File:
>   > /home/jwlee/MET/met-5.0/share/met/config/MODEConfig_default
>   > DEBUG 1: Match Config File: ./config/MODEConfig_APCP_24_jwlee
>   > DEBUG 1: Merge Config File: ./config/MODEConfig_APCP_24_jwlee
>   > NetCDF: Attribute not found
>   > I made the fcst_file and obs_file of netcdf format.
>   >
>   > The header of these files is listed below.
>   >
>   > netcdf 2015071200_00-24 {
>   > dimensions:
>   > lat = 121 ;
>   > lon = 111 ;
>   >
>   > variables:
>   > float APCP_24(lat, lon) ;
>   > APCP_24:_FillValue = -9999.f ;
>   > APCP_24:name = "APCP_24" ;
>   > APCP_24:long_name = "Total precipitation" ;
>   > APCP_24:level = "A24" ;
>   > APCP_24:units = "kg/m^2" ;
>   >
>   > APCP_24:accum_time = "240000" ;
>   > APCP_24:accum_time_sec = "86400" ;
>   > float lat(lat) ;
>   > lat:_FillValue = -9999.f ;
>   > lat:units = "degrees_east" ;
>   > lat:long_name = "latitude" ;
>   > float lon(lon) ;
>   > lon:_FillValue = -9999.f ;
>   > lon:units = "degrees_north" ;
>   > lon:long_name = "longitude" ;
>   >
>   > // global attributes:
>   > :Projection = "LatLon" ;
>   > :lat_ll = "20 degrees_north" ;
>   > :lon_ll = "-105.12 degrees_east" ;
>   > :delta_lat = "0.25 delta_lat" ;
>   > :delta_lon = "0.36 delta_lon" ;
>   > :Nlat = "121 grid_points" ;
>   > :Nlon = "111 grid_points" ;
>   > }
>   > What is the problem this job?
>   >
>   > I just modified two arguments of confuguration file, model name
and
>   > grid_res
>   > (25).
>   >
>   > I used the rest of arguments providing sample file.
>   >
>   > I'm waiting for your reply. Thank you.
>   >
>   > P.S. I attched the obs_file. Please examine this file.
>   >
>   >
>   >
>
>
>

------------------------------------------------
Subject: I have question about MET MODE.
From: John Halley Gotway
Time: Mon Oct 05 09:56:29 2015

Juwon,

Great, I'm glad you're making progress in running MODE.  The good news
is
that you can easily swap out what map data is being plotted by editing
the
configuration files.

When you compiled met-5.0, you may have used the "--prefix" option to
tell
the configure script where to install the tools.  If not, it would
have
installed them in "/usr/local".  Look in the MET installation
directory for
the file named " share/met/config/ConfigMapData" and open it up for
editing.

The "source" array lists which map data files should be included on
the
plot.  By default, it's world outline data, country data, and then USA
state data.  You can add or remove whatever data files you'd like.
Additionally, you can specify separate values for line_color,
line_width,
and line_dash for each data file if you'd like.

Take a look in "share/met/map/update_2012" for existing map data
files.
You could try using just this one:
   MET_BASE/map/update_2012/admin_detail_data

Or you could do "country_data" followed by
"admin_by_country/admin_South_Korea_data" for example.

By defining the map data in the ConfigMapData file, the settings will
apply
to all the MET tools.  For example, I set mine to admin_detail_data
and ran
the plot_data_plane tool to make the attached plot of 6-hourly GFS
precip:
   plot_data_plane gfs_2012040900_F048.grib test.ps 'name="APCP";
level="A6";'

However, if you want to only have your settings apply to MODE for
example,
don't edit ConfigMapData but instead copy and paste its contents to
the end
of MODE config file.  That will cause your changes to only be applied
to
MODE.

Hope that helps.

Thanks,
John



On Sun, Oct 4, 2015 at 6:40 PM, Juwon Lee via RT <met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=73595 >
>
> [IMAGE]
>
> Dear John,
>
> Thank you for your advice. I could get a result from MET MODE.^^
>
> By the way, I want to change the map of mode output.
>
> Currently, the map of output is USA land, but I want to show the
area of
> East
> Asia.
>
> What can do for this result?
>
> Thanks,
>
> Juwon.
>
>
>
>   -----------Original Message-----------
>   Sender : John Halley Gotway via RT < met_help at ucar.edu >
>   To : jw.lee at kiaps.org
>   Date : 2015-10-03 01:15:07
>   Subject : Re: [RE]Re: [rt.rap.ucar.edu #73595] I have question
about MET
>   MODE.
>
>   Juwon,
>
>   I'm guessing this is just a problem in your MODE configuration
file named
>   "MODEConfig_APCP_24_jwlee".
>
>   Please try using the following setting in the "fcst" section:
>
>   fcst = {
>   field = {
>   name = "APCP_24"; // the name of the NetCDF variable to be used
>   level = "(*,*)"; // how to index into that variable's
>   dimensions
>   };
>   ....
>
>   Please let me know how that goes.
>
>   Thanks,
>   John
>
>   On Thu, Oct 1, 2015 at 8:32 PM, Juwon Lee via RT wrote:
>
>   >
>   >
>   >
>   > [IMAGE]
>   >
>   > Dear John,
>   >
>   > Thank you for your reply.
>   >
>   > I modified the input file along your comments, but I could'nt
apply to
>   MET
>   > MODE.
>   >
>   > The error message is listed below.
>   >
>   > *** Running MODE on APCP using netCDF input for both forecast
and
>   > observation ***
>   > DEBUG 1: Default Config File:
>   > /home/jwlee/MET/met-5.0/share/met/config/MODEConfig_default
>   > DEBUG 1: Match Config File: ./config/MODEConfig_APCP_24_jwlee
>   > DEBUG 1: Merge Config File: ./config/MODEConfig_APCP_24_jwlee
>   > DEBUG 1: Forecast File:
>   > /home/jwlee/MET/met-5.0/scripts/../../KIM-
SOP/COLD/2015071200_00-24.nc
>   > DEBUG 1: Observation File:
>   > /home/jwlee/MET/met-5.0/scripts/../../CMORPH/2015071200_00-24.nc
>   > ERROR :
>   > ERROR : process_fcst_obs_files() -> can't get data from file
>   > "/home/jwlee/MET/met-5.0/scripts/../../KIM-SOP/COLD/
>   > 2015071200_00-24.nc"
>   > ERROR :
>   > The input file (2015071200_00-24.nc) is located in that
>   > ("/home/jwlee/MET/met-5.0/scripts/../../KIM-SOP/COLD/)
directory.
>   >
>   > I found the related source code involving this message,
>   >
>   > (met-5.0/src/tools/core/mode/mode_exec.cc)
>   >
>   > but I couldn't solve the problem.
>   >
>   > Can you help me? I'm waiting for your reply. Thank you.
>   >
>   > P.S. I attached the modified sample file.
>   >
>   >
>   >
>   >
>   >
>   > -----------Original Message-----------
>   > Sender : John Halley Gotway via RT < met_help at ucar.edu >
>   > To : jw.lee at kiaps.org
>   > Date : 2015-10-02 05:16:55
>   > Subject : Re: [rt.rap.ucar.edu #73595] I have question about MET
MODE.
>   >
>   > Juwon,
>   >
>   > Thanks for sending me the sample data file. That made debugging
a lot
>   > easier.
>   >
>   > First, let me apologize for that very un-helpful error message
you
>   > received
>   > from met-5.0. Running the same data file through the upcoming
release
> of
>   > MET (version 5.1) will yield the following warning instead:
>   >
>   > WARNING:
>   > WARNING: read_netcdf_grid() -> Applying METv2.0 grid parsing
logic
> since
>   > the "MET_version" global attribute is not present.
>   > WARNING:
>   >
>   > There are two minor issues... adding the MET_version global
attribute
> to
>   > trigger the correct grid parsing logic and defining
accum_time_sec as
> an
>   > integer rather than a string. I ran the following commands to
test this
>   > out:
>   >
>   > # Modify the NetCDF file
>   > ncatted -a MET_version,global,a,c,V5.0 -a
>   > accum_time_sec,APCP_24,o,l,86400
>   > 2015071200_00-24.nc -o 2015071200_00-24_new.nc
>   >
>   > # Run plot_data_plane to plot it
>   > met-5.0/bin/plot_data_plane 2015071200_00-24_new.nc
> 2015071200_00-24.ps
>   > 'name="APCP_24"; level="(*,*)";'
>   >
>   > And the result is attached.
>   >
>   > Thanks,
>   > John Halley Gotway
>   > met_help at ucar.edu
>   >
>   >
>   >
>   > On Thu, Oct 1, 2015 at 1:10 AM, Juwon Lee via RT wrote:
>   >
>   > >
>   > > Thu Oct 01 01:10:43 2015: Request 73595 was acted upon.
>   > > Transaction: Ticket created by jw.lee at kiaps.org
>   > > Queue: met_help
>   > > Subject: I have question about MET MODE.
>   > > Owner: Nobody
>   > > Requestors: jw.lee at kiaps.org
>   > > Status: new
>   > > Ticket
>   > >
>   > >
>   > > [IMAGE]
>   > >
>   > > Hello, I'm Juwon Lee at KIAPS.
>   > >
>   > > May I ask you about usage of MET MODE?
>   > >
>   > > I want to apply to MODE for our model results, but I couldn't
do
> that.
>   > >
>   > > The error message is listed below.
>   > >
>   > > *** Running MODE on APCP using netCDF input for both forecast
and
>   > > observation ***
>   > > DEBUG 1: Default Config File:
>   > > /home/jwlee/MET/met-5.0/share/met/config/MODEConfig_default
>   > > DEBUG 1: Match Config File: ./config/MODEConfig_APCP_24_jwlee
>   > > DEBUG 1: Merge Config File: ./config/MODEConfig_APCP_24_jwlee
>   > > NetCDF: Attribute not found
>   > > I made the fcst_file and obs_file of netcdf format.
>   > >
>   > > The header of these files is listed below.
>   > >
>   > > netcdf 2015071200_00-24 {
>   > > dimensions:
>   > > lat = 121 ;
>   > > lon = 111 ;
>   > >
>   > > variables:
>   > > float APCP_24(lat, lon) ;
>   > > APCP_24:_FillValue = -9999.f ;
>   > > APCP_24:name = "APCP_24" ;
>   > > APCP_24:long_name = "Total precipitation" ;
>   > > APCP_24:level = "A24" ;
>   > > APCP_24:units = "kg/m^2" ;
>   > >
>   > > APCP_24:accum_time = "240000" ;
>   > > APCP_24:accum_time_sec = "86400" ;
>   > > float lat(lat) ;
>   > > lat:_FillValue = -9999.f ;
>   > > lat:units = "degrees_east" ;
>   > > lat:long_name = "latitude" ;
>   > > float lon(lon) ;
>   > > lon:_FillValue = -9999.f ;
>   > > lon:units = "degrees_north" ;
>   > > lon:long_name = "longitude" ;
>   > >
>   > > // global attributes:
>   > > :Projection = "LatLon" ;
>   > > :lat_ll = "20 degrees_north" ;
>   > > :lon_ll = "-105.12 degrees_east" ;
>   > > :delta_lat = "0.25 delta_lat" ;
>   > > :delta_lon = "0.36 delta_lon" ;
>   > > :Nlat = "121 grid_points" ;
>   > > :Nlon = "111 grid_points" ;
>   > > }
>   > > What is the problem this job?
>   > >
>   > > I just modified two arguments of confuguration file, model
name and
>   > > grid_res
>   > > (25).
>   > >
>   > > I used the rest of arguments providing sample file.
>   > >
>   > > I'm waiting for your reply. Thank you.
>   > >
>   > > P.S. I attched the obs_file. Please examine this file.
>   > >
>   > >
>   > >
>   >
>   >
>   >
>
>
>

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


More information about the Met_help mailing list