<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" 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 size=2 face=Verdana>Hi Dennis,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you for your reply!</DIV>
<DIV>&nbsp;</DIV>
<DIV>When I delete "(::5,::10)", the numbers of lat and lon are&nbsp;right but 
still have wrong&nbsp;names like this and cann't&nbsp;read by Panoply :</DIV>
<DIV><FONT color=#000080></FONT>&nbsp;</DIV>
<DIV><IMG src="cid:__0@Foxmail.net" width=773 height=442></DIV>
<DIV><FONT color=#000080></FONT>&nbsp;</DIV>
<DIV><FONT color=#000080></FONT>&nbsp;</DIV>
<DIV>I never changed the names for lat and lon. I really don't know what had 
happened to this.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you in advance for your time if you can take a look at this.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Lifen&nbsp;</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-12&nbsp; 22:03:33 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> Jiang, Lifen </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> ncl-talk@ucar.edu 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: [ncl-talk] Data 
processing problem </FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>The&nbsp;data&nbsp;on&nbsp;the&nbsp;*file*&nbsp;may&nbsp;be&nbsp;1676&nbsp;x&nbsp;4320</DIV>
<DIV></DIV>
<DIV>BUT&nbsp;you&nbsp;sub-sampled&nbsp;the&nbsp;data&nbsp;(decimated)</DIV>
<DIV></DIV>
<DIV>t&nbsp;&nbsp;=&nbsp;short2flt(in-&gt;med_c0(::5,::10))</DIV>
<DIV></DIV>
<DIV>decimates&nbsp;the&nbsp;lat&nbsp;dimension&nbsp;to&nbsp;1/5&nbsp;the&nbsp;original&nbsp;size&nbsp;(1676/5)</DIV>
<DIV>and</DIV>
<DIV>decimates&nbsp;the&nbsp;lon&nbsp;dimension&nbsp;to&nbsp;1/10&nbsp;the&nbsp;original&nbsp;size&nbsp;(4320/10)</DIV>
<DIV>-----</DIV>
<DIV></DIV>
<DIV>If&nbsp;you&nbsp;want&nbsp;to&nbsp;retain&nbsp;the&nbsp;original&nbsp;dimensions</DIV>
<DIV></DIV>
<DIV>t&nbsp;&nbsp;=&nbsp;short2flt(in-&gt;med_c0)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;&nbsp;read&nbsp;all&nbsp;the&nbsp;data</DIV>
<DIV></DIV>
<DIV>Good&nbsp;Luck</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>On&nbsp;2/12/13&nbsp;8:51&nbsp;PM,&nbsp;Jiang,&nbsp;Lifen&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;Hello,</DIV>
<DIV>&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;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;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;Regards,</DIV>
<DIV>&gt;&nbsp;Lifen</DIV>
<DIV>&gt;&nbsp;**************************************************************************</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;load&nbsp;"$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in&nbsp;=&nbsp;addfile("med_c0.nc",&nbsp;&nbsp;"r")</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&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;&nbsp;&nbsp;&nbsp;&nbsp;t@_FillValue&nbsp;&nbsp;=&nbsp;-32768</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t@missing_value&nbsp;=&nbsp;t@_FillValue</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;t&nbsp;=&nbsp;where(t&nbsp;.lt.&nbsp;-9997,&nbsp;t@_FillValue,&nbsp;t)</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;y&nbsp;&nbsp;=&nbsp;t/10</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printVarSummary(y)</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;system("/bin/rm&nbsp;-f&nbsp;med_c0_kgm-2.nc")</DIV>
<DIV>&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;&nbsp;&nbsp;&nbsp;&nbsp;fout@title&nbsp;&nbsp;&nbsp;=&nbsp;"kg/m2"</DIV>
<DIV>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fout-&gt;y&nbsp;&nbsp;&nbsp;=&nbsp;y</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;</DIV>
<DIV>&gt;&nbsp;_______________________________________________</DIV>
<DIV>&gt;&nbsp;ncl-talk&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-talk</DIV>
<DIV>&gt;</DIV></FONT></DIV></BODY></HTML>