Visualization with NaN values

2 posts / 0 new
Last post
liqi1026
Visualization with NaN values
Hi, I purposely introduce some NaN values into my quantities and would like to know 1. if I use raw2vdf, will it be properly populated into my vdf file with the grid structured specified by the user? 2. Can NaN values be visualized properly in Vapor? i.e. in matlab if a value is NaN, it shows up as white color in making videos. Thank you so much for your help. I'm just starting with Vapor. Sorry for my naive questions. If would be great to direct me to the relevant resources for learning as well.
clyne

Hi,


VAPOR has support for "missing values": samples on the grid for which no data are defined. However, they are not supported by the raw2vdf command. Your best bet is to save your data in NetCDF and use the ncdfvdfcreate and ncdf2vdf commands with the "-missattr" option. You will have to choose some valid (but out of range data value), and not use NaNs