In many EMHD calculations, see for example our previous video • Electric field intensity and Electric fiel... , we can use pretty big domain for accurate calculations. This domain sometimes is too large for further analysis and we need to reduce it’s resolution. So we need to reduce domain resolution (task is very similar to reducing image resolution but in multidimensional space). To do this we actually need to downsize N-dimensional NiumPy array.
In this video I will explain how to do it. You need to understand basic work with reshaping of the NumPy array.
Read more about this code here: http://mycoding.uk/a/how_to_reduce_si...
Video content:
0:00 – Introduction
0:05 – Generating domains for downsizing
0:34 – What downsizing of NumPy array mean
1:22 – Downsizing 1D-dimension NumPy array
1:40 – Downsizing 2D-dimension NumPy array
2:21 – Downsizing 2D-dimension NumPy array, second example
3:04 – Downsizing in general case
4:03 – Making function for downsizing NumPy array
4:45 – Improving function for NumPy downsizing
#pythoncoding #numpy #resizing
On this page of the site you can watch the video online Reducing domain resolution. Downsize N-dimensional NumPy array with a duration of hours minute second in good quality, which was uploaded by the user Pythonika 02 October 2022, share the link with friends and acquaintances, this video has already been watched 217 times on youtube and it was liked by 7 viewers. Enjoy your viewing!