cpgr / em2ex

Converts reservoir models to Exodus II format
Other
8 stars 4 forks source link

Reversed depth after model conversion #36

Closed leoforeal closed 1 year ago

leoforeal commented 1 year ago

Hallo!

While using this code I successfully converted a Petel/Eclipse (.grdecl files) to Exodus II (.e), but as I opened the model with Paraview, I realized the sign of z-coordinate is automatically reversed to positive values. for example: x: 100 y: 100 z: -100 in Petrel model becomes x: 100 y: 100 z: +100 after the conversion.

Does anyone know what could be the reason behind this or more specifically how i could retain the negative z value after the conversion?

cpgr commented 1 year ago

I'm on holiday without a computer so can't try it,but I think of you pass --flip when you run it will flip the sign of the Z coordinates

leoforeal commented 1 year ago

@cpgr Hey! you're definitely right, when flip_z=True then the z-coodinate becomes the same as it is in Petrel. I also realized how simple the problem actually is. Thanks so much anyways!