<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#0b5394">Dear NCL talk,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#0b5394"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#0b5394">I have figured out my question. </div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#0b5394"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#0b5394">Thanks</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#0b5394"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:#0b5394">Ling</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 20, 2014 at 2:19 PM, Ling Huang <span dir="ltr"><<a href="mailto:hlbutterflyut@gmail.com" target="_blank">hlbutterflyut@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"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)">Dear NCL talk,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)">This is Ling. I want to call Fortran subroutines (f77) from a NCL script. But I have a question regarding using the command "WRAPIT".</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)">The fortran script mainly has two goals: (1) read in data from a netcdf file; (b) write the data into binary file. So I have "include netcdf.inc" in the fortran script for the netcdf part. I compiled my fortran script by:</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default"><font color="#0b5394" face="tahoma, sans-serif">ifort wrt_landuse.f -convert big_endian -I/opt/apps/intel13/netcdf/<a href="http://4.2.1.1/include" target="_blank">4.2.1.1/include</a> -L/opt/apps/intel13/netcdf/<a href="http://4.2.1.1/lib" target="_blank">4.2.1.1/lib</a> -lnetcdff</font><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)">So I need compile with "-convert big_endian" option and also supplies the netcdf library. My question is if I want to call this fortran script as subroutine from a NCL script, how should I use the "WRAPIT" command? Obviously there is no such thing like:</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)">WRAPIT wrt_landuse.f -convert big_endian -I/opt/apps/intel13/netcdf/<a href="http://4.2.1.1/include" target="_blank">4.2.1.1/include</a> -L/opt/apps/intel13/netcdf/<a href="http://4.2.1.1/lib" target="_blank">4.2.1.1/lib</a> -lnetcdff</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)">So how can use the "WRAPIT" under this condition?</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)">Thank you very much!</div><span class="HOEnZb"><font color="#888888"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small;color:rgb(11,83,148)">Ling</div></font></span></div>
</blockquote></div><br></div>