NCAR / VAPOR

VAPOR is the Visualization and Analysis Platform for Ocean, Atmosphere, and Solar Researchers
https://www.vapor.ucar.edu/
Other
176 stars 49 forks source link

2D slices BOV #3229

Open shaomeng opened 1 year ago

shaomeng commented 1 year ago

I'm not sure if VAPOR is supposed to support 2D slice BOV or not. If not, we can reject this bug report.

However, if VAPOR is supposed to support 2D BOV slices, then the follow BOV file seems to trigger error.

--> BOV file:

DATA_FILE: pressure_slice.d64
DATA_SIZE: 64 64
DATA_FORMAT: DOUBLE
VARIABLE: pressure
DATA_ENDIAN: LITTLE
CENTERING: NODAL
BRICK_ORIGIN: 0. 0. 
BRICK_SIZE: 1024. 1024.

--> Error message:

Failed to initialize data importer
Failure reading .bov file
Error parsing BOV file /Users/shaomeng/Git/SPERR/utilities/slice.bov
Failure reading BOV token: DATA_SIZE
------------------
Vapor 3.6.1.7ba9af21e
OS: Mac OS X 12.6.0
sgpearse commented 1 year ago

My recollection is that we've talked about this before, and we're trying to steer towards all 3D grids. The trouble is how we define the missing coordinate that projects 2D grids into 3D space.

IE - It requires a lot of assumptions to define a third dimension on 2D grids. Maybe we can slap a Z axis on them in most cases, but there are a lot of edge cases when doing that.

shaomeng commented 1 year ago

The following message is reported while setting z dimension to be 1.

Failure to open data set of type "bov" Failed to initialize data importer Failure reading .bov file Validating BOV tokens failed DATA_SIZE must have all dimensions > 1

shaomeng commented 2 months ago

VAPOR still does not support a 2D slice with the 3rd dimension specified as 1.