[ncl-talk] Question regarding using WRAPIT

Ling Huang hlbutterflyut at gmail.com
Mon Oct 20 13:19:36 MDT 2014


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/0d46dd73/attachment.html 


More information about the ncl-talk mailing list