I have a 2d array (480*640) sliced from an HDF5 file, how can I convert it into a 1d array using NumPy?
Use the reshape function. See http://docs.scipy.org/doc/numpy/reference/generated/numpy.reshape.html for examples.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With