Re: Matlab Export Interpolates Into Masked Region

159 views
Skip to first unread message
Message has been deleted

William Thielicke

unread,
Mar 6, 2021, 7:01:02 AM3/6/21
to PIVlab
Hi Chris, yes that is done on purpose. You can use the typevector variable to remove data that are masked or interpolated.


Christopher Masafu schrieb am Samstag, 6. März 2021 um 09:55:18 UTC+1:
Dear Dr William,

Thanks for this excellent program, truly helpful. 

I have a problem that I would apreciate any advice on. I am tryint to plot my velocity magnitude vectors in GIS. So I wrote a short script that allows me to post-process my results in Matlab, then export to an ascii file that I use in GIS.
However, from Mtalab, it seems my vecloity magnitude surface is interpolated even outside of my masked area. Any help with how to effectively blank this area outside my ROI?
Thanks. 

Chris 
Message has been deleted
Message has been deleted

William Thielicke

unread,
Mar 9, 2021, 7:36:46 AM3/9/21
to PIVlab
Typevector is 0 for masked vector, 1 for regular vector, 2 for filtered vector
So you could do something like Velocity(typevector==0) = NaN

typevector_original is directly after the analysis
typevector_filtered is after you applied vector validation, so this is the one you should use.

Christopher Masafu schrieb am Dienstag, 9. März 2021 um 08:46:10 UTC+1:
Hi William.

There are two 'typevectors', filtered and original - really grateful if you could just tell us the difference between the two and which to remove from my interpolated surface. 

Thanks very much. 

Chris 

Reply all
Reply to author
Forward
Message has been deleted
0 new messages