Yann Büchau :python: on Nostr: Big brain 🧠#Python #dataAnalysis move right there: Storing a 2D vector field ...
Big brain 🧠#Python #dataAnalysis move right there:
Storing a 2D vector field (e.g. wind vector) as a #numpy array of *complex* numbers, so all the shenanigans as interpolation et al. just work directly on the vectors and no individual handling of the vector components is necessary. 👌
(Code in the image description).
#meteorology #PhDLife
Published at
2024-10-29 08:31:37Event JSON
{
"id": "873f09f17acca094d384b643ede4d7648d0d2d1480fb7e7e03ed50b06d3ba489",
"pubkey": "0abc897a05eca0849f658dc45fb983e46041d357150b09df857131e7a7552848",
"created_at": 1730190697,
"kind": 1,
"tags": [
[
"t",
"python"
],
[
"t",
"dataanalysis"
],
[
"t",
"numpy"
],
[
"t",
"meteorology"
],
[
"t",
"phdlife"
],
[
"proxy",
"https://fosstodon.org/users/nobodyinperson/statuses/113389777573693615",
"activitypub"
]
],
"content": "Big brain 🧠#Python #dataAnalysis move right there:\n\nStoring a 2D vector field (e.g. wind vector) as a #numpy array of *complex* numbers, so all the shenanigans as interpolation et al. just work directly on the vectors and no individual handling of the vector components is necessary. 👌\n\n(Code in the image description).\n\n#meteorology #PhDLife\n\nhttps://cdn.fosstodon.org/media_attachments/files/113/389/757/628/613/927/original/7a61c0197236c5bd.png",
"sig": "c6385800c84ee3a09d9f9ec7e8dc4f037d5e414381dcd5a986c3b8e2ca90b7166fa9fe3203f498dbd605ed6e9f412dd585db49fb5754a3c17ed7ac8310169901"
}