Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error using plotting_map #4

Open
pjmaechling opened this issue Mar 7, 2022 · 0 comments
Open

error using plotting_map #4

pjmaechling opened this issue Mar 7, 2022 · 0 comments

Comments

@pjmaechling
Copy link
Collaborator

pjmaechling commented Mar 7, 2022

The list below show's a couple of different errors, and one plot that works. I cannot determine why one plot works and the others don't.

(ucvmPlotting) [maechlin@discovery1 ucvm_plotting]$ ./plot_z25_map.py -b 34.16,-118.54 -u 34.47,-118.35 -s 0.01 -c cvmsi -a d -o cvmsi_z25.png
Using parameters:

lat1 = 34.16
lat2 = 34.47
color = d
spacing = 0.01
outfile = cvmsi_z25.png
cvm = cvmsi
lon1 = -118.54
lon2 = -118.35

Retrieving data. Please wait...
Traceback (most recent call last):
File "./plot_z25_map.py", line 160, in
b.plot()
File "/project/scec_608/maechlin/anaconda3/envs/ucvmPlotting/lib/python2.7/site-packages/pycvm/basin_slice.py", line 226, in plot
BasinSlice.plot(self)
File "/project/scec_608/maechlin/anaconda3/envs/ucvmPlotting/lib/python2.7/site-packages/pycvm/basin_slice.py", line 128, in plot
HorizontalSlice.plot(self, horizontal_label)
File "/project/scec_608/maechlin/anaconda3/envs/ucvmPlotting/lib/python2.7/site-packages/pycvm/horizontal_slice.py", line 361, in plot
m.drawcoastlines()
File "/project/scec_608/maechlin/anaconda3/envs/ucvmPlotting/lib/python2.7/site-packages/mpl_toolkits/basemap/init.py", line 1851, in drawcoastlines
coastlines = LineCollection(self.coastsegs,antialiaseds=(antialiased,))
File "/project/scec_608/maechlin/anaconda3/envs/ucvmPlotting/lib/python2.7/site-packages/matplotlib/collections.py", line 1254, in init
self.set_segments(segments)
File "/project/scec_608/maechlin/anaconda3/envs/ucvmPlotting/lib/python2.7/site-packages/matplotlib/collections.py", line 1269, in set_segments
self._paths = [mpath.Path(_seg) for _seg in _segments]
File "/project/scec_608/maechlin/anaconda3/envs/ucvmPlotting/lib/python2.7/site-packages/matplotlib/path.py", line 135, in init
"'vertices' must be a 2D list or array with shape Nx2")
ValueError: 'vertices' must be a 2D list or array with shape Nx2

(ucvmPlotting) [maechlin@discovery1 ucvm_plotting]$ ./plot_z25_map.py -b 30.5,-126.0 -u 42.5,-112.5 -s 0.2 -a s -c cvmsi -o vs30_cs173_map.png
Using parameters:

lat1 = 30.5
lat2 = 42.5
color = s
spacing = 0.2
outfile = vs30_cs173_map.png
cvm = cvmsi
lon1 = -126.0
lon2 = -112.5

Retrieving data. Please wait...
(ucvmPlotting) [maechlin@discovery1 ucvm_plotting]$ ./plot_z25_map.py -b 34.16,-118.54 -u 34.47,-118.35 -s 0.2 -a s -c cvmsi -o z25_cvmsi_map.png
Using parameters:

lat1 = 34.16
lat2 = 34.47
color = s
spacing = 0.2
outfile = z25_cvmsi_map.png
cvm = cvmsi
lon1 = -118.54
lon2 = -118.35

Retrieving data. Please wait...
Traceback (most recent call last):
File "./plot_z25_map.py", line 160, in
b.plot()
File "/project/scec_608/maechlin/anaconda3/envs/ucvmPlotting/lib/python2.7/site-packages/pycvm/basin_slice.py", line 226, in plot
BasinSlice.plot(self)
File "/project/scec_608/maechlin/anaconda3/envs/ucvmPlotting/lib/python2.7/site-packages/pycvm/basin_slice.py", line 128, in plot
HorizontalSlice.plot(self, horizontal_label)
File "/project/scec_608/maechlin/anaconda3/envs/ucvmPlotting/lib/python2.7/site-packages/pycvm/horizontal_slice.py", line 352, in plot
t = m.transform_scalar(newdatapoints, lons, lats, len(lons), len(lats))
File "/project/scec_608/maechlin/anaconda3/envs/ucvmPlotting/lib/python2.7/site-packages/mpl_toolkits/basemap/init.py", line 2972, in transform_scalar
if min(delon) < 0. or min(delat) < 0.:
ValueError: min() arg is an empty sequence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant