[ncl-talk] [ncl-install] Issue with ploting shapefile
Dave Allured - NOAA Affiliate
dave.allured at noaa.gov
Sun Dec 29 15:17:13 MST 2024
Ehsan, this is a known issue with recent NCL versions. The lat and lon
coordinates are swapped in some shape files, causing missing images, or
mirror images along a 45 degree fold line. That is what I see in your
plots.
This is discussed in Github issues #151
<https://github.com/NCAR/ncl/issues/151> and #176. In #176 I show a
diagnostic method to determine swapped coordinates. I also provide a
modified NCL library file that should render plots correctly for any shape
file. Please give these suggestions a try, and let us know the results.
On Wed, Dec 25, 2024 at 7:23 AM Ehsan Taghizadeh via ncl-install <
ncl-install at mailman.ucar.edu> wrote:
> Hello everyone,
>
> I am trying to add a shapefile to my plot, but the location of the
> shapefile is incorrect as it appears to be rotated 90 degrees clockwise.
> Previously, I had an issue with NCL installed via Conda. I attempted to
> install NCL using a precompiled version, but encountered the following
> error: “ncl: error while loading shared libraries: libssl.so.10: cannot
> open shared object file: No such file or directory.” Since I do not have
> root access, I cannot install libssl.so.10.
>
> Attached are the incorrect and correct output maps. The desired shapefile
> is shown in tan. The correct version is the output from running NCL on
> another Linux version (Rocky), which I do not have access to. The code I
> used to plot these maps is quite long and may not be helpful for this
> issue, but I can provide a shorter version if necessary.
>
> As I am unsure if this issue is directly related to the NCL installation,
> I am sending this to both emails. Apologies for any inconvenience caused.
>
> The output of the command "conda list -n ncl_stable" is attached (
> condalist.txt). Some additional information is provided below:
> $ conda --version
> *conda 24.11.2*
> $ which ncl
> *~/miniconda3/envs/ncl_stable/bin/ncl*
> $ ncl -V
> *6.6.2*
> $ env | grep NCARG
> *NCARG_ROOT=/home/taghizade/miniconda3/envs/ncl_stable*
>
> Any help would be appreciated. Happy holidays!
>
> *-----------------------------------------------------------------------------*
> *Best regards,*
> *Ehsan Taghizade*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20241229/34359d40/attachment.htm>
More information about the ncl-talk
mailing list