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
Sur cette page du site, vous pouvez voir la vidéo en ligne Reducing domain resolution. Downsize N-dimensional NumPy array durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Pythonika 02 octobre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 217 fois et il a aimé 7 téléspectateurs. Bon visionnage!