[Met_help] [rt.rap.ucar.edu #59383] History for nc_format
John Halley Gotway via RT
met_help at ucar.edu
Wed Nov 28 14:52:11 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分
------------------------------------------------
Subject: nc_format
From: pljmtgh57245 at sina.com
Time: Tue Nov 27 09:16:30 2012
Dear John,
I have write another NC3 file, but Met can't read
it, can you give me a hand?
Thanks,
PLJ
----- 原始邮件 -----
发件人:"John Halley Gotway via RT" <met_help at ucar.edu>
收件人:pljmtgh57245 at sina.com
主题:[rt.rap.ucar.edu #59383] Resolved: nc_format
日期:2012年11月27日 23点31分
------------------------------------------------
Subject: nc_format
From: John Halley Gotway
Time: Tue Nov 27 09:34:44 2012
PLJ,
You'll have to be more specific when you say "Met can't read it".
Please send the exact command you're running and error message you're
seeing. I ran the file you sent through the "plot_data_plane"
MET utility, and MET was able to read it just fine:
[johnhg at rambler]% METv4.0/bin/plot_data_plane
W_NAFP_C_ECMF_201204160000FD0000_0006.nc
W_NAFP_C_ECMF_201204160000FD0000_0006.ps 'name="APCP"; level="(*,*)";'
DEBUG 1: Opening data file: W_NAFP_C_ECMF_201204160000FD0000_0006.nc
DEBUG 1: Creating postscript file:
W_NAFP_C_ECMF_201204160000FD0000_0006.ps
I've attached the resulting plot - after converting it from postscript
to png format.
John
On 11/27/2012 09:16 AM, pljmtgh57245 at sina.com via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=59383 >
>
> Dear John,
> I have write another NC3 file, but Met can't read it, can
you give me a hand?
>
> Thanks,
> PLJ
>
>
>
> ----- 原始邮件 -----
> 发件人:"John Halley Gotway via RT" <met_help at ucar.edu>
> 收件人:pljmtgh57245 at sina.com
> 主题:[rt.rap.ucar.edu #59383] Resolved: nc_format
> 日期:2012年11月27日 23点31分
>
>
------------------------------------------------
Subject: nc_format
From: pljmtgh57245 at sina.com
Time: Wed Nov 28 00:55:27 2012
Dear John,
Thanks for your friendly help,I made a mistake
when I using Met open the file,now that the problem is solved.
Thanks,
PLJ
----- 原始邮件 -----
发件人:"John Halley Gotway via RT" <met_help at ucar.edu>
收件人:pljmtgh57245 at sina.com
主题:Re: 回复:[rt.rap.ucar.edu #59383] Resolved: nc_format
日期:2012年11月28日 00点34分
------------------------------------------------
Subject: Re: åå¤ï¼Re: åå¤ï¼[rt.rap.ucar.edu #59383] Resolved: nc_format
From: John Halley Gotway
Time: Wed Nov 28 14:51:35 2012
Great, glad to hear it.
Thanks,
John
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=59383 >
>
> Dear John,
> Thanks for your friendly help,I made a mistake when I using
Met
> open the file,now that the problem is solved.
> Thanks,
> PLJ
>
>
>
>
> ----- åå§é®ä»¶ -----
> å件人ï¼"John Halley Gotway via RT" <met_help at ucar.edu>
> æ¶ä»¶äººï¼pljmtgh57245 at sina.com
> 主é¢ï¼Re: åå¤ï¼[rt.rap.ucar.edu #59383] Resolved: nc_format
> æ¥æï¼2012å¹´11æ28æ¥ 00ç¹34å
>
>
------------------------------------------------
More information about the Met_help
mailing list