ValueError
Python 3.9.10: /uufs/chpc.utah.edu/common/home/u0028395/software/pkg/miniconda3-py39/bin/python
Thu Mar 20 14:29:11 2025

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /uufs/chpc.utah.edu/common/home/steenburgh/public_html/hrrrqsfts/hrrrqsfts.cgi in <module>
    132     tracemag = 0.1
    133     roundoff = 1
=>  134 ax1.bar(ind,ds.qpf.values*mult,color='g')
    135 ax1.set_xlim(0,lastfhr-1)
    136 ax1.set_xticks(tickmarks)
ax1 = <AxesSubplot:>, ax1.bar = <bound method Axes.bar of <AxesSubplot:>>, ind = array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1... 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]), ds = <xarray.Dataset> Dimensions: (time: 47) Coor... mm slr_units: ratio(qpf/qsf), ds.qpf = <xarray.DataArray 'qpf' (time: 47)> array([0.000...standard_name: unknown, ds.qpf.values = array([0.000e+00, 0.000e+00, 0.000e+00, 0.000e+0...e+00, 1.370e-01, 2.800e-02], dtype=float32), mult = 0.0393701, color undefined
 /uufs/chpc.utah.edu/common/home/u0028395/software/pkg/miniconda3-py39/lib/python3.9/site-packages/matplotlib/__init__.py in inner(ax=<AxesSubplot:>, data=None, *args=(array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1... 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]), array([0.0000000e+00, 0.0000000e+00, 0.0000000e+...02, 5.3937035e-03, 1.1023629e-03], dtype=float32)), **kwargs={'color': 'g'})
   1410     def inner(ax, *args, data=None, **kwargs):
   1411         if data is None:
=> 1412             return func(ax, *map(sanitize_sequence, args), **kwargs)
   1413 
   1414         bound = new_sig.bind(ax, *args, **kwargs)
func = <function Axes.bar>, ax = <AxesSubplot:>, builtin map = <class 'map'>, global sanitize_sequence = <function sanitize_sequence>, args = (array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1... 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]), array([0.0000000e+00, 0.0000000e+00, 0.0000000e+...02, 5.3937035e-03, 1.1023629e-03], dtype=float32)), kwargs = {'color': 'g'}
 /uufs/chpc.utah.edu/common/home/u0028395/software/pkg/miniconda3-py39/lib/python3.9/site-packages/matplotlib/axes/_axes.py in bar(self=<AxesSubplot:>, x=array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1... 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]), height=[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...], width=0.8, bottom=None, align='center', **kwargs={})
   2340                 yerr = self._convert_dx(yerr, y0, y, self.convert_yunits)
   2341 
=> 2342         x, height, width, y, linewidth, hatch = np.broadcast_arrays(
=> 2343             # Make args iterable too.
=> 2344             np.atleast_1d(x), height, width, y, linewidth, hatch)
x = array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1... 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]), height = [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...], width = 0.8, y = array(0), linewidth = None, hatch = None, global np = <module 'numpy' from '/uufs/chpc.utah.edu/common...9/lib/python3.9/site-packages/numpy/__init__.py'>, np.broadcast_arrays = <function broadcast_arrays>, np.atleast_1d = <function atleast_1d>
 /uufs/chpc.utah.edu/common/home/steenburgh/public_html/hrrrqsfts/<__array_function__ internals> in broadcast_arrays(*args=(array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1... 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]), [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...], 0.8, array(0), None, None), **kwargs={})
 /uufs/chpc.utah.edu/common/home/u0028395/software/pkg/miniconda3-py39/lib/python3.9/site-packages/numpy/lib/stride_tricks.py in broadcast_arrays(subok=False, *args=[array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1... 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]), array([0.00000000e+00, 0.00000000e+00, 0.0000000... 4.06299420e-02, 5.39370347e-03, 1.10236288e-03]), array(0.8), array(0), array(None, dtype=object), array(None, dtype=object)])
    537     args = [np.array(_m, copy=False, subok=subok) for _m in args]
    538 
=>  539     shape = _broadcast_shape(*args)
    540 
    541     if all(array.shape == shape for array in args):
shape undefined, global _broadcast_shape = <function _broadcast_shape>, args = [array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1... 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]), array([0.00000000e+00, 0.00000000e+00, 0.0000000... 4.06299420e-02, 5.39370347e-03, 1.10236288e-03]), array(0.8), array(0), array(None, dtype=object), array(None, dtype=object)]
 /uufs/chpc.utah.edu/common/home/u0028395/software/pkg/miniconda3-py39/lib/python3.9/site-packages/numpy/lib/stride_tricks.py in _broadcast_shape(*args=(array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1... 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]), array([0.00000000e+00, 0.00000000e+00, 0.0000000... 4.06299420e-02, 5.39370347e-03, 1.10236288e-03]), array(0.8), array(0), array(None, dtype=object), array(None, dtype=object)))
    419     # use the old-iterator because np.nditer does not handle size 0 arrays
    420     # consistently
=>  421     b = np.broadcast(*args[:32])
    422     # unfortunately, it cannot handle 32 or more arguments directly
    423     for pos in range(32, len(args), 31):
b undefined, global np = <module 'numpy' from '/uufs/chpc.utah.edu/common...9/lib/python3.9/site-packages/numpy/__init__.py'>, np.broadcast = <class 'numpy.broadcast'>, args = (array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1... 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]), array([0.00000000e+00, 0.00000000e+00, 0.0000000... 4.06299420e-02, 5.39370347e-03, 1.10236288e-03]), array(0.8), array(0), array(None, dtype=object), array(None, dtype=object))

ValueError: shape mismatch: objects cannot be broadcast to a single shape. Mismatch is between arg 0 with shape (48,) and arg 1 with shape (47,).
      args = ('shape mismatch: objects cannot be broadcast to a...rg 0 with shape (48,) and arg 1 with shape (47,).',)
      with_traceback = <built-in method with_traceback of ValueError object>