<div dir="ltr"><div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;font-family:arial;font-weight:bold;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/1Qa144nlu5gSNitlM6i5YT0F8_bZa-Wme/view?usp=drive_web" target="_blank" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0;border:none"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">spatial_leh.nc</span></a><img src="//ssl.gstatic.com/ui/v1/icons/common/x_8px.png" style="opacity: 0.55; cursor: pointer; float: right; position: relative; top: -1px; display: none;"></div>Sending you the sample file here as I am unable to put it in ftp.<br><div><br></div><div>Soma</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 28, 2018 at 10:54 PM, Kevin Hallock <span dir="ltr"><<a href="mailto:hallock@ucar.edu" target="_blank">hallock@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Soma,<div><br></div><div>It’s hard to determine exactly what the problem is without a copy of your data file to test the script myself, but I suspect there may be something odd happening with the <font face="Menlo">time_axis_labels</font> and <font face="Menlo">gsn_csm_hov</font> calls:</div><div><font face="Menlo"> time_axis_labels(ts&time,res,<wbr>restick)<br> plot = gsn_csm_hov(wks,xDay(:,:,{<wbr>78}),res) ; lat vs time.<br></font><br></div><div>In particular, I noticed that the time dimensions on the variables <font face="Menlo">ts</font> and <font face="Menlo">xDay</font> are different sizes (248 for <font face="Menlo">ts</font>, 31 for <font face="Menlo">xDay</font>). You may want to try using <font face="Menlo">xDay&time</font> in your <font face="Menlo">time_axis_labels</font> call, although you might also need to adjust the value of <font face="Menlo">restick@ttmMajorStride</font> to account for the smaller time dimension on <font face="Menlo">xDay</font>.</div><div><br></div><div>If you are still having trouble generating correct Y-axis labels after trying this, would you perhaps be able to provide us with a copy of your data file? (See uploading instructions: <a href="https://www.ncl.ucar.edu/ftp_files.shtml" target="_blank">https://www.ncl.<wbr>ucar.edu/ftp_files.shtml</a>)</div><div><br></div><div>I hope this helps,</div><div>Kevin</div><div><br></div><div><div><blockquote type="cite"><div><div class="h5"><div>On Jun 28, 2018, at 10:26 AM, Soma Roy <<a href="mailto:somaroy892@gmail.com" target="_blank">somaroy892@gmail.com</a>> wrote:</div><br class="m_-991648963885420994Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">Hello,<div><br></div><div>I am trying to calculate daily mean values from daily 4 time steps and plot a date vs latitude plot.</div><div><br></div><div>Date on Y-axis is not coming clearly. </div><div><br></div><div>PrintVarSummary of the data is as follows;</div><div><br></div><div><div>Variable: tem</div><div>Type: float</div><div>Total Size: 6416172 bytes</div><div> 1604043 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [time | 123] x [latitude | 161] x [longitude | 81]</div><div>Coordinates:</div><div> time: [969336..970068]</div><div> latitude: [ 0..40]</div><div> longitude: [65..85]</div><div>Number Of Attributes: 6</div><div> missing_value : -32767</div><div> missing_value_original : -32767</div><div> _FillValue : -32767</div><div> _FillValue_original : -32767</div><div> long_name : 2 metre temperature</div><div> units : K</div><div><br></div><div>Variable: cd_date</div><div>Type: double</div><div>Total Size: 1992 bytes</div><div> 249 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes: [249]</div><div>Coordinates:</div><div>Number Of Attributes: 2</div><div> units : days since 1990-01-01 00:00:00</div><div> calendar : gregorian</div><div><br></div><div><br></div><div>Variable: cd_date</div><div>Type: double</div><div>Total Size: 1992 bytes</div><div> 249 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes: [249]</div><div>Coordinates:</div><div>Number Of Attributes: 2</div><div> units : days since 1990-01-01 00:00:00</div><div> calendar : gregorian</div><div>(0) 2010080100</div><div>(1) 2010080106</div><div>(2) 2010080112</div><div>(3) 2010080118</div><div>(4) 2010080200</div><div>(5) 2010080206</div><div>(6) 2010080212</div><div>(7) 2010080218</div><div>..............................<wbr>..........</div><div>(120) 2010083100</div><div>(121) 2010083106</div><div>(122) 2010083112</div><div>(123) 2010083118</div><div><br></div><div>(124) 2010080103</div><div>(125) 2010080109</div><div>(126) 2010080115</div><div>(127) 2010080121</div><div>(128) 2010080203</div><div>(129) 2010080209</div><div>..............................<wbr>...........</div><div>(244) 2010083103</div><div>(245) 2010083109</div><div>(246) 2010083115</div><div>(247) 2010083121</div><div>(248) 2010090100</div><div><br></div><div>Variable: temp</div><div>Type: float</div><div>Total Size: 12988836 bytes</div><div> 3247209 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [time | 249] x [latitude | 161] x [longitude | 81]</div><div>Coordinates:</div><div> time: [969336..970080]</div><div> latitude: [ 0..40]</div><div> longitude: [65..85]</div><div>Number Of Attributes: 6</div><div> units : K</div><div> long_name : 2 metre temperature</div><div> _FillValue_original : -32767</div><div> _FillValue : -32767</div><div> missing_value_original : -32767</div><div> missing_value : -32767</div><div><br></div><div>Variable: ts1</div><div>Type: short</div><div>Total Size: 6468336 bytes</div><div> 3234168 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [time | 248] x [latitude | 161] x [longitude | 81]</div><div>Coordinates:</div><div> time: [969336..970077]</div><div> latitude: [ 0..40]</div><div> longitude: [65..85]</div><div>Number Of Attributes: 6</div><div> scale_factor : 0.0008040587614255413</div><div> add_offset : 289.9817757049943</div><div> _FillValue : -32767</div><div> missing_value : -32767</div><div> units : K</div><div> long_name : 2 metre temperature</div><div><br></div><div>Variable: ts</div><div>Type: float</div><div>Total Size: 12936672 bytes</div><div> 3234168 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [time | 248] x [latitude | 161] x [longitude | 81]</div><div>Coordinates:</div><div> time: [969336..970077]</div><div> latitude: [ 0..40]</div><div> longitude: [65..85]</div><div>Number Of Attributes: 1</div><div> _FillValue : -32767</div><div><br></div><div>Variable: tim</div><div>Type: integer</div><div>Total Size: 996 bytes</div><div> 249 values</div><div>Number of Dimensions: 1</div><div>Dimensions and sizes: [time | 249]</div><div>Coordinates:</div><div> time: [969336..970080]</div><div>Number Of Attributes: 3</div><div> units : hours since 1900-01-01 00:00:0.0</div><div> long_name : time</div><div> calendar : gregorian</div><div><br></div><div><div>Variable: xDay</div><div>Type: float</div><div>Total Size: 1617084 bytes</div><div> 404271 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [time | 31] x [latitude | 161] x [longitude | 81]</div><div>Coordinates:</div><div> time: [969336..970056]</div><div> latitude: [ 0..40]</div><div> longitude: [65..85]</div><div>Number Of Attributes: 8</div><div> _FillValue : -32767</div><div> missing_value : -32767</div><div> missing_value_original : -32767</div><div> _FillValue_original : -32767</div><div> long_name : 2 metre temperature</div><div> units : K</div><div> time : 969336</div><div> NCL_tag : calculate_daily_values: arith=avg</div></div></div><div><br></div><div>Output figure file and script are attached below.</div><div><br></div><div>Kindly inform me how to fix it.</div><div><br></div><div>Thanks,</div><div>Soma</div><div><br></div><div><br></div></div>
</div></div><span id="m_-991648963885420994cid:0DD0FB2F-85A1-4E24-8147-399CA9DBC34C@scd.ucar.edu"><time_lat.png></span><span id="m_-991648963885420994cid:EBD8D353-679D-40AA-AD3D-38421962B32A@scd.ucar.edu"><test.ncl></span>______<wbr>______________________________<wbr>___________<br>ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>