output=np.column_stack((
L1.values.ravel(),
L2.values.ravel(),
L3.values.ravel(),
L8.values.ravel(),
L9.values.ravel(),
L10.values.ravel(),
L11.values.ravel(),
WCSFC,
WCUPPER,
TCSFC,
DCSFC,
TCUPPER,
Tornado,
L1.latlons()[0].ravel(),
L1.latlons()[1].ravel()))
output = np.concatenate(map(pointInBox, output), output, axis=1)
np.savetxt(f, output, fmt="%f", delimiter=',')
f.close()
Returned:
return _nx.concatenate(arrays, 1)
ValueError: all the input array dimensions except for the concatenation axis must match exactly
You are stacking 1D arrays as columns to make a 2D array. So, all of the arrays passed to
concatenatemust have shape(n, ), where the value ofnmust be the same for all your arguments. Clearly, in your case this does not happen. Find which argument(s) doesn't fit and remove it.