[Met_help] [rt.rap.ucar.edu #59383] History for nc_format

John Halley Gotway via RT met_help at ucar.edu
Tue Nov 27 08:31:19 MST 2012


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

 
Dear John,

       I have two NC files can read by MET,but MET show Forecast and observation valid times do not match,in fact,  I write the same observation valid to NC file ,can you give me any idea?
       thanks,
     PLJ
 
 mode N3_W.nc W_N.nc MODEConfig_APCP_12 -outdir /mnt/hgfs/EcHigh/Fenduan/F6h/F0-6/mode
DEBUG 1: Default Config File: /root/Desktop/tmp/METv4.0/data/config/MODEConfig_default
DEBUG 1: Match Config File: MODEConfig_APCP_12
DEBUG 1: Merge Config File: MODEConfig_APCP_12
DEBUG 1: Forecast File: N3_W.nc
DEBUG 1: Observation File: W_N.nc
WARNING: 
WARNING: process_fcst_obs_files() -> Forecast and observation valid times do not match 19700101_000049 != 20120616_060000 for APCPA0 versus APCPA0.
WARNING: 
DEBUG 1: Forecast Field: APCP at A0
DEBUG 1: Observation Field: APCP at A0
DEBUG 2: Identifying objects in the forecast and observation fields...
DEBUG 2: Computing contingency table statistics...
DEBUG 2: Identified: 0 forecast objects and 0 observation objects.
DEBUG 2: Performing merging (THRESH) in the forecast field.
DEBUG 2: Performing merging (THRESH) in the observation field.
DEBUG 2: Remaining: 0 forecast objects and 0 observation objects.
DEBUG 2: Performing matching (MERGE_BOTH) between the forecast and observation fields.
DEBUG 1: Creating Fcst-Obs Object Statistics file: /mnt/hgfs/EcHigh/Fenduan/F6h/F0-6/mode/mode_000000L_19700101_000049V_-02-46-39A_obj.txt
DEBUG 1: Creating Contingency Table Statistics file: /mnt/hgfs/EcHigh/Fenduan/F6h/F0-6/mode/mode_000000L_19700101_000049V_-02-46-39A_cts.txt
DEBUG 1: Creating Object NetCDF file: /mnt/hgfs/EcHigh/Fenduan/F6h/F0-6/mode/mode_000000L_19700101_000049V_-02-46-39A_obj.nc
DEBUG 1: Loading forecast raw color table: /root/Desktop/tmp/METv4.0/data/colortables/met_default.ctable
DEBUG 1: Loading observation raw color table: /root/Desktop/tmp/METv4.0/data/colortables/met_default.ctable
DEBUG 1: Creating postscript file: /mnt/hgfs/EcHigh/Fenduan/F6h/F0-6/mode/mode_000000L_19700101_000049V_-02-46-39A.ps




----- 原始邮件 -----
发件人:"John Halley Gotway via RT" <met_help at ucar.edu>
收件人:pljmtgh57245 at sina.com
主题:[rt.rap.ucar.edu #58818] Resolved: nf_format
日期:2012年11月19日 23点35分



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

Subject: Re: [rt.rap.ucar.edu #59383] nc_format
From: John Halley Gotway
Time: Mon Nov 26 09:20:00 2012

PLJ,

Happy to help.  There is a subtle problem in the "N3_W.nc" file you
sent me that is causing the problem.  The unixtime variable
attributes, init_time_ut and valid_time_ut, are stored as strings
while
the MET code is expecting them to be numeric.  Notice the double-
quotes around them in the output of ncdump listed below:

		APCP:init_time_ut = "1339826400" ;
		APCP:valid_time_ut = "1339826400" ;

If you look at their values in the other file you sent, "W_N.nc",
you'll see that they are numeric.  Notice that there are no double-
quotes:

		APCP:init_time_ut = 1339804800 ;
		APCP:valid_time_ut = 1339826400 ;

So if you modify the code that's creating the N3_W.nc file to write
the unixtime variables attributes as numbers instead of strings, that
should fix it.

Thanks,
John Halley Gotway
met_help at ucar.edu

On 11/25/2012 07:41 PM, pljmtgh57245 at sina.com via RT wrote:
>
> Sun Nov 25 19:41:40 2012: Request 59383 was acted upon.
> Transaction: Ticket created by pljmtgh57245 at sina.com
>         Queue: met_help
>       Subject: nc_format
>         Owner: Nobody
>    Requestors: pljmtgh57245 at sina.com
>        Status: new
>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=59383 >
>
>
>
> Dear John,
>
>         I have two NC files can read by MET,but MET show Forecast
and observation valid times do not match,in fact,  I write the same
observation valid to NC file ,can you give me any idea?
>         thanks,
>       PLJ
>
>   mode N3_W.nc W_N.nc MODEConfig_APCP_12 -outdir
/mnt/hgfs/EcHigh/Fenduan/F6h/F0-6/mode
> DEBUG 1: Default Config File:
/root/Desktop/tmp/METv4.0/data/config/MODEConfig_default
> DEBUG 1: Match Config File: MODEConfig_APCP_12
> DEBUG 1: Merge Config File: MODEConfig_APCP_12
> DEBUG 1: Forecast File: N3_W.nc
> DEBUG 1: Observation File: W_N.nc
> WARNING:
> WARNING: process_fcst_obs_files() -> Forecast and observation valid
times do not match 19700101_000049 != 20120616_060000 for APCPA0
versus APCPA0.
> WARNING:
> DEBUG 1: Forecast Field: APCP at A0
> DEBUG 1: Observation Field: APCP at A0
> DEBUG 2: Identifying objects in the forecast and observation
fields...
> DEBUG 2: Computing contingency table statistics...
> DEBUG 2: Identified: 0 forecast objects and 0 observation objects.
> DEBUG 2: Performing merging (THRESH) in the forecast field.
> DEBUG 2: Performing merging (THRESH) in the observation field.
> DEBUG 2: Remaining: 0 forecast objects and 0 observation objects.
> DEBUG 2: Performing matching (MERGE_BOTH) between the forecast and
observation fields.
> DEBUG 1: Creating Fcst-Obs Object Statistics file:
/mnt/hgfs/EcHigh/Fenduan/F6h/F0-6/mode/mode_000000L_19700101_000049V_-
02-46-39A_obj.txt
> DEBUG 1: Creating Contingency Table Statistics file:
/mnt/hgfs/EcHigh/Fenduan/F6h/F0-6/mode/mode_000000L_19700101_000049V_-
02-46-39A_cts.txt
> DEBUG 1: Creating Object NetCDF file:
/mnt/hgfs/EcHigh/Fenduan/F6h/F0-6/mode/mode_000000L_19700101_000049V_-
02-46-39A_obj.nc
> DEBUG 1: Loading forecast raw color table:
/root/Desktop/tmp/METv4.0/data/colortables/met_default.ctable
> DEBUG 1: Loading observation raw color table:
/root/Desktop/tmp/METv4.0/data/colortables/met_default.ctable
> DEBUG 1: Creating postscript file: /mnt/hgfs/EcHigh/Fenduan/F6h/F0-
6/mode/mode_000000L_19700101_000049V_-02-46-39A.ps
>
>
>
>
> ----- 原始邮件 -----
> 发件人:"John Halley Gotway via RT" <met_help at ucar.edu>
> 收件人:pljmtgh57245 at sina.com
> 主题:[rt.rap.ucar.edu #58818] Resolved: nf_format
> 日期:2012年11月19日 23点35分
>
>

------------------------------------------------
Subject: nc_format
From: pljmtgh57245 at sina.com
Time: Mon Nov 26 18:28:29 2012



Dear John,
   thank you wery much,My problem has been correctly handle.
thanks, 
   PLJ


----- 原始邮件 -----
发件人:"John Halley Gotway via RT" <met_help at ucar.edu>
收件人:pljmtgh57245 at sina.com
主题:Re: [rt.rap.ucar.edu #59383] nc_format
日期:2012年11月27日 00点20分


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


More information about the Met_help mailing list