[gradsusr] wrf2grads software to read wrfoutput

Jeff Duda jeffduda319 at gmail.com
Mon Jul 10 12:40:15 EDT 2017


The big thing about viewing WRF output directly from the history files is
the format - netCDF (as opposed to binary, GRIB, or something else). To use
that particular fortran program you need to link to an installed netcdf
library on your system. Some compilers may not be supported. I do not
regularly use gfortran, so I cannot comment further on whether this
compiler is the problem. I will say that if you have access to an ifort or
pgf90 compiler to try those as well.

The reason the compilation is failing is because it is not finding the
netcdf library files during compilation. This typically means you have
misspecified the location of the library files on your machine, or they're
not installed. Look through the makefile and check the path names that are
specified. Since this section is uncommented, I assume these are the
settings you are using to compile:

LIBNETCDF = -L/usr/local/netcdf-xlf/lib -lnetcdf -lm
#INCLUDE = -I/usr/local/netcdf-xlf/include -I./
INCLUDES=-I. -I/usr/local/include
FC = gfortran
FCFLAGS = -g -C
CPP = /usr/bin/cpp
CPPFLAGS = -I. -C -P -DRECL4 -xassembler-with-cpp

check that /usr/local/netcdf-xlf/lib exists on your system. Do the same for
the INCLUDE listing (without the "-I"). Also I suspect this line
INCLUDES=-I. -I/usr/local/include
is errant, for three reasons: 1) grammatical error in the entry itself; 2)
the INCLUDES keyword is not used in the compiler dependencies at the end of
the Makefile (below the ##################); 3) I doubt a valid netCDF
library exists in /usr/local/include, as that seems too broad a directory
structure (and it's non-specific), but I could be wrong about that.

Jeff Duda


On Mon, Jul 10, 2017 at 9:18 AM, afwande juliet <afwandej965 at gmail.com>
wrote:

> Dear users
> I have wrfoutput that I want to read uisng GRADS. I want to create a .ctl
> file using wrf2grads .
>
> I am unable since compilers in my machine is not recoginzable . I have
> both gcc and gfortran but I get this problem when i try make
>
> module_wrf_to_grads_netcdf.f:39: Error: Can't open included file
> 'netcdf.inc'
> Makefile:90: recipe for target 'module_wrf_to_grads_netcdf.o' failed
>
> below is my make file script attached.
> Also can someone show me another way  how to read wrfouptut in GRADS
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
Jeff Duda
Post-doctoral research fellow
University of Oklahoma School of Meteorology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170710/1fc741d8/attachment.html 


More information about the gradsusr mailing list