[Wrf-users] Topo and land use ASCII - netCDF transformation - Make file

Mikhail Titov TitovM at ap.aurecongroup.com
Tue Jun 7 16:22:25 MDT 2011


It looks like I forgot to attach the file - sorry.

Mikhail

From: wrf-users-bounces at ucar.edu [mailto:wrf-users-bounces at ucar.edu] On Behalf Of Mikhail Titov
Sent: Wednesday, 8 June 2011 10:18 a.m.
To: Ehsan Beigi
Cc: wrf-users at ucar.edu
Subject: Re: [Wrf-users] Topo and land use ASCII - netCDF transformation - Make file

Hi Ehsan,

Sorry I didn't send you and other users who were interested in local terrestrial files transformation 'Makefile'
to compile 'rd_wr_formatted.f90". Please don't remove # in "write_geogrid.c" and  "read_geogrid.c".
Edit  and use 'Makefile' to compile the program. Just correct FC, CC and flags in 'Makefie'.

I use pgf90 and you as I can see use 'ifort'. If you want to swap real on integer input you easily can do it editting
'Makefile' and use integer land-use categories as input.

Good luck,
Mikhail

NB I don't have any other software to transform ASCII input in binary files.
________________________________________________________________________________

Dr. Mikhail Titov | Senior Prof. Officer, Energy | Aurecon
Ph: +64 3 366 08 21 ext.9231 DDI +64 367 32 31 | Fax: +64 3 379 6955 | Mob: +64 21 106 5563
Email: TitovM at ap.aurecongroup.com<mailto:TitovM at ap.aurecongroup.com>
Unit 1, 150 Cavendish Road | Christchurch 8051 | New Zealand
PO Box 1061
http://www.aurecongroup.com<http://www.aurecongroup.com/>
http://www.aurecongroup.com/apac/groupentity/
_________________________________________________________________________________

Please consider your environment before printing this e-mail.



From: Ehsan Beigi [mailto:ebeigi3 at tigers.lsu.edu]
Sent: Tuesday, 7 June 2011 8:35 a.m.
To: Mikhail Titov
Subject: Re: Topo and land use ASCII - netCDF transformation

thanks for your previous help. i remove the # in write_geogrid.c and  read_geogrid.cfrom at the start of these lines to make it compatible with compilers by looking at configure.wps
ifdef _UNDERSCORE
define read_geogrid read_geogrid_
endif

and then i use this command to compile the rd_wr_formatted.f90 code, is it correct :

CC=icc FC=ifort ifort rd_wr_formatted.f90 -L/home/ehsan/Documents/Netcdf/4.1/lib -lnetcdf -lm  \-I/home/ehsan/Documents/Netcdf/4.1/include -free  -o rd_wr_formatted.f90

after type it  in command line , it gives me :

rd_wr_formatted.f90(25): error #6423: This name has already been used as an external function name.   [IARGC]
   if (iargc /= 1) then
-------^
rd_wr_formatted.f90(25): error #8497: Illegal use of a procedure name in an expression, possibly a function call missing parenthesis.   [IARGC]
   if (iargc /= 1) then
-------^
compilation aborted for rd_wr_formatted.f90 (code 1)


CC=icc FC=ifort ifort rd_wr_formatted.f90 -L/home/ehsan/Documents/Netcdf/4.1/lib -lnetcdf -lm  \-I/home/ehsan/Documents/Netcdf/4.1/include -free  -o rd_wr_formatted.f90
rd_wr_formatted.f90(25): error #6423: This name has already been used as an external function name.   [IARGC]
   if (iargc /= 1) then
-------^
rd_wr_formatted.f90(25): error #8497: Illegal use of a procedure name in an expression, possibly a function call missing parenthesis.   [IARGC]
   if (iargc /= 1) then
-------^
compilation aborted for rd_wr_formatted.f90 (code 1)



What should i do ?

Best Regards,

Ehsan Beigi

Disclaimer - http://www.aurecongroup.com/apac/disclaimer/

Disclaimer - http://www.aurecongroup.com/apac/disclaimer/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20110608/abe70103/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 521 bytes
Desc: Makefile
Url : http://mailman.ucar.edu/pipermail/wrf-users/attachments/20110608/abe70103/attachment-0001.obj 


More information about the Wrf-users mailing list