CALWRF problem

Miscellaneous questions you have about anything related to graphically displaying WRF output

CALWRF problem

Postby kozokg » Fri May 27, 2011 2:49 pm

Hello,
I want to use output WRF model in the CALPUFF model.
Does anyone have experience working on CALWRF in Linux environment and not in cyguin?
I can not run the software on Linux for some reason, I'd love to get help from someone ....
Thanks,
Gilad
kozokg
 
Posts: 13
Joined: Mon Jul 12, 2010 4:50 am

Re: CALWRF problem

Postby maryammirzajani » Thu Jul 07, 2011 8:02 am

I have the same problem running CALWRF on Linux, if you resolve this please let me know as well.
Maryam Mirzajani
maryammirzajani
 
Posts: 4
Joined: Wed May 04, 2011 9:20 am

Re: CALWRF problem

Postby gcapote » Wed Jul 13, 2011 7:30 am

hi , i see this is a very popular question so i'm going to help you both. i had the same issue a while ago , and a friend from the wrf mail list told me a few things a needed to compile calwrf on my fedora 12.
first > i asume you have downloaded the CALWRF_v1.4.zip in the EPA page . if not , do so.
2nd > open calwrf.f and comment the line 905 ( include 'coordlib.for' )
3rd > create a makefile . write this in it :
______________________________________________________
# makefile for calwrf.f

PROGRAM = calwrf

FC = pgf90
FFLAGS = -fast -g -Mlfs

NETCDF = /usr/local/netcdf
LIBS = -lm -L${NETCDF}/lib -lnetcdf
INCL = -I${NETCDF}/include

OBJECTS = $(PROGRAM).o coordlib.o

$(PROGRAM): $(OBJECTS)
$(FC) $(FFLAGS) $(OBJECTS) $(LIBS) -o $@

coordlib.o : coordlib.for
$(FC) -c $(FFLAGS) $< -o $@

$(PROGRAM).o: $(PROGRAM).f
$(FC) $(FFLAGS) $(INCL) $(PROGRAM).f -c -o $(PROGRAM).o

clean:
rm *.o $(PROGRAM)
___________________________________________________________

4th > adjust netcdf and fortran to your own specifications.
5th > very important , put NIMA.CRD and BLOCKDAT.CRD file names in minuscule letters.
6th > make , and voila !!!!!!

for me , calwrf has proven to be extremely useful , enjoy it .
any doubts , feel free to ask.
Gil. :mrgreen: :idea: :idea:
gcapote
 
Posts: 3
Joined: Wed Apr 14, 2010 1:22 pm

Re: CALWRF problem

Postby maryammirzajani » Thu Jul 21, 2011 11:37 am

Here is the steps that helped me resolve this:
First, edit the compile.sh to use gfortran instead of pgf90
Second, my netcdf was not compiled with gfortran, so I recomipled that
Third, there sre two files NIMA.CRD and BLOCK.DAT existed in upper case that need to be changed to lower case. Compiler cannot recognize and find them.
Good Luck,
Maryam
maryammirzajani
 
Posts: 4
Joined: Wed May 04, 2011 9:20 am

Re: CALWRF problem

Postby xinhe » Sat Oct 29, 2011 2:59 am

Hello! gcapote, your reply is very usefull to me ,but I can't find the wed page where I can download the "CALWRF_v1.4.zip" in the EPA page, can you send me the web page? Thank you very much!!!
xinhe
 
Posts: 11
Joined: Sat Jul 16, 2011 3:37 am

Re: CALWRF problem

Postby SMinBright » Thu May 03, 2012 10:19 pm

xinhe wrote:Hello! gcapote, your reply is very usefull to me ,but I can't find the wed page where I can download the "CALWRF_v1.4.zip" in the EPA page, can you send me the web page? Thank you very much!!!

Hello! You can download the "CALWRF_v1.4.zip" from this web page http://www.src.com/calpuff/calpuff1.htm, select the download button!
SMinBright
 
Posts: 5
Joined: Thu May 03, 2012 10:15 pm

Re: CALWRF problem

Postby SMinBright » Fri May 04, 2012 9:21 am

Hello! gcapote, you said the calwrf is very useful, so I want to learn how to use it. I have already used your method to generate the file "calwrf", but I don' t know how to translate a wrfout file. I have tried to modify calwrf.inp, and what's next?
SMinBright
 
Posts: 5
Joined: Thu May 03, 2012 10:15 pm

Re: CALWRF problem

Postby wintermute » Fri May 03, 2013 4:41 am

Hi SMinBright,

since more or less one year passed from your question, probably this answer isn't useful anymore, but anyway:

once you have compiled the calwrf.f source code file, you should end up with an executable (named calwrf). The .inp file is what this executable file will read to access the WRF netCDF files and transform them (you can set all the "options" in the .inp file).

Once you have the .inp file set, you just need to run the calwrf executable (in a bash terminal, cd to the directory of the executable and then simply write ./calwrf) and it should generate your output.

Cheers!
wintermute
 
Posts: 30
Joined: Wed Jan 30, 2013 11:48 am

Re: CALWRF problem

Postby waybov_wrf » Mon Jun 03, 2013 2:19 am

Hi wintermate
I need help

Now i have installed and run succesfully WRF and recived output 110gb for 3 week data
Now i am trying to install calwrfv1.4 in to ubuntu 13.04 64 bit
I have unzipped calwrf in to home folder and then created make file
like following manner ...
and also edited namelist as per requirement... please c below to check my namelist input and makefile
will u please send me .inp and compile.sh file or any modification that require for CALWRF1.4
m stucj here from one month
I am getting following error
please help me to solve this issue..
<<<
vbm@vbm:~/calwrf$ ./calwrf
bash: ./calwrf: No such file or directory
vbm@vbm:~/calwrf$ ./calwrf.exe
bash: ./calwrf.exe: Permission denied
>>>



<<<
# makefile for calwrf.f

PROGRAM = calwrf

FC = gfortran
FFLAGS = -fast -g -Mlfs

NETCDF = /usr/local/netcdf
LIBS = -lm -L${NETCDF}/lib -lnetcdf
INCL = -I${NETCDF}/include

OBJECTS = $(PROGRAM).o coordlib.o

$(PROGRAM): $(OBJECTS)
$(FC) $(FFLAGS) $(OBJECTS) $(LIBS) -o $@

coordlib.o : coordlib.for
$(FC) -c $(FFLAGS) $< -o $@

$(PROGRAM).o: $(PROGRAM).f
$(FC) $(FFLAGS) $(INCL) $(PROGRAM).f -c -o $(PROGRAM).o

clean:
rm *.o $(PROGRAM)
>>>>>

for name list
<<<
Create 3D.DAT file for WRF output
calwrf.lst ! Log file name
calwrf_em.m3d ! Output file name
-1,-1,-1,-1,-1,-1 ! Beg/End I/J/K ("-" for all)
-1 ! Start date (UTC yyyymmddhh, "-" for all)
-1 ! End date (UTC yyyymmddhh), "-" for all
1 ! Number of WRF output files ( 1 only now)
/home/vbm/wrf_runs/22052013/wrfout_d01_2011-08-15_00:00:00 ! File name of wrf output (Loop over files)



10,20,10,20,1,27 ! Beg/End I/J/K ("-" for all)
2011081500 ! Start date (UTC yyyymmddhh, "-" for all)
2011090400 ! End date (UTC yyyymmddhh), "-" for all
waybov_wrf
 
Posts: 7
Joined: Sat Apr 06, 2013 10:22 pm

Re: CALWRF problem

Postby waybov_wrf » Wed Jun 12, 2013 9:48 am

I solved my problem some one help me to resolve this issue..
so to make it easy i have written every thing in my blog.. go there .. help your self.. :P :P :P :P

http://dispersionmodel.blogspot.com.au/ ... 04-64.html
waybov_wrf
 
Posts: 7
Joined: Sat Apr 06, 2013 10:22 pm

Next

Return to Miscellaneous

Who is online

Users browsing this forum: No registered users and 4 guests

cron