[ncl-talk] Issue with shapefile highways showing up on map

Andrew Kren - NOAA Federal andrew.kren at noaa.gov
Sun Aug 20 15:29:28 MDT 2023


Hi there,

For some reason I am running into issues with my highways not showing up
when trying to plot them. As a context, we moved the scripts to a new
computer. The old computer has the same code and it worked fine. Now when
we installed NCL on the new machine, the script runs but does not plot the
polylines.

I have been using gsn_add_shapefile_polylines_subset to plot a select
number of highways. I verified that the function is reading correctly, and
there are no error messages showing up when running NCL. I am at a loss for
what could be going on. Here is a snippet of my code where I plot the
highways:

 if (plot_highways.eq."Yes".or.plot_highways.eq."yes") then
      ; add highways
      ;---Section to add polylines to map.
      plres_high             = True           ; resource list for polylines
      colors_hwy = highway_colors
      ;plres at gsLineColor = "(/0.66, 0.66, 0.66/)"
       plres at gsEdgesOn = True
       plres at gsFillColor = "transparent"
       plres at gsFillOpacityF = 0.0
      plres_high at gsLineThicknessF = 2.0
      highways = highway_names
      poly_high =
gsn_add_shapefile_polylines_subset(wks,plot,SHAPE_DIR+shapefile_file,shapefile_descriptor,highways,colors_hwy,plres_high)
      end if

Could this be a path issue with where NCL was installed? I can't imagine it
would be since it runs fine. Much appreciated for any help!

-- 

Andrew Kren
Meteorologist
NOAA's National Weather Service
Raleigh Forecast Office
1005 Capability Drive, Suite 300
Raleigh, North Carolina 27606
voice: 919-326-1035
mailto: andrew.kren at noaa.govhttp://www.weather.gov/rah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20230820/d9b602c5/attachment.htm>


More information about the ncl-talk mailing list