anikfal / postwrf

Visualization and postprocessing of the WRF and ERA5 data
MIT License
54 stars 11 forks source link

ncl: error while loading shared libraries: libgsl.so.25: cannot open shared object file: No such file or directory #9

Closed Anielal closed 1 year ago

Anielal commented 2 years ago

Hi all, I am trying to get a domain plot from wrf out file using postWRF. I have 3 domains. But I am getting the error:

'ncl: error while loading shared libraries: libgsl.so.25: cannot open shared object file: No such file or directory'.

I tried 'sudo apt-get install gsl-bin' to install gsl in my ubuntu 20.04, but still it is showing this same error.

Kindly help me solve this issue.

Looking forward to any kind of help Thank you

anikfal commented 2 years ago

Hi,

The error you mentioned about libgsl.so.25 is a NCL installation issue. Also please note that PostWRF is developed in CentOS/Fedora OS, and there might be some issues while running it in Ubuntu.

What do you get if you run the command bellow? find /usr/lib64/ | grep libgsl

Anielal commented 2 years ago

Screenshot from 2022-08-05 15-47-52 kindly find the screenshot attached

anikfal commented 2 years ago

It seems no libgsl is installed on you machine.

How did you install NCL?

Anielal commented 2 years ago

i installed ncl with 'conda' conda create -n ncl_stable -c conda-forge ncl

anikfal commented 2 years ago

Install it by apt-get, as bellow: sudo apt-get -y install ncl-ncarg

Do not use any conda environment for PostWRF.

Anielal commented 2 years ago

yes

Anielal commented 2 years ago

I installed ncl as suggested. Now its showing some other error. pfa screenshot. Screenshot from 2022-08-05 16-49-42

Anielal commented 2 years ago

Also, it is asking for only 2 domains, whereas I have 3 domains.!

anikfal commented 2 years ago

In the namelist.wrf section, the value of +number_of_domains (topography) must be equal to the number of domains (for your case is 3):

Domain_On-Off                    = 0

namelist.wps_path (schematic)   = /home/anikfal/WRF4.2.2/WPS/namelist.wps
background_color (schematic)    = forestgreen
lables_On-Off (schematic)       = 0

+Domain_on_off (topography)      = 1
 +number_of_domains (topography) = 3
 +box_color                      = white

Also you can use your namelist.wps to plot the domains by setting +Domain_on_off (topography) to 0

Domain_On-Off                    = 1

namelist.wps_path (schematic)   = /home/anikfal/WRF4.2.2/WPS/namelist.wps
background_color (schematic)    = forestgreen
lables_On-Off (schematic)       = 0

+Domain_on_off (topography)      = 0
 +number_of_domains (topography) = 3
 +box_color                      = white

You must set namelist.wps_path (schematic) to the path of your namelist.wps.

Please note that PostWRF is best to be run on CentOS or Fedora.

Anielal commented 2 years ago

okay. Thanks for the help