<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16464">
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#000080 size=2 face=Verdana><SPAN 
style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: #1f497d; FONT-SIZE: 11pt">
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN 
style="COLOR: black; FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'; mso-themecolor: text1"><FONT 
face=Calibri>Oops, sorry about that. </FONT></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN 
style="COLOR: black; FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'; mso-themecolor: text1"><FONT 
face=Calibri></FONT></SPAN>&nbsp;</P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN 
style="COLOR: black; FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'; mso-themecolor: text1"><FONT 
face=Calibri>Thank you for checking the problem. I will try.<?xml:namespace 
prefix = o ns = "urn:schemas-microsoft-com:office:office" 
/><o:p></o:p></FONT></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 0pt" class=MsoNormal><SPAN 
style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-themecolor: text1"><o:p>&nbsp;</o:p></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0in 0in 7.5pt" class=MsoNormal><FONT 
face=Calibri><SPAN 
style="COLOR: black; FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'; mso-themecolor: text1">Lifen</SPAN><SPAN 
style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-themecolor: text1"><o:p></o:p></SPAN></FONT></P></SPAN></FONT></DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2013-02-13 </FONT></DIV><FONT 
color=#000080 size=2 face=Verdana>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>Jiang, Lifen</SPAN> 
</FONT></DIV>
<HR color=#b5c4df SIZE=1>

<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG> Dennis Shea </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发送时间:</STRONG> 2013-02-13&nbsp; 09:48:26 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> Jiang, Lifen </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> ncl-install </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: [ncl-install] [ncl-talk] 
Data processing problem </FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>[1]&nbsp;You&nbsp;posted&nbsp;this&nbsp;to&nbsp;'ncl-install'</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This&nbsp;is&nbsp;for&nbsp;installing&nbsp;NCL&nbsp;on&nbsp;your&nbsp;system&nbsp;not&nbsp;NCL&nbsp;questions.</DIV>
<DIV></DIV>
<DIV>[2]&nbsp;"Panoply"&nbsp;is&nbsp;not&nbsp;NCL.&nbsp;All&nbsp;Panoply&nbsp;questions&nbsp;should&nbsp;be&nbsp;sent&nbsp;to</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;Panoply&nbsp;help&nbsp;site&nbsp;...&nbsp;not&nbsp;NCL.&nbsp;We&nbsp;know&nbsp;nothing&nbsp;about</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Panoply.</DIV>
<DIV></DIV>
<DIV>[3]&nbsp;What&nbsp;do&nbsp;you&nbsp;mean&nbsp;by&nbsp;"wrong&nbsp;names"&nbsp;?</DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;you&nbsp;did</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t&nbsp;&nbsp;=&nbsp;short2flt(in-&gt;med_c0)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;then</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printVarSummary(t)</DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;it&nbsp;will&nbsp;show&nbsp;you&nbsp;the&nbsp;original&nbsp;dimension&nbsp;information.</DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;you&nbsp;did&nbsp;some&nbsp;NCL&nbsp;processing&nbsp;and&nbsp;you&nbsp;did&nbsp;not&nbsp;handle</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;meta&nbsp;data&nbsp;(eg,&nbsp;dimension&nbsp;names),&nbsp;then&nbsp;NCL&nbsp;will</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;provide&nbsp;default&nbsp;dimension&nbsp;names&nbsp;(ncl0.&nbsp;ncl1,&nbsp;...)</DIV>
<DIV></DIV>
<DIV>---</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>You&nbsp;should&nbsp;do&nbsp;the&nbsp;following&nbsp;from&nbsp;the&nbsp;command&nbsp;line</DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;&nbsp;%&gt;&nbsp;ncdump&nbsp;-h&nbsp;med_x0_kgm-2.nc&nbsp;&nbsp;|&nbsp;less</DIV>
<DIV></DIV>
<DIV>or</DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;&nbsp;%&gt;&nbsp;ncl_filedump&nbsp;med_x0_kgm-2.nc&nbsp;&nbsp;|&nbsp;less</DIV>
<DIV></DIV>
<DIV>Either&nbsp;will&nbsp;show&nbsp;the&nbsp;real&nbsp;dimension&nbsp;names.</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>On&nbsp;02/13/2013&nbsp;08:22&nbsp;AM,&nbsp;Jiang,&nbsp;Lifen&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;Hi&nbsp;Dennis,</DIV>
<DIV>&gt;&nbsp;Thank&nbsp;you&nbsp;for&nbsp;your&nbsp;reply!</DIV>
<DIV>&gt;&nbsp;When&nbsp;I&nbsp;delete&nbsp;"(::5,::10)",&nbsp;the&nbsp;numbers&nbsp;of&nbsp;lat&nbsp;and&nbsp;lon&nbsp;are&nbsp;right&nbsp;but</DIV>
<DIV>&gt;&nbsp;still&nbsp;have&nbsp;wrong&nbsp;names&nbsp;like&nbsp;this&nbsp;and&nbsp;cann't&nbsp;read&nbsp;by&nbsp;Panoply&nbsp;:</DIV>
<DIV>&gt;&nbsp;I&nbsp;never&nbsp;changed&nbsp;the&nbsp;names&nbsp;for&nbsp;lat&nbsp;and&nbsp;lon.&nbsp;I&nbsp;really&nbsp;don't&nbsp;know&nbsp;what&nbsp;had</DIV>
<DIV>&gt;&nbsp;happened&nbsp;to&nbsp;this.</DIV>
<DIV>&gt;&nbsp;Thank&nbsp;you&nbsp;in&nbsp;advance&nbsp;for&nbsp;your&nbsp;time&nbsp;if&nbsp;you&nbsp;can&nbsp;take&nbsp;a&nbsp;look&nbsp;at&nbsp;this.</DIV>
<DIV>&gt;&nbsp;Lifen</DIV>
<DIV>&gt;&nbsp;2013-02-13</DIV>
<DIV>&gt;&nbsp;------------------------------------------------------------------------</DIV>
<DIV>&gt;&nbsp;Jiang,&nbsp;Lifen</DIV>
<DIV>&gt;&nbsp;------------------------------------------------------------------------</DIV>
<DIV>&gt;&nbsp;*发件人:*&nbsp;Dennis&nbsp;Shea</DIV>
<DIV>&gt;&nbsp;*发送时间:*&nbsp;2013-02-12&nbsp;&nbsp;22:03:33</DIV>
<DIV>&gt;&nbsp;*收件人:*&nbsp;Jiang,&nbsp;Lifen</DIV>
<DIV>&gt;&nbsp;*抄送:*&nbsp;ncl-talk@ucar.edu</DIV>
<DIV>&gt;&nbsp;*主题:*&nbsp;Re:&nbsp;[ncl-talk]&nbsp;Data&nbsp;processing&nbsp;problem</DIV>
<DIV>&gt;&nbsp;The&nbsp;data&nbsp;on&nbsp;the&nbsp;*file*&nbsp;may&nbsp;be&nbsp;1676&nbsp;x&nbsp;4320</DIV>
<DIV>&gt;&nbsp;BUT&nbsp;you&nbsp;sub-sampled&nbsp;the&nbsp;data&nbsp;(decimated)</DIV>
<DIV>&gt;&nbsp;t&nbsp;&nbsp;=&nbsp;short2flt(in-&gt;med_c0(::5,::10))</DIV>
<DIV>&gt;&nbsp;decimates&nbsp;the&nbsp;lat&nbsp;dimension&nbsp;to&nbsp;1/5&nbsp;the&nbsp;original&nbsp;size&nbsp;(1676/5)</DIV>
<DIV>&gt;&nbsp;and</DIV>
<DIV>&gt;&nbsp;decimates&nbsp;the&nbsp;lon&nbsp;dimension&nbsp;to&nbsp;1/10&nbsp;the&nbsp;original&nbsp;size&nbsp;(4320/10)</DIV>
<DIV>&gt;&nbsp;-----</DIV>
<DIV>&gt;&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;retain&nbsp;the&nbsp;original&nbsp;dimensions</DIV>
<DIV>&gt;&nbsp;t&nbsp;&nbsp;=&nbsp;short2flt(in-&gt;med_c0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;&nbsp;read&nbsp;all&nbsp;the&nbsp;data</DIV>
<DIV>&gt;&nbsp;Good&nbsp;Luck</DIV>
<DIV>&gt;&nbsp;On&nbsp;2/12/13&nbsp;8:51&nbsp;PM,&nbsp;Jiang,&nbsp;Lifen&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;Hello,</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;I&nbsp;have&nbsp;a&nbsp;data&nbsp;set&nbsp;with&nbsp;two&nbsp;dimensions:&nbsp;lat=1676&nbsp;and&nbsp;lon=4320;&nbsp;Variable&nbsp;type&nbsp;is&nbsp;short;&nbsp;Missing&nbsp;data&nbsp;are&nbsp;-32768&nbsp;but&nbsp;many&nbsp;values&nbsp;of&nbsp;-9999&nbsp;and&nbsp;-9998&nbsp;should&nbsp;also&nbsp;be&nbsp;treated&nbsp;as&nbsp;missing&nbsp;values.</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;I&nbsp;want&nbsp;to&nbsp;divide&nbsp;all&nbsp;values&nbsp;by&nbsp;10&nbsp;but&nbsp;the&nbsp;returned&nbsp;result&nbsp;has&nbsp;two&nbsp;dimensions:&nbsp;nc10=336&nbsp;and&nbsp;nc11=432&nbsp;instead&nbsp;of&nbsp;lat=1676&nbsp;and&nbsp;lon=4320.&nbsp;And&nbsp;I&nbsp;can’t&nbsp;plot&nbsp;it&nbsp;at&nbsp;all.</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;I&nbsp;greatly&nbsp;appreciate&nbsp;if&nbsp;anyone&nbsp;can&nbsp;help&nbsp;check&nbsp;what’s&nbsp;wrong&nbsp;with&nbsp;my&nbsp;scripts&nbsp;as&nbsp;bellow.</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;Regards,</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;Lifen</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;**************************************************************************</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;load&nbsp;"$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in&nbsp;=&nbsp;addfile("med_c0.nc",&nbsp;&nbsp;"r")</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t&nbsp;&nbsp;=&nbsp;short2flt(in-&gt;med_c0(::5,::10))&nbsp;&nbsp;;&nbsp;convert&nbsp;to&nbsp;float</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t@_FillValue&nbsp;&nbsp;=&nbsp;-32768</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t@missing_value&nbsp;=&nbsp;t@_FillValue</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t&nbsp;=&nbsp;where(t&nbsp;.lt.&nbsp;-9997,&nbsp;t@_FillValue,&nbsp;t)</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;y&nbsp;&nbsp;=&nbsp;t/10</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printVarSummary(y)</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;system("/bin/rm&nbsp;-f&nbsp;med_c0_kgm-2.nc")</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;addfile("med_c0_kgm-2.nc",&nbsp;"c")&nbsp;&nbsp;&nbsp;;&nbsp;new&nbsp;netCDF&nbsp;file</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fout@title&nbsp;&nbsp;&nbsp;=&nbsp;"kg/m2"</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fout-&gt;y&nbsp;&nbsp;&nbsp;=&nbsp;y</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;_______________________________________________</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;ncl-talk&nbsp;mailing&nbsp;list</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;List&nbsp;instructions,&nbsp;subscriber&nbsp;options,&nbsp;unsubscribe:</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;&nbsp;http://mailman.ucar.edu/mailman/listinfo/ncl-talk</DIV>
<DIV>&gt;&nbsp;&nbsp;&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;_______________________________________________</DIV>
<DIV>&gt;&nbsp;ncl-install&nbsp;mailing&nbsp;list</DIV>
<DIV>&gt;&nbsp;List&nbsp;instructions,&nbsp;subscriber&nbsp;options,&nbsp;unsubscribe:</DIV>
<DIV>&gt;&nbsp;http://mailman.ucar.edu/mailman/listinfo/ncl-install</DIV>
<DIV>&gt;</DIV>
<DIV></DIV></FONT></DIV></BODY></HTML>