<html><head></head><body><div class="ydp84a1ba4cyahoo-style-wrap" style="font-family: bookman old style, new york, times, serif; font-size: 16px;"><div style=""><div dir="ltr" data-setdir="false" style="font-size: 16px;">Dear Dave,</div><div dir="ltr" data-setdir="false" style="font-size: 16px;"><br></div><div dir="ltr" data-setdir="false" style="font-size: 16px;">Thank you again for your follow-up.</div><div dir="ltr" data-setdir="false" style="font-size: 16px;"><br></div><div dir="ltr" data-setdir="false" style=""><div style=""><div style="font-size: 16px;">I tried to upload shapefiles to GitHub, but I encountered the 25 MB file size limitation. My shapefiles are 37 MB. Could you advise me on how to attach these files in one message?</div><div style="font-size: 16px;"><br></div><div style="font-size: 16px;">Additionally, after replacing the gsn_code 2024 version with the previous one, every time I remove the ncl_stable environment and try to reinstall NCL via conda, I encounter the following errors, and the gsn_code 2024 version is replaced:</div><div style="font-size: 16px;"><br></div><div><i><font size="2">Downloading and Extracting Packages:</font></i></div><div style=""><i><font size="2"><br></font></i></div><div style=""><i><font size="2">Preparing transaction: done</font></i></div><div style=""><i><font size="2">Verifying transaction: \</font></i></div><div style=""><i><font size="2">SafetyError: The package for ncl located at /home/taghizade/miniconda3/pkgs/ncl-6.6.2-h7cb714c_54</font></i></div><div style=""><i><font size="2">appears to be corrupted. The path 'lib/ncarg/nclscripts/csm/gsn_code.ncl'</font></i></div><div style=""><i><font size="2">has an incorrect size.</font></i></div><div style=""><i><font size="2">reported size: 504377 bytes</font></i></div><div style=""><i><font size="2">actual size: 509857 bytes</font></i></div><div style=""><i><font size="2"><br></font></i></div><div style=""><i><font size="2">ClobberError: This transaction has incompatible packages due to a shared path.</font></i></div><div style=""><i><font size="2">packages: conda-forge/linux-64::hdfeos2-2.20-h3e53b52_1004, conda-forge/linux-64::hdfeos5-5.1.16-h51d0b48_17</font></i></div><div style=""><i><font size="2">path: 'include/cfortHdf.h'</font></i></div><div style=""><i><font size="2"><br></font></i></div><div style=""><i><font size="2">ClobberError: This transaction has incompatible packages due to a shared path.</font></i></div><div style=""><i><font size="2">packages: conda-forge/linux-64::hdfeos2-2.20-h3e53b52_1004, conda-forge/linux-64::hdfeos5-5.1.16-h51d0b48_17</font></i></div><div style=""><i><font size="2">path: 'include/ease.h'</font></i></div><div style=""><i><font size="2"><br></font></i></div><div style=""><i><font size="2">ClobberError: This transaction has incompatible packages due to a shared path.</font></i></div><div style=""><i><font size="2">packages: conda-forge/linux-64::hdfeos2-2.20-h3e53b52_1004, conda-forge/linux-64::hdfeos5-5.1.16-h51d0b48_17</font></i></div><div style=""><i><font size="2">path: 'include/isin.h'</font></i></div><div style=""><i><font size="2"><br></font></i></div><div style=""><i><font size="2">ClobberError: This transaction has incompatible packages due to a shared path.</font></i></div><div style=""><i><font size="2">packages: conda-forge/linux-64::hdfeos2-2.20-h3e53b52_1004, conda-forge/linux-64::proj-9.4.1-h54d7996_1</font></i></div><div style=""><i><font size="2">path: 'include/proj.h'</font></i></div><div style=""><i><font size="2"><br></font></i></div><div style=""><i><font size="2">ClobberError: This transaction has incompatible packages due to a shared path.</font></i></div><div style=""><i><font size="2">packages: conda-forge/linux-64::hdfeos2-2.20-h3e53b52_1004, conda-forge/linux-64::hdfeos5-5.1.16-h51d0b48_17</font></i></div><div style=""><i><font size="2">path: 'lib/libGctp.a'</font></i></div><div style=""><i><font size="2"><br></font></i></div><div style=""><i><font size="2">done</font></i></div><div style=""><i><font size="2">Executing transaction: /</font></i></div><div style=""><i><font size="2">To enable CUDA support, UCX requires the CUDA Runtime library (libcudart).</font></i></div><div style=""><i><font size="2">The library can be installed with the appropriate command below:</font></i></div><div style=""><i><font size="2"><br></font></i></div><div style=""><i><font size="2">* For CUDA 11, run: conda install cudatoolkit cuda-version=11</font></i></div><div style=""><i style=""><font size="2">* For CUDA 12, run: conda install cuda-cudart cuda-version=12</font></i></div><div style="font-size: 16px;"><br></div><div style="font-size: 16px;">Does anyone have any suggestions on how to install NCL via conda with the default gsn_code version (2019)?</div></div></div><div style="font-size: 16px;"><br></div><div class="ydp84a1ba4csignature" style="font-size: 16px;"><div dir="ltr" style="font-family:old times, serif;font-size:16px;"><div><div dir="ltr" style="color:rgb(0, 0, 0);font-family:old times, serif;font-size:16px;"><i><font size="2">-----------------------------------------------------------------------------</font></i></div><div dir="ltr" style="color:rgb(0, 0, 0);font-family:old times, serif;font-size:16px;"> <div><div style="color:rgb(0, 0, 0);font-family:serif;font-size:16px;"><div dir="ltr"><i><font size="2">Best regards,</font></i></div><div dir="ltr"><i><font size="2">Ehsan</font></i></div></div></div></div></div></div></div></div>
<div style="font-size: 16px;"><br></div><div style="font-size: 16px;"><br></div>
<div id="ydp84a1ba4cyahoo_quoted_6256783148" class="ydp84a1ba4cyahoo_quoted" style="font-size: 16px;">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
<div>
On Tuesday, December 31, 2024 at 06:45:46 AM PST, Dave Allured - NOAA Affiliate <dave.allured@noaa.gov> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="ydp84a1ba4cyiv7227163227"><div><div dir="ltr"><div>Ehsan, thank you for testing. It looks like my changes for "gsn_code.ncl" need further debugging. It is a good sign that "englandshp" worked with the new code, because that demonstrated mostly working infrastructure for X/Y swapping.</div><div><br clear="none"></div><div>Let us move the debugging conversation off of the mailing lists. Please reply on <a shape="rect" href="https://github.com/NCAR/ncl/issues/176" rel="nofollow" target="_blank">Github issue #176</a>. I need the following details:</div><div><br clear="none"></div><div>1. Full printed output of those diagnostic messages when trying to plot "gadm41_CAN_shp" with the new gsn_code.ncl.</div><div><br clear="none"></div><div>2. Attach a zip file with the complete file set for the shapefile "gadm41_CAN_shp".</div><div dir="ltr"><br clear="none"></div><br clear="none"><div id="ydp84a1ba4cyiv7227163227yqt70757" class="ydp84a1ba4cyiv7227163227yqt1936921695"><div class="ydp84a1ba4cyiv7227163227gmail_quote ydp84a1ba4cyiv7227163227gmail_quote_container"><div dir="ltr" class="ydp84a1ba4cyiv7227163227gmail_attr">On Tue, Dec 31, 2024 at 7:13 AM Ehsan Taghizadeh <<a shape="rect" href="mailto:ehsantaghizadeh@yahoo.com" rel="nofollow" target="_blank">ehsantaghizadeh@yahoo.com</a>> wrote:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex;" class="ydp84a1ba4cyiv7227163227gmail_quote"><div><div style="font-family:old times, serif;font-size:16px;"><div><div dir="ltr" style="font-size:16px;">Dear Dave,</div><div dir="ltr" style="font-size:16px;"><span>Thank you for your helpful reply.</span><br clear="none"></div><div dir="ltr" style="font-size:16px;"><span><br clear="none"></span></div><div dir="ltr"><div><div style="font-size:16px;">First, I should mention the GDAL version on our server:</div><div style="font-size:16px;"><br clear="none"></div><div><i><font size="2">$ ogrinfo –version</font></i></div><div><i><font size="2">GDAL 3.9.2, released 2024/08/13</font></i></div></div><div style="font-size:16px;"><br clear="none"></div><div dir="ltr" style="font-size:16px;">Additionally, the NCL version installed by Conda on our server appears to be "h7cb714c_54". I tried to find the versions h8482486_9, h9ce15c7_1, or h7290063_6 mentioned as working well in issue <a shape="rect" href="https://github.com/cedadev/ceda-jaspy-envs/issues/56" rel="nofollow" target="_blank"><u>#56</u></a>, but I couldn't locate them in the <a shape="rect" href="https://anaconda.org/conda-forge/ncl/files" rel="nofollow" target="_blank"><u>build details from conda-forge</u></a>.<br clear="none"></div><div dir="ltr" style="font-size:16px;"><br clear="none"></div><div dir="ltr" style="font-size:16px;">It seems some shapefiles work well with the default NCL version from Conda. For instance, <a shape="rect" href="https://geodata.ucdavis.edu/gadm/gadm4.1/shp/gadm41_CAN_shp.zip" rel="nofollow" target="_blank">gadm41_CAN_shp</a> falls into this category. However, some shapefiles do not work with the default NCL in Conda. For example, "englandshp" (attached file) does not work well with the default NCL in Conda.<br clear="none"></div><div dir="ltr" style="font-size:16px;"><br clear="none"></div><div dir="ltr" style="font-size:16px;">When I replaced $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl with the one mentioned in issue <a shape="rect" href="https://github.com/NCAR/ncl/issues/176" rel="nofollow" target="_blank">#176</a>, the situation changed. The "englandshp" worked well with the new gsn_code, but for <a shape="rect" href="https://geodata.ucdavis.edu/gadm/gadm4.1/shp/gadm41_CAN_shp.zip" rel="nofollow" target="_blank">gadm41_CAN_shp</a>, the following error was displayed:<br clear="none"></div><div dir="ltr" style="font-size:16px;"><br clear="none"></div><div dir="ltr"><div><div><i><font size="2">(0) shapefile_order_lat_lon: Error: Cannot parse.</font></i></div><div><i><font size="2">(0) Unexpected output from 'ogrinfo -al $shapefile'.</font></i></div><div><i><font size="2">...</font></i></div><div><i><font size="2">(0) Assume order of coordinates = lon/lat.</font></i></div><div><i><font size="2">(0)</font></i></div><div><i><font size="2">(0) Diagnostics 1 for 'ogrinfo':</font></i></div><div><i><font size="2">GDAL 3.9.2, released 2024/08/13</font></i></div><div><i><font size="2">(0)</font></i></div><div><i><font size="2">(0) Diagnostics 2 for 'ogrinfo':</font></i></div><div><i><font size="2">...</font></i></div><div><i><font size="2">(0) Diagnostics 3 for 'ogrinfo':</font></i></div><div><i><font size="2">(0) Parse results = False missing False False False False</font></i></div><div><i><font size="2">(0) Number of lines in result = 1</font></i></div><div><i><font size="2">(0) missing</font></i></div><div><i><font size="2">(0) ----------------------------</font></i></div><div><i><font size="2">(0) Assume order of coordinates = lon/lat.</font></i></div><div><i><font size="2">(0) --- Working on time 2019020106 ---</font></i></div><div><i><font size="2">(0) shapefile_order_lat_lon: Error: Cannot parse.</font></i></div><div><i><font size="2">(0) Unexpected output from 'ogrinfo -al $shapefile'.</font></i></div></div><br clear="none"></div><div dir="ltr" style="font-size:16px;"><span>However, when I tried to run the simple NCL script from the NCL website to plot them, nothing was displayed for both shapefiles with the new gsn_code.</span><br clear="none"></div><div dir="ltr" style="font-size:16px;"><span><br clear="none"></span></div><div dir="ltr" style="font-size:16px;"><div dir="ltr"><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0);">load "./shapefile_utils.ncl"
sname = "your_shapefile.shp"
print_shapefile_info(sname)
plot_shapefile(sname)</pre></div></div></div><div dir="ltr"><div><div dir="ltr" style="font-size:16px;">For the <span>"englandshp"</span>, nothing was displayed. For the CAN shapefile, nothing was displayed, and the following error occurred:</div><div style="font-size:16px;"><br clear="none"></div><div><i><font size="2">(0) Diagnostics 3 for 'ogrinfo':</font></i></div><div><i><font size="2">(0) Parse results = False missing False False False False</font></i></div><div><i><font size="2">(0) Number of lines in result = 1</font></i></div><div><i><font size="2">(0) missing</font></i></div><div><i><font size="2">(0) ----------------------------</font></i></div><div><i><font size="2">(0) Assume order of coordinates = lon/lat.</font></i></div></div><br clear="none"></div><div dir="ltr" style="font-size:16px;"><span>In summary, it seems that for some shape files, we should use the default gsn_code.ncl, while for others, we should use your gsn_code.ncl. This is my understanding. I would appreciate your thoughts on this.</span></div><div style="font-size:16px;"><div dir="ltr" style="font-family:serif;font-size:16px;"><div><div dir="ltr" style="color:rgb(0,0,0);font-family:serif;font-size:16px;"><i><font size="2">-----------------------------------------------------------------------------</font></i></div><div dir="ltr" style="color:rgb(0,0,0);font-family:serif;font-size:16px;"> <div><div style="color:rgb(0,0,0);font-family:serif;font-size:16px;"><div dir="ltr"><i><font size="2">Best regards,</font></i></div><div dir="ltr"><i><font size="2">Ehsan Taghizade</font></i></div></div></div></div></div></div></div></div>
<div style="font-size:16px;"><br clear="none"></div><div style="font-size:16px;"><br clear="none"></div>
<div id="ydp84a1ba4cyiv7227163227m_-1888793142598480199ydp3bcb7642yahoo_quoted_6290751194" style="font-size:16px;">
<div style="font-family:Helvetica, Arial, sans-serif;font-size:13px;">
<div>
On Sunday, December 29, 2024 at 02:17:40 PM PST, Dave Allured - NOAA Affiliate <<a shape="rect" href="mailto:dave.allured@noaa.gov" rel="nofollow" target="_blank">dave.allured@noaa.gov</a>> wrote:
</div>
<div><br clear="none"></div>
<div><br clear="none"></div>
<div><div id="ydp84a1ba4cyiv7227163227m_-1888793142598480199ydp3bcb7642yiv5578351561"><div><div dir="ltr"><div>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.</div><div><br clear="none"></div><div>This is discussed in Github issues <a shape="rect" href="https://github.com/NCAR/ncl/issues/151" rel="nofollow" target="_blank">#151</a> and <a shape="rect" href="http://#176" rel="nofollow" target="_blank">#176</a>. 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.</div><div dir="ltr"><br clear="none"></div><br clear="none"><div id="ydp84a1ba4cyiv7227163227m_-1888793142598480199ydp3bcb7642yiv5578351561yqt29943"><div><div dir="ltr">On Wed, Dec 25, 2024 at 7:23 AM Ehsan Taghizadeh via ncl-install <<a shape="rect" href="mailto:ncl-install@mailman.ucar.edu" rel="nofollow" target="_blank">ncl-install@mailman.ucar.edu</a>> wrote:<br clear="none"></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex;"><div><div style="font-family:serif;font-size:16px;"><div dir="ltr"><div><div dir="ltr">Hello everyone,</div><div><br clear="none"></div><div>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.</div><div><span><br clear="none"></span></div><div dir="ltr"><span>Attached are the incorrect and correct output maps. <span>The desired shapefile is shown in tan. </span>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.</span></div><div><br clear="none"></div><div>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.</div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>The output of the command "<span>conda list -n ncl_stable</span>" is attached (<span>condalist.txt</span>). Some additional information is provided below:</span></div><div dir="ltr">$ <span>conda --version</span></div><div dir="ltr"><span> <span><i>conda 24.11.2</i></span></span></div><div dir="ltr">$ <span>which ncl</span></div><div dir="ltr"><span> <span><i>~/miniconda3/envs/ncl_stable/bin/ncl</i></span></span></div><div dir="ltr"><span>$ <span>ncl -V</span></span></div><div dir="ltr"><span> <i>6.6.2</i><br clear="none"></span></div><div dir="ltr">$ <span>env | grep NCARG</span></div><div dir="ltr"><span> <span><i>NCARG_ROOT=/home/taghizade/miniconda3/envs/ncl_stable</i></span></span></div><div><br clear="none"></div><div>Any help would be appreciated. Happy holidays!</div></div></div><div><div dir="ltr" style="font-family:serif;font-size:16px;"><div><div dir="ltr" style="color:rgb(0,0,0);font-family:serif;font-size:16px;"><i><font size="2">-----------------------------------------------------------------------------</font></i></div><div dir="ltr" style="color:rgb(0,0,0);font-family:serif;font-size:16px;"> <div><div style="color:rgb(0,0,0);font-family:serif;font-size:16px;"><div dir="ltr"><i><font size="2">Best regards,</font></i></div><div dir="ltr"><i><font size="2">Ehsan Taghizade</font></i></div></div></div></div></div></div></div></div></div>
</blockquote></div></div></div>
</div></div></div>
</div>
</div></div></div></blockquote></div></div></div>
</div></div></div>
</div>
</div></div></body></html>