<div dir="ltr">Thanks Adam for your inputs. The problem is solved by replacing <span style="font-family:monospace">fbindirread</span> with <span style="font-family:monospace">fbinrecread</span>.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 7, 2021 at 1:10 PM Adam Phillips <<a href="mailto:asphilli@ucar.edu">asphilli@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Jayant,<div>The GrADS control file indicates that the longitudes start at 0 and have an increment of 0.9375. NCL's lonGlobeFo function will create a longitude array that is offset from the Prime Meridian. If you switch the call to lonGlobeF I think the longitude array will be set up correctly. That being said, this is a small fix to the longitudes and does not explain a 30 degree shift in your plotting script. Are you getting any error messages from either NCL or GrADS? Your GrADS ctl file indicates that it is set up to read a file with multiple levels, but your NCL script seems to indicate that there are not multiple levels in the binary file, and each record is a different time step? Make sure you are analyzing the same level and time step between the two software packages. Other than that, I do not know what to suggest. Others might have better suggestions.</div><div>Hope that helps!</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 6, 2021 at 9:00 PM Jayant via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I am reading our model simulated gridded binary file in NCL. Please take a look at the two attached precipitation plots.The one using NCL shows a shift (in longitude) in the precipitation features compared to the one plotted using GrADS. Why there appears to be a mismatch? Am I overlooking something? The ctl file and the ncl script is also attached.<br></div><div><br></div><div><br></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>