CALWRF problem

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

Re: CALWRF problem

Postby franklealt » Tue Jun 18, 2013 5:14 am

Dear all,
I have some questions about CALWRF installation:

1) I don’t have pgf90 compiler but gfortran in Ubuntu, does someone know how to change the makefile code proposed by Gil in a previous message in order that it works for gfortran?
2) CALWRF.zip comes with a .exe file, after typing “make” will this .exe file be changed?
3) Have you tried this CALWRFv1.4 with outputs from WRF v3.5? Does it work Ok with all types of netCDF files?

Thanks and best regards to all,

Francisco Leal
MSc. Student Wageningen University
franklealt
 
Posts: 1
Joined: Tue Jun 18, 2013 5:06 am

Re: CALWRF problem

Postby wintermute » Wed Aug 21, 2013 10:25 am

@franklealt:
1) waybov_wrf has already answered your first question: change FC and FFLAGS to FC = gfortran and FFLAGS = -fast -g -Mlfs. Broadly speaking a makefile is only an instruction file that says: "you should compile this and this, the libraries are in this and this path, and the compiler is this one", so basically you just need to change the values to fit your system (e.g.: the NETCDF variable indicates where the netcdf libraries are, you should adapt it so that it finds the correct path in the system you're compiling).
2) well, if I recall correctly yes: as soon as you recompile the program a new executable should be generated.
3) still haven't done that, sorry.

@waybov_wrf: what's your issue exactly? the .exe not being executable due to permission problems?
wintermute
 
Posts: 30
Joined: Wed Jan 30, 2013 11:48 am

Re: CALWRF problem

Postby waybov_wrf » Tue Sep 03, 2013 3:40 am

wintermute wrote:@franklealt:
1) waybov_wrf has already answered your first question: change FC and FFLAGS to FC = gfortran and FFLAGS = -fast -g -Mlfs. Broadly speaking a makefile is only an instruction file that says: "you should compile this and this, the libraries are in this and this path, and the compiler is this one", so basically you just need to change the values to fit your system (e.g.: the NETCDF variable indicates where the netcdf libraries are, you should adapt it so that it finds the correct path in the system you're compiling).
2) well, if I recall correctly yes: as soon as you recompile the program a new executable should be generated.
3) still haven't done that, sorry.

@waybov_wrf: what's your issue exactly? the .exe not being executable due to permission problems?


Hi guyes ,
i alredy solved my problem with CALWRF, and every thing is explained in my blog,
But currently I am facing one problem as recently announces new CALWRF_2.0.1 which can be install it on windows as well ,
it look easy to install but i have one problem here..
unable to give path in calwrf.inp file for hard drive ?
like my wrfout is in external hard drive (E:/element/vbm/wrf_run/vbm/22082013)
but I am confused how to give path I am getting error like unable to read netcdf file... :oops: :oops: :oops:
I dont know what to do ... m stuck here.. calwrf.inp is like below...
if any one have step wise installation plz give us information... that will save our time...
please give me suggestion of about this input file
======================================================================================
Create 3D.DAT file for WRF output
calwrf.lst ! Log file name
test5.m3d ! Output file name
-1,-1,-1,-1,-1,-1 ! Beg/End I/J/K ("-" for all)
2011081500 ! Start datetime (UTC yyyymmddhh, "-" for all)
2011090200 ! End datetime (UTC yyyymmddhh, "-" for all)
1 ! Number of WRF output files
E:\vbm\wrf_runs\vbm\wrfout_d01_2011-08-15_00:00:00! File name of wrf output (Loop over files)
======================================================================================
========================================================================================
waybov_wrf
 
Posts: 7
Joined: Sat Apr 06, 2013 10:22 pm

Re: CALWRF problem

Postby wintermute » Tue Sep 03, 2013 6:31 am

well I see a discrepancy: in the text you say that the hard drive is E:/element/vbm, while in the .inp file this "element" folder disappears.

Also, but maybe it means nothing, I would add a space between the path name and the comment character "!".
wintermute
 
Posts: 30
Joined: Wed Jan 30, 2013 11:48 am

Re: CALWRF problem

Postby waybov_wrf » Mon Sep 09, 2013 12:12 am

opsss..
thks for your reply.. m going to run it again by changing .inp accordingly.. thks for remining "i" error.. it was silly mistake..

Regards
WayBov
waybov_wrf
 
Posts: 7
Joined: Sat Apr 06, 2013 10:22 pm

Re: CALWRF problem

Postby waybov_wrf » Wed Oct 09, 2013 3:17 am

Hi
my CALWRFv2 is running well but unfortunately m getting error if i use large data more then 1GB size
I am attached here one error occurred after 120GB data used .. please see the :geek: attachment and plz plz tell me how to solve this problem

Regards
WayBov
Attachments
calwrf error.jpg
calwrf error.jpg (113.46 KiB) Viewed 4718 times
waybov_wrf
 
Posts: 7
Joined: Sat Apr 06, 2013 10:22 pm

Re: CALWRF problem

Postby Joanna Xu » Tue Oct 17, 2017 3:16 am

wintermute wrote: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!

I am sorry to disturb you after 4 years,perhaps you will not find this.in fact I have difficulty in running CALWRF.I have a series of wrf-output files. One day has 2 files,but I would like to get calwrf's results of a MONTH's wrf-output files.
===========================================================================================
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 datetime ( UTC yyyymmddhh, "-" for all )
-1 !End datetime ( UTC yyyymmddhh, "-" for all )
3 !Number of WRF output files
./wrfout_d03_2015-10-27_00:00:00
./wrfout_d03_2015-10-27_12:00:00
./wrfout_d03_2015-10-28_00:00:00 !File name of wrf output (Loop over files)
===========================================================================================
AND the RUNNING process were like this
===========================================================================================
Control inp file:calwrf.inp
2D.DAT flag input not exist, set to one
Set 2D.DAT flag to 1: 1
Default 2D.DAT filename:calwrf.em.m2d
Open WRF netcdf file 1 : ./wrfout_d03_2015-10-27_00:00:00
N_TIMES: 12

Processing GLOBAL ATTRIBUTES:

Warning: Attribute not exist: 3 DYN_OPT -43
Check whether this att. is critical
Reset I/J/K ranges to: 1 153 1 117
1 20
Process: 1 2015-10-27_00:00:00 2015102700
Warning - 2D Outrange: RAIN 100 18 2 0.0000E+00 0.5000E+03 -0.5644E-34
Change to: RAIN 100 18 2 0.0000E+00
Warning - 2D Outrange: RAIN 41 46 2 0.0000E+00 0.5000E+03 -0.1108E-20
Change to: RAIN 41 46 2 0.0000E+00
Process: 2 2015-10-27_01:00:00 2015102701
Process: 3 2015-10-27_02:00:00 2015102702
Warning - 2D Outrange: RAIN 109 16 2 0.0000E+00 0.5000E+03 -0.8081E-30
Change to: RAIN 109 16 2 0.0000E+00
Process: 4 2015-10-27_03:00:00 2015102703
Warning - 3D Outrange: WCLD 1 105 8 8 0.0000E+00 0.5000E-01 -0.1703E-12
In interph
0.0000000E+00 0.0000000E+00 0.0000000E+00 4.1810930E-04
Change to: WCLD 1 105 8 8 0.1045E-03
Warning - 3D Outrange: WCLD 1 106 8 8 0.0000E+00 0.5000E-01 -0.1701E-12
In interph
1.0452732E-04 1.3067626E-06 0.0000000E+00 4.1810930E-04
Change to: WCLD 1 106 8 8 0.1310E-03
Warning - 3D Outrange: WCLD 1 107 8 8 0.0000E+00 0.5000E-01 -0.1697E-12
In interph
1.3098585E-04 1.6205579E-06 0.0000000E+00 4.1810930E-04
Change to: WCLD 1 107 8 8 0.1377E-03
Warning - 3D Outrange: WCLD 34 117 8 8 0.0000E+00 0.5000E-01 -0.2631E-20
In interph
0.0000000E+00 4.7597164E-04 0.0000000E+00 0.0000000E+00
Change to: WCLD 34 117 8 8 0.1190E-03
Warning - 3D Outrange: WCLD 42 117 8 8 0.0000E+00 0.5000E-01 -0.5145E-17
In interph
0.0000000E+00 4.7597164E-04 0.0000000E+00 0.0000000E+00
Change to: WCLD 42 117 8 8 0.1190E-03
Process: 5 2015-10-27_04:00:00 2015102704
Warning - 3D Outrange: QQ 38 108 16 7 0.0000E+00 0.5000E-01 -0.9010E-14
In interph
2.1208159E-04 1.5180898E-03 7.3778728E-04 9.1854820E-04
Change to: QQ 38 108 16 7 0.8466E-03
Process: 6 2015-10-27_05:00:00 2015102705
Warning - 2D Outrange: RAIN 125 16 2 0.0000E+00 0.5000E+03 -0.2132E-28
Change to: RAIN 125 16 2 0.7004E+00
Process: 7 2015-10-27_06:00:00 2015102706
Process: 8 2015-10-27_07:00:00 2015102707
Warning - 3D Outrange: QQ 116 101 17 7 0.0000E+00 0.5000E-01 -0.1384E-14
In interph
6.3360400E-05 8.4499698E-05 2.2182470E-04 3.1352978E-05
Change to: QQ 116 101 17 7 0.1003E-03
Process: 9 2015-10-27_08:00:00 2015102708
Warning - 3D Outrange: QQ 119 109 17 7 0.0000E+00 0.5000E-01 -0.4598E-13
In interph
8.5420195E-09 2.3873588E-04 2.6094308E-04 1.5142849E-06
Change to: QQ 119 109 17 7 0.1253E-03
Process: 10 2015-10-27_09:00:00 2015102709
Process: 11 2015-10-27_10:00:00 2015102710
Process: 12 2015-10-27_11:00:00 2015102711
Completed WRF file: 1 ./wrfout_d03_2015-10-27_00:00:00
Open WRF netcdf file 2 : ./wrfout_d03_2015-10-27_12:00:00
N_TIMES: 12

Processing GLOBAL ATTRIBUTES:

Warning: Attribute not exist: 3 DYN_OPT -43
Check whether this att. is critical
Completed WRF file: 2 ./wrfout_d03_2015-10-27_12:00:00
Open WRF netcdf file 3 : ./wrfout_d03_2015-10-28_00:00:00
N_TIMES: 12

Processing GLOBAL ATTRIBUTES:

Warning: Attribute not exist: 3 DYN_OPT -43
Check whether this att. is critical
Completed WRF file: 3 ./wrfout_d03_2015-10-28_00:00:00

CALWRF succeeded
99999
===========================================================================================
MAYBE you have experiences if you have seen this situation, CAN you give me some advices about it?
thank you very much !
Joanna Xu
 
Posts: 1
Joined: Mon Oct 16, 2017 10:55 pm

Previous

Return to Miscellaneous

Who is online

Users browsing this forum: No registered users and 2 guests