<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV id=yiv614286142>
<TABLE id=yiv614286142bodyDrftID class=yiv614286142 border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD style="FONT-FAMILY: arial; FONT-SIZE: 10pt" id=yiv614286142drftMsgContent>
<DIV>Hi John,</DIV>
<DIV> </DIV>
<DIV> Thank you.</DIV>
<DIV> </DIV>
<DIV> No, it has nothing to do with the changing of the time definition. In the first case, I changed the time definition from "set t 1 40" to "set t 0.5 40.5" in order to accommodate a proper bar chart plotting (see sd.gmf). In the second case, I merely opened the .ctl file in the GrADS display screen, followed by "set t 1 40" and "d sdv". As you can see in sd1.gmf, there is a time shift of one year. In other words, sdv of 1974 was labelled as that of 1975. Can it be caused by a possible bug in the software for an "fwrite" data ? Strangely, when I used the original slp.mean.mon.nc from the NCEP/NCAR reanalysis dataset to do a similar time series plot, the time labelling was perfect ! I am puzzled.</DIV>
<DIV> </DIV>
<DIV> Regards.</DIV>
<DIV> </DIV>
<DIV>Ooi</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR><BR>--- On <B>Fri, 8/4/11, Pou-Chang John Chen <I><wishingwork@yahoo.com.tw></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Pou-Chang John Chen <wishingwork@yahoo.com.tw><BR>Subject: Re: [gradsusr] txt to dat/bin file<BR>To: "See Hai Ooi" <axl419@yahoo.com><BR>Date: Friday, 8 April, 2011, 11:57 AM<BR><BR>
<DIV id=yiv614286142>
<STYLE type=text/css><!--#yiv614286142 DIV {margin:0px;}--></STYLE>
<DIV style="FONT-FAMILY: times, serif; FONT-SIZE: 12pt">
<DIV></DIV>
<DIV>I guess as you modify the start time definition (tdef) in your ctl file, it will give you what you like label. </DIV>
<DIV>If I were you, I would change the 'nov1971' to 'jan1971'. Just remember you have modified the time definition.</DIV>
<DIV>That is GrADS likes to round off the dimension into proper grid <BR>I hope this helps you.</DIV>
<DIV><BR></DIV>
<DIV>John</DIV>
<DIV> </DIV>
<HR>
<A href="http://www.facebook.com/pages/GrADS-Tutorial/195072930513663" rel=nofollow target=_blank>GrADS Tutorial on Facebook</A>
<DIV><SPAN><A href="http://www.wishingwork.com/grads/" rel=nofollow target=_blank>http://www.wishingwork.com/grads/</A></SPAN></DIV>
<DIV><BR></DIV>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> See Hai Ooi <axl419@yahoo.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Charles Seman <Charles.Seman@noaa.gov><BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> gradsusr@gradsusr.org; fadzilmnor84@gmail.com; wishingwork@yahoo.com.tw<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Fri, April 8, 2011 8:35:28 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [gradsusr] txt to dat/bin file<BR></FONT><BR>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Dear Mr Charles Seman,</DIV>
<DIV> </DIV>
<DIV> Thank you.</DIV>
<DIV> </DIV>
<DIV> gmf is GrADS metafile and the graphic can be viewed through gv32. To facilitate your assistance in resolving my problem, I am pleased to paste the two graphic outputs in Window Words document as attached for your reference. In addition, I think you need to use the window version of GrADS to examine the dataset I generated using fwrite. As a matter of confirmation/comparison, you may wish to use your non-Window version of GrADS to generate the dataset (i.e. sd.dat) to find out whether you do encounter the same problem or not.</DIV>
<DIV> </DIV>
<DIV> Best regards.</DIV>
<DIV> </DIV>
<DIV>Ooi</DIV>
<DIV><BR><BR>--- On <B>Fri, 8/4/11, Charles Seman <I><Charles.Seman@noaa.gov></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Charles Seman <Charles.Seman@noaa.gov><BR>Subject: Re: [gradsusr] txt to dat/bin file<BR>To: "See Hai Ooi" <axl419@yahoo.com><BR>Cc: "GrADS Users Forum" <gradsusr@gradsusr.org>, fadzilmnor84@gmail.com, wishingwork@yahoo.com.tw<BR>Date: Friday, 8 April, 2011, 1:22 AM<BR><BR>
<DIV class=yiv614286142plainMail>See Hai Ooi and Fadzil,<BR><BR>Don't think I can be of much help here. I downloaded See Hai Ooi's attached files, and could not view sd1.gmf (what type of file is this?). Also, made a local version "sd_local.ctl" but again could not open the binary data file sd.dat in GrADS. Don't know if data written on a Windows computer can be read on a non-windows computer?<BR><BR>Chuck</DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE></DIV></DIV>
<DIV></DIV></DIV></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE></DIV></td></tr></table>