<html><head></head><body><div class="ydp25a97064yahoo-style-wrap" style=""><div style="font-family: bookman old style, new york, times, serif; font-size: 16px;"></div>
<div style="font-family: bookman old style, new york, times, serif; font-size: 16px;">Dear Rick,</div><div style="font-family: bookman old style, new york, times, serif; font-size: 16px;">Thank you so much for your helpful reply. I've uncommented the following lines, however it didn't change the result:</div><div style="font-family: bookman old style, new york, times, serif; font-size: 16px;"><br></div><div style=""><div style=""><font size="2" style="" face="courier new, courier, monaco, monospace, sans-serif"> tp&latitude@units="degrees_north"</font></div><div style=""><font size="2" style="" face="courier new, courier, monaco, monospace, sans-serif"> tp&longitude@units="degrees_east"</font></div><br></div><div style="font-family: bookman old style, new york, times, serif; font-size: 16px;">I've also attached .tar.gz file of data, if it could help.</div><div style="font-family: bookman old style, new york, times, serif; font-size: 16px;">Sincerely</div><div style="font-family: bookman old style, new york, times, serif; font-size: 16px;">Ehsan</div>
</div><div id="yahoo_quoted_1584925803" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Tuesday, February 26, 2019, 1:40:51 AM GMT+3:30, Rick Brownrigg <brownrig@ucar.edu> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv4480877803"><div><div dir="ltr"><div>Hi,</div><div><br clear="none"></div><div>I don't have a means to open the .rar file you sent, but it sounds like its the latitude and longitude variables in the file are what do not have the units attribute. From your printFileSummary(tp):</div><div><br clear="none"></div><div><span></span><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Variable: tp</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Type: float</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Total Size: 3755712 bytes</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> 938928 values</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Number of Dimensions: 3</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Dimensions and sizes: [time | 1262] x [latitude | 24] x [longitude | 31]</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Coordinates:</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> time: [1008072..1038336]</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> latitude: [41.25..24]</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> longitude: [42.75..65.25]</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"><br clear="none"></font></div><div><font size="2">we can see there's already coordinates attached to tp. Perhaps try verifying that longitude and latitude in your file are lacking units, and if so, add them to those variables -- I don't think you want to do what you found on the link you cited.</font></div><div><font size="2"><br clear="none"></font></div><div><font size="2">Hope that helps...</font></div><div><font size="2">Rick</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"><span style="font-family:arial, helvetica, sans-serif;"></span><br clear="none"></font></div></div></div><br clear="none"><div class="yiv4480877803gmail_quote"><div class="yiv4480877803yqt2269644198" id="yiv4480877803yqt34444"><div class="yiv4480877803gmail_attr" dir="ltr">On Mon, Feb 25, 2019 at 10:47 AM Ehsan Taghizadeh <<a rel="nofollow" shape="rect" ymailto="mailto:ehsantaghizadeh@yahoo.com" target="_blank" href="mailto:ehsantaghizadeh@yahoo.com">ehsantaghizadeh@yahoo.com</a>> wrote:<br clear="none"></div><blockquote class="yiv4480877803gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div><div>Dears,</div><div>I've tried to plot precipitation data from ERA-Interim with the attached script.</div><div>However after trying this I encountered the following errors:</div><div><br clear="none"></div><div><span></span><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Variable: tp</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Type: float</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Total Size: 3755712 bytes</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> 938928 values</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Number of Dimensions: 3</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Dimensions and sizes: [time | 1262] x [latitude | 24] x [longitude | 31]</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Coordinates:</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> time: [1008072..1038336]</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> latitude: [41.25..24]</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> longitude: [42.75..65.25]</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Number Of Attributes: 8</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> _FillValue : -32767</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> missing_value : -32767</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> units : m</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> long_name : Total precipitation</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> _FillValue_original : -32767</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> missing_value_original : -32767</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> time : 1008060</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif"> NCL_tag : calculate_daily_values: arith=sum</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">(0) ==================================</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">(0) check_for_y_lat_coord: Warning: Data either does not contain</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">(0) a valid latitude coordinate array or doesn't contain one at all.</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">(0) A valid latitude coordinate array should have a 'units'</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">(0) attribute equal to one of the following values:</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">(0) 'degrees_north' 'degrees-north' 'degree_north' 'degrees north' 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">(0) check_for_lon_coord: Warning: Data either does not contain</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">(0) a valid longitude coordinate array or doesn't contain one at all.</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">(0) A valid longitude coordinate array should have a 'units'</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">(0) attribute equal to one of the following values:</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">(0) 'degrees_east' 'degrees-east' 'degree_east' 'degrees east' 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE' 'deg east'</font></div><br clear="none"></div><div>I've found this link (<a rel="nofollow" shape="rect" target="_blank" href="https://www.ncl.ucar.edu/Document/Graphics/error_msg.shtml">https://www.ncl.ucar.edu/Document/Graphics/error_msg.shtml</a>), and based on it I tried something like these:</div><div><span></span><div> tp!0="time"</div><div> tp!1="lat"</div><div> tp!2="lon"</div><div> tp&lat@units="degrees_north"</div><div> tp&lon@units="degrees_east"</div><br clear="none"></div><div>But unfortunately they doesn't help!</div><div>May I ask your help to plot precipitation data from ERA-Interim. I've just to say I did a processing to original ERA-Interim data to obtain daily precipitation (It has been done before with ncl-talk help). Attached are the script and data.</div><div>Any help would be appreciated.</div><div><br clear="none"></div><div><br clear="none"></div><div>Sincerely</div><div>Ehsan</div><div class="yiv4480877803gmail-m_6388837300736130771ydp17427932yahoo-style-wrap" style="font-family:bookman old style, new york, times, serif;font-size:16px;"></div></div>_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br clear="none">
</blockquote></div></div></div></div></div>
</div>
</div></body></html>