[Wrf-users] ARWpost for GrADS application
Young, Jeremy, K
jeremy.young868 at topper.wku.edu
Mon Nov 14 09:53:39 MST 2011
Hi Jason,
Here is my configure.arwp. I did indeed have to make the previously mentioned modifications in order to compile ARWpost. The only thing different about this file compared to some of my suggested changes to the configure.arwp file is that I did not have to change the "-O" flag to "-O2". The first time I successfully got ARWpost to compile, I did make this change. After trying the "-R/.../netcdf/lib" flag, I did not need to make this change any longer.
I've also pasted my .bashrc in case it may be of use. I hope these files help.
# configure.arwp
#
# This file was automatically generated by the configure script in the
# top level directory. You may make changes to the settings in this
# file but be aware they will be overwritten each time you run configure.
# Ordinarily, it is necessary to run configure once, when the code is
# first installed.
#
# To permanently change options, change the settings for your platform
# in the file arch/configure.defaults, the preamble, and the postamble -
# then rerun configure.
#
.SUFFIXES: .F90 .f90 .F .f .c .o
SHELL = /bin/sh
# Listing of options that are usually independent of machine type.
# When necessary, these are over-ridden by each architecture.
ARFLAGS =
PERL = perl
RANLIB = echo
#### Architecture specific settings ####
# Settings for PC Linux i486 i586 i686 x86_64, PGI compiler
#
FC = pgf90
FFLAGS = -Mfree -byteswapio -O
F77FLAGS = -byteswapio -O
FNGFLAGS = $(FFLAGS)
LDFLAGS = -L/home/jyoung/WRFmodel/netcdf/lib -lnetcdf -lnetcdff
CC = gcc
CFLAGS = -O
CPP = /lib/cpp -C -P -traditional
CPPFLAGS = -DIO_NETCDF -DIO_GRIB1 -DIO_BINARY -DRECL4 -Dbytesw -R/home/jyoung/WRFmodel/netcdf/lib
###########################################################
#
# Macros, these should be generic for all machines
LN = ln -sf
MAKE = make -i -r
RM = /bin/rm -f
CP = /bin/cp
AR = ar ru
.IGNORE:
.SUFFIXES: .c .f90 .F90 .f .F .o
# There is probably no reason to modify these rules
.c.o:
$(RM) $@
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
.f90.o:
$(RM) $@ $*.mod
$(CP) $< $*.f
$(FC) $(FFLAGS) -I${NETCDF}/include -c $*.f
$(RM) $*.f
.F90.o:
$(RM) $@ $*.mod
$(CPP) $(CPPFLAGS) $(FDEFS) $< > $*.f
$(FC) $(FFLAGS) -I${NETCDF}/include -c $*.f
$(RM) $*.f
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
PATH=$PATH:$HOME/bin
export PATH
# PGI SETTINGS
PGI=/opt/pgi; export PGI
PATH=/opt/pgi/linux86-64/10.8/bin:$PATH; export PATH
MANPATH=$MANPATH:/opt/pgi/linux86-64/10.8/man; export MANPATH
LM_LICENSE_FILE=$LM_LICENSE_FILE:/opt/pgi/license.dat; export LM_LICENSE_FILE
# WRF SETTINGS
NETCDF=/home/jyoung/WRFmodel/netcdf; export NETCDF
PATH=/home/jyoung/WRFmodel/netcdf/bin:$PATH; export PATH
JASPERLIB=/usr/lib64; export JASPERLIB
JASPERINC=/usr/local/include/jasper; export JASPERINC
WRF_EM_CORE=1; export WRF_EM_CORE
WRF_NMM_CORE=0; export WRF_NMM_CORE
WRFIO_NCD_LARGE_FILE_SUPPORT=1; export WRFIO_NCD_LARGE_FILE_SUPPORT
LD_LIBRARY_PATH=/home/jyoung/WRFmodel/netcdf/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
LD_LIBRARY_PATH=/home/jyoung/WRFmodel/hdf5/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
#MPICH SETTINGS
PATH=/home/jyoung/WRFmodel/mpich/bin:$PATH; export PATH
#GRADS SETTINGS
PATH=/home/jyoung/WRFmodel/grads/bin:$PATH; export PATH
Jeremy Young
________________________________________
From: jasonpadovani at gmail.com [jasonpadovani at gmail.com] on behalf of Jason Padovani Ginies [jpad0001 at um.edu.mt]
Sent: Monday, November 14, 2011 10:00 AM
To: Young, Jeremy, K
Subject: Re: [Wrf-users] ARWpost for GrADS application
Hi there,
Thanks for your last detailed email. I have a script which copies the run directory to an output location so not to mess up run/ itself if anything goes wrong. What's different is only the paths so things should work fine.
My namelist now has
start_date = '2011-01-24_12:00:00',
end_date = '2011-01-27_12:00:00',
and
&io
input_root_name = '/home/wrf/OUTPUT/LES-Tests/test11/wrfout_d03_2011-01-24_12:00:00'
output_root_name = './OUTPUT/test'
and is otherwise the same.
Again the output I get is
!!!!!!!!!!!!!!!!
ARWpost v3.1
!!!!!!!!!!!!!!!!
ls: /home/wrf/OUTPUT/LES-Tests/test11/wrfout_d03_2011-01-24_12:00:00: Value too large for defined data type
ls: /home/wrf/OUTPUT/LES-Tests/test11/wrfout_d03_2011-01-24_12:00:00: Value too large for defined data type
Oops, we need at least ONE input file for the program to read.
I am now thinking it might be a problem in the compilation or it is the fact that since ls is not producing an actual output for ARWpost, then the process is coming to a halt. The last few lines of the compilation in fact read
-L/home/wrf/ARWpost/netcdf_links/lib -I/home/wrf/ARWpost/netcdf_links/include -lnetcdf
/cm/shared/apps/intel/Compiler/11.1/046/lib/intel64/libimf.so: warning: warning: feupdateenv is not implemented and will always fail
Did you have to go through the modifications you have listed in the first email in order to compile ARWpost ? And if yes, could I kindly ask you to send me the configure.arwp file please?
Once again thank you for your time, I know this must be getting frustrating.
Jason
On Sun, Nov 13, 2011 at 6:33 PM, Young, Jeremy, K <jeremy.young868 at topper.wku.edu<mailto:jeremy.young868 at topper.wku.edu>> wrote:
Hi Jason,
If I’m understanding your procedure, you have renamed the wrfout files produced by wrf.exe to a different name (your example is t10). I have not used ARWpost very often, but I’m not sure if ARWpost.exe can understand what it’s reading if the wrfout files are renamed. Looking at the errors you are seeing, I think that this may be your problem. It’s either that the renamed files are not being understood by ARWpost.exe or that there was an error in the compilation of ARWpost.
&datetime
start_date = '1998-09-01_00:00:00',
end_date = '1998-09-05_00:00:00',
interval_seconds = 10800,
tacc = 0,
debug_level = 0,
/
&io
input_root_name = '../WRFV3/run/wrfout_d01_1998-09-01_00:00:00'
output_root_name = './test'
plot = 'all_list'
fields = 'height,pressure,tk,tc'
mercator_defs = .true.
/
split_output = .true.
frames_per_outfile = 2
plot = 'all'
plot = 'list'
plot = 'all_list'
! Below is a list of all available diagnostics
fields = 'height,geopt,theta,tc,tk,td,td2,rh,rh2,umet,vmet,pressure,u10m,v10m,wdir,wspd,wd10,ws10,slp,mcape,mcin,lcl,lfc,cape,cin,dbz,max_dbz,clfr'
&interp
interp_method = 0,
interp_levels = 1000.,950.,900.,850.,800.,750.,700.,650.,600.,550.,500.,450.,400.,350.,300.,250.,200.,150.,100.,
/
extrapolate = .true.
interp_method = 0, ! 0 is model levels, -1 is nice height levels, 1 is user specified pressure/height
interp_levels = 1000.,950.,900.,850.,800.,750.,700.,650.,600.,550.,500.,450.,400.,350.,300.,250.,200.,150.,100.,
interp_levels = 0.25, 0.50, 0.75, 1.00, 2.00, 3.00, 4.00, 5.00, 6.00, 7.00, 8.00, 9.00, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0,
This is my namelist.ARWpost. The only lines I changed in this file before running the program were the start date, the end date and the input file name. I don’t see why you couldn’t name the output files (the .ctl and the .dat) whatever you wish, but it’s possible that renaming the file has corrupted it somehow or that ARWpost cannot accept files with names like this. My suggestion would be to try and rename the t10 file (and others like it) back to their original names and try again. To keep the files organized, maybe you could create several directories that would contain each model run and its related wrfout files.
If possible, complete another model run and leave the wrfout files in the ../WRFV3/run directory. Try and run ARWpost.exe while the wrfout files are still in this location and still have the wrfout_d01____ name. In doing so, your process would completely match mine and we might be able to see if the problem is related to your file names or if it is related to ARWpost not compiling correctly.
Please respond with any additional questions or problems that you run into. The attached screenshots show my completion of ARWpost using the namelist above.
Jeremy Young.
From: jasonpadovani at gmail.com<mailto:jasonpadovani at gmail.com> [mailto:jasonpadovani at gmail.com<mailto:jasonpadovani at gmail.com>] On Behalf Of Jason Padovani Ginies
Sent: Sunday, November 13, 2011 2:17 AM
To: Young, Jeremy, K
Subject: Re: [Wrf-users] ARWpost for GrADS application
Hi Jeremy,
Thank you for your time. I did not get the attachment in the email, could you please send it again?
What I''ve tried so far and the errors I get:
* I've made two directories WRFinput [in which I have a wrf output file named t10] and OUTPUT in the ARWpost directory. So in the input and output root name of the namelist i've put (respectively) './WRFinput/t10' and './OUTPUT/test'. I adjusted the dates and the error I get is:
* !!!!!!!!!!!!!!!!
ARWpost v3.1
!!!!!!!!!!!!!!!!
ls: ./WRFinput/t10: Value too large for defined data type
ls: ./WRFinput/t10: Value too large for defined data type
Oops, we need at least ONE input file for the program to read.
* I've tried to put 'WRFinput/' as the input root name so that ARWpost looks for the files automatically in the directory and the error I get is
*
!!!!!!!!!!!!!!!!
ARWpost v3.1
!!!!!!!!!!!!!!!!
FOUND the following input files:
t10
START PROCESSING DATA
WARNING --- I do not recognize this data.
Will make an attempt to read it.
Processing time --- 2011-01-24_12:00:00
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
ARWpost.exe 000000000040CC91 Unknown Unknown Unknown
ARWpost.exe 0000000000419E58 Unknown Unknown Unknown
ARWpost.exe 0000000000419395 Unknown Unknown Unknown
ARWpost.exe 0000000000409E78 Unknown Unknown Unknown
ARWpost.exe 0000000000408BEC Unknown Unknown Unknown
libc.so.6 00000030D141D994 Unknown Unknown Unknown
ARWpost.exe 0000000000408AE9 Unknown Unknown Unknown
I can't see where I am going wrong?! perhaps you have come across such errors before?
Thanks again
Jason
On Sat, Nov 12, 2011 at 1:28 PM, Young, Jeremy, K <jeremy.young868 at topper.wku.edu<mailto:jeremy.young868 at topper.wku.edu>> wrote:
Hi Jason,
What exactly is your problem? Maybe the paths to your wrfout files are incorrect? I’ve attached the namelist file. The only things I had to change in the namelist when running ARWpost.exe were the start date, the end date and the name of my wrfout file.
I hope the namelist helps. If you run into any additional problems I can try and help.
Jeremy Young
From: jasonpadovani at gmail.com<mailto:jasonpadovani at gmail.com> [mailto:jasonpadovani at gmail.com<mailto:jasonpadovani at gmail.com>] On Behalf Of Jason Padovani Ginies
Sent: Friday, November 11, 2011 8:22 PM
To: Young, Jeremy, K
Subject: Re: [Wrf-users] ARWpost for GrADS application
Dear Jeremy,
Thank you for your email. In fact the first modification seems like to have solved the problem already and I now have ARWpost.exe. I still cannot make it work however =( I cannot understand what I am doing wrong to get different error messages. Could I kindly ask you to explain the procedure if you have expertise in the matter? I've tried renaming/relocating and changing the input file and adjusting the namelist accordingly but still I can't seem to get it right.
Could you kindly send me a copy of your namelist.ARWpost and specify the following:
* location and name of input(WRF output) files relative to ARWpost.exe
Many thanks,
Jason
On Fri, Nov 11, 2011 at 12:42 AM, Young, Jeremy, K <jeremy.young868 at topper.wku.edu<mailto:jeremy.young868 at topper.wku.edu>> wrote:
Hi Jason,
I’ve seen a similar error message before when attempting to compile ARWpost. I fixed this problem by adding the following to the configure.arwp file:
--LDFLAGS should now have –L/path/to/netcdf/lib –lnetcdf –lnetcdff
--CPPFLAGS should now have –I/path/to/netcdf/include and –R/path/to/netcdf/lib
--Change the “-O” flags to match that of netcdf during compile, probably “-O2”.
Changing the optimization flags, LDFLAGS and CPPFLAGS will likely fix your problem. The-R/path/to/netcdf/lib will eliminate another problem that I ran into when trying to run ARWpost.exe in which an error message saying that there was an “error opening shared libraries …”. If you see this message, you can use a command like “ ln –s /path/to/netcdf/lib/libnetcdf* .” issued from the ARWpost directory to link the necessary libraries and allow them to be referenced.
I hope this helps.
Jeremy Young
System Administrator
Climate Research Lab
Western Kentucky University
From: wrf-users-bounces at ucar.edu<mailto:wrf-users-bounces at ucar.edu> [mailto:wrf-users-bounces at ucar.edu<mailto:wrf-users-bounces at ucar.edu>] On Behalf Of Jason Padovani Ginies
Sent: Thursday, November 10, 2011 1:08 PM
To: wrf-users at ucar.edu<mailto:wrf-users at ucar.edu>
Subject: [Wrf-users] ARWpost for GrADS application
Dear wrf-users,
I am having trouble compiling ARWposts. When I try to compile I get lots of error messages looking like this:
input_module.f:(.text+0x40f): undefined reference to `ncvgt_'
and eventually are confronted with a final error message saying:
make: [ARWpost.exe] Error 1 (ignored)
Some research has led me to believe that the netCDF on the system might causing this problem and that I might have to re-compile that
Is there any way to go around this perhaps another method of converting wrf output in a format readable by GrADS?
Kind regards,
Jason Padovani Ginies
Final Year B.Sc. student
Department of Physics
University of Malta
_______________________________________________
Wrf-users mailing list
Wrf-users at ucar.edu<mailto:Wrf-users at ucar.edu>
http://mailman.ucar.edu/mailman/listinfo/wrf-users
_______________________________________________
Wrf-users mailing list
Wrf-users at ucar.edu<mailto:Wrf-users at ucar.edu>
http://mailman.ucar.edu/mailman/listinfo/wrf-users
More information about the Wrf-users
mailing list