NCAR / ncl

The NCAR Command Language (NCL) is a scripting language for the analysis and visualization of climate and weather data.
http://www.ncl.ucar.edu
Other
268 stars 65 forks source link

fatal:syntax error: function wrf_cloud_fraction expects 7 arguments, got 2 #101

Open sourabhmet opened 5 years ago

sourabhmet commented 5 years ago

I am getting this bug during compilations of wrf in NCL

Describe the bug A clear and concise description of what the bug is. Include any error messages.

Provide the following:

Computing environment

Additional context Add any other context about the problem here.

khallock commented 5 years ago

Hi @sourabhmet,

Could you please run the following commands and reply with the output?

which ncl
ncl -V
echo $NCARG_ROOT

Thanks!

sourabhmet commented 5 years ago

please check the output

$ which ncl /home/sourabh/anaconda3/bin/ncl $ ncl -V 6.6.2 $ echo $NCARG_ROOT /home/sourabh/mod/Build_WRF/LIBRARIES/ncl

khallock commented 5 years ago

Hi @sourabhmet,

Thanks for running those commands.

It looks like your NCARG_ROOT environment variable is set to use the files from a different version of NCL (/home/sourabh/mod/Build_WRF/LIBRARIES/ncl) than what you have installed from conda (/home/sourabh/anaconda3/bin/ncl). Setting NCARG_ROOT manually should fix the error message you're seeing: export NCARG_ROOT=/home/sourabh/anaconda3

We generally recommend installing NCL into its own conda environment (see the "Create a conda environment and install NCL" section on this page of our documentation) because running conda activate $ncl_env sets the NCARG_ROOT variable for you, but setting NCARG_ROOT manually should also work.

I hope this helps!