[ncl-talk] Question regarding using WRAPIT

Ling Huang hlbutterflyut at gmail.com
Mon Oct 20 14:21:48 MDT 2014


Dear NCL talk,

I have figured out my question.

Thanks

Ling

On Mon, Oct 20, 2014 at 2:19 PM, Ling Huang <hlbutterflyut at gmail.com> wrote:

> Dear NCL talk,
>
> This is Ling. I want to call Fortran subroutines (f77) from a NCL script.
> But I have a question regarding using the command "WRAPIT".
>
> 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:
>
> ifort wrt_landuse.f -convert big_endian -I/opt/apps/intel13/netcdf/
> 4.2.1.1/include -L/opt/apps/intel13/netcdf/4.2.1.1/lib -lnetcdff
>
> 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:
>
> WRAPIT wrt_landuse.f -convert big_endian -I/opt/apps/intel13/netcdf/
> 4.2.1.1/include -L/opt/apps/intel13/netcdf/4.2.1.1/lib -lnetcdff
>
> So how can use the "WRAPIT" under this condition?
>
> Thank you very much!
>
> Ling
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141020/ae6286e8/attachment.html 


More information about the ncl-talk mailing list