<div dir="ltr"><div class="gmail_default" style="font-size:small">Soma,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Check out the time_axis_labels function. You can see some examples here:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/time_labels.shtml">http://www.ncl.ucar.edu/Applications/time_labels.shtml</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">You can also use the cd_calendar function to do your own conversion. Here are some examples:</div><div class="gmail_default"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/time.shtml#ex2">http://www.ncl.ucar.edu/Applications/time.shtml#ex2</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 27, 2018 at 11:43 AM, Soma Roy <span dir="ltr"><<a href="mailto:somaroy892@gmail.com" target="_blank">somaroy892@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am trying to plot Y axis as time (date) but it is coming in gregorian calendar format.</div><div><br></div><div>PrintVarSummary of my input data is as follows;</div><div><br></div><div><div>Variable: temp</div><div>Type: short</div><div>Total Size: 6494418 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> 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: ts1</div><div>Type: short</div><div>Total Size: 1330182 bytes</div><div> 665091 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [time | 51] x [latitude | 161] x [longitude | 81]</div><div>Coordinates:</div><div> time: [969336..969636]</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: 2660364 bytes</div><div> 665091 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [time | 51] x [latitude | 161] x [longitude | 81]</div><div>Coordinates:</div><div> time: [969336..969636]</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> <b><font color="#ff0000">calendar : gregorian</font></b></div></div><div><b><font color="#ff0000"><br></font></b></div><div><font color="#000000">Output figure is attached below.</font></div><div><font color="#000000"><br></font></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Kindly inform me how to fix it.</span>
</div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div>Thanks,</div><div>Soma</div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>