<div dir="ltr"><div class="gmail_default" style="font-size:small">Sagar,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you want to remove this restriction, you need to do two things. Assuming $NCARG represents the top level directory of the NCL source code:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default">1) Edit the file $NCARG/ni/src/lib/nfpfort/wrf_write_wps.f and change this line:</div><div class="gmail_default">







<p class="gmail-p1"><span class="gmail-s1">      </span><span class="gmail-s2">character</span><span class="gmail-s1">(</span><span class="gmail-s3">len</span><span class="gmail-s1">=9)  FIELD</span></p><p class="gmail-p1">to whatever length you want.</p><p class="gmail-p1">2) Edit the file $NCARG/ni/src/lib/nfp/wrfwpsW.c and change this line:</p><p class="gmail-p1">  int FIELD_LEN=9;</p><div>to match the same length that you used in the Fortran file.</div><div><br></div><div>You then need to rebuild NCL, which is not trivial, unless you&#39;ve already got a build of NCL working.  If you already have a build that you haven&#39;t done a &quot;make clean&quot; on, then you can update your NCL simply by typing:</div><div><br></div><div>cd $NCARG/ni/src</div><div>make all install</div><div><br></div><div>I don&#39;t know if making a change like this to the WPS intermediate file is going to be a problem. Again, wrfhelp is CC&#39;ed here in case they have anything to add.</div><div><br></div><div>--Mary</div><div><br></div></div>







</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 2, 2017 at 10:57 PM, Sagar Kashid <span dir="ltr">&lt;<a href="mailto:sag123kas@gmail.com" target="_blank">sag123kas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Mary,<br><br></div>Thank you so much for your reply. <br>I do agree with your judgement that <i><b>&quot;underlying Fortran routine that this function is based on also has the same restriction&quot;</b></i>, but one of my colleague asked me to do following source code modification to get rid off this problem as follows,<br><br><i><b>path: in ncl source code directory   &quot;  /ni/src/lib/nfp/wrfwpsW.c   &quot;<br><br>line number 34<br><br> NrmQuark *field;<br>  int FIELD_LEN=9;  ****************<u>this is the line where he asked me to change number 9 to 40 or 45?</u><br>  char c_field[FIELD_LEN+1]; </b></i><br><br></div>Do you also think that this would help me to solve the issue? As it requires to install NCL from the source code<br><br></div>Kindly suggest     </div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Mon, Jan 2, 2017 at 7:32 PM, Mary Haley <span dir="ltr">&lt;<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Sagar,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The error message is telling you exactly what the problem is.  The second argument (&quot;field&quot;) to wrf_write_wps_int must be 9 or fewer characters.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I&#39;m not sure why this restriction is in place, but I do know that the underlying Fortran routine that this function is based on also has the same restriction.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can learn more about this format from this link:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Basics/IM_files/IM_wps.htm" target="_blank">http://www2.mmm.ucar.edu/wrf/O<wbr>nLineTutorial/Basics/IM_files/<wbr>IM_wps.htm</a><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I&#39;ve CC&#39;ed wrfhelp in case they want to add more to my answer.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-3812775886876738347h5">On Wed, Dec 28, 2016 at 12:53 AM, Sagar Kashid <span dir="ltr">&lt;<a href="mailto:sag123kas@gmail.com" target="_blank">sag123kas@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-3812775886876738347h5"><div dir="ltr">Hi,<br><div><div><div><div><br>When I am running ncl (version 6.3.0), pre-compiled with intel compilers I got the following error.<br><br>fatal:wrf_wps_write_int: the field string is greater than 9 characters<br><br></div><div>Kindly provide me solution for above error<br clear="all"></div><div><br><br><div class="m_-3812775886876738347m_-3068343192555937955m_7229486077354577645gmail_signature">Regards,<br><br>Sagar Kashid<br></div><div class="m_-3812775886876738347m_-3068343192555937955m_7229486077354577645gmail_signature">Pune, India <br></div>
</div></div></div></div></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-install mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-install" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-install</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div class="m_-3812775886876738347gmail_signature" data-smartmail="gmail_signature">Regards,<br><br>Sagar Kashid<br><a href="http://bateankahisi.blogspot.com/" target="_blank">http://bateankahisi.blogspot.<wbr>com/</a> <br><br><span style="color:rgb(0,0,0)"><span style="font-style:italic">Know yourself and you will win all battles.</span></span></div>
</font></span></div>
</blockquote></div><br></div>