xtgeo 4.14.0__cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of xtgeo might be problematic. Click here for more details.
- cxtgeo.py +558 -0
- cxtgeoPYTHON_wrap.c +19537 -0
- xtgeo/__init__.py +248 -0
- xtgeo/_cxtgeo.cpython-311-x86_64-linux-gnu.so +0 -0
- xtgeo/_internal.cpython-311-x86_64-linux-gnu.so +0 -0
- xtgeo/common/__init__.py +19 -0
- xtgeo/common/_angles.py +29 -0
- xtgeo/common/_xyz_enum.py +50 -0
- xtgeo/common/calc.py +396 -0
- xtgeo/common/constants.py +30 -0
- xtgeo/common/exceptions.py +42 -0
- xtgeo/common/log.py +93 -0
- xtgeo/common/sys.py +166 -0
- xtgeo/common/types.py +18 -0
- xtgeo/common/version.py +34 -0
- xtgeo/common/xtgeo_dialog.py +604 -0
- xtgeo/cube/__init__.py +9 -0
- xtgeo/cube/_cube_export.py +214 -0
- xtgeo/cube/_cube_import.py +532 -0
- xtgeo/cube/_cube_roxapi.py +180 -0
- xtgeo/cube/_cube_utils.py +287 -0
- xtgeo/cube/_cube_window_attributes.py +273 -0
- xtgeo/cube/cube1.py +1023 -0
- xtgeo/grid3d/__init__.py +15 -0
- xtgeo/grid3d/_ecl_grid.py +778 -0
- xtgeo/grid3d/_ecl_inte_head.py +152 -0
- xtgeo/grid3d/_ecl_logi_head.py +71 -0
- xtgeo/grid3d/_ecl_output_file.py +81 -0
- xtgeo/grid3d/_egrid.py +1004 -0
- xtgeo/grid3d/_find_gridprop_in_eclrun.py +625 -0
- xtgeo/grid3d/_grdecl_format.py +309 -0
- xtgeo/grid3d/_grdecl_grid.py +400 -0
- xtgeo/grid3d/_grid3d.py +29 -0
- xtgeo/grid3d/_grid3d_fence.py +284 -0
- xtgeo/grid3d/_grid3d_utils.py +228 -0
- xtgeo/grid3d/_grid_boundary.py +76 -0
- xtgeo/grid3d/_grid_etc1.py +1683 -0
- xtgeo/grid3d/_grid_export.py +222 -0
- xtgeo/grid3d/_grid_hybrid.py +50 -0
- xtgeo/grid3d/_grid_import.py +79 -0
- xtgeo/grid3d/_grid_import_ecl.py +101 -0
- xtgeo/grid3d/_grid_import_roff.py +135 -0
- xtgeo/grid3d/_grid_import_xtgcpgeom.py +375 -0
- xtgeo/grid3d/_grid_refine.py +258 -0
- xtgeo/grid3d/_grid_roxapi.py +292 -0
- xtgeo/grid3d/_grid_translate_coords.py +154 -0
- xtgeo/grid3d/_grid_wellzone.py +165 -0
- xtgeo/grid3d/_gridprop_export.py +202 -0
- xtgeo/grid3d/_gridprop_import_eclrun.py +164 -0
- xtgeo/grid3d/_gridprop_import_grdecl.py +130 -0
- xtgeo/grid3d/_gridprop_import_roff.py +52 -0
- xtgeo/grid3d/_gridprop_import_xtgcpprop.py +168 -0
- xtgeo/grid3d/_gridprop_lowlevel.py +171 -0
- xtgeo/grid3d/_gridprop_op1.py +272 -0
- xtgeo/grid3d/_gridprop_roxapi.py +301 -0
- xtgeo/grid3d/_gridprop_value_init.py +140 -0
- xtgeo/grid3d/_gridprops_import_eclrun.py +344 -0
- xtgeo/grid3d/_gridprops_import_roff.py +83 -0
- xtgeo/grid3d/_roff_grid.py +470 -0
- xtgeo/grid3d/_roff_parameter.py +303 -0
- xtgeo/grid3d/grid.py +3010 -0
- xtgeo/grid3d/grid_properties.py +699 -0
- xtgeo/grid3d/grid_property.py +1313 -0
- xtgeo/grid3d/types.py +15 -0
- xtgeo/include/eigen3/Eigen/Cholesky +45 -0
- xtgeo/include/eigen3/Eigen/CholmodSupport +48 -0
- xtgeo/include/eigen3/Eigen/Core +384 -0
- xtgeo/include/eigen3/Eigen/Dense +7 -0
- xtgeo/include/eigen3/Eigen/Eigen +2 -0
- xtgeo/include/eigen3/Eigen/Eigenvalues +60 -0
- xtgeo/include/eigen3/Eigen/Geometry +59 -0
- xtgeo/include/eigen3/Eigen/Householder +29 -0
- xtgeo/include/eigen3/Eigen/IterativeLinearSolvers +48 -0
- xtgeo/include/eigen3/Eigen/Jacobi +32 -0
- xtgeo/include/eigen3/Eigen/KLUSupport +41 -0
- xtgeo/include/eigen3/Eigen/LU +47 -0
- xtgeo/include/eigen3/Eigen/MetisSupport +35 -0
- xtgeo/include/eigen3/Eigen/OrderingMethods +70 -0
- xtgeo/include/eigen3/Eigen/PaStiXSupport +49 -0
- xtgeo/include/eigen3/Eigen/PardisoSupport +35 -0
- xtgeo/include/eigen3/Eigen/QR +50 -0
- xtgeo/include/eigen3/Eigen/QtAlignedMalloc +39 -0
- xtgeo/include/eigen3/Eigen/SPQRSupport +34 -0
- xtgeo/include/eigen3/Eigen/SVD +50 -0
- xtgeo/include/eigen3/Eigen/Sparse +34 -0
- xtgeo/include/eigen3/Eigen/SparseCholesky +37 -0
- xtgeo/include/eigen3/Eigen/SparseCore +69 -0
- xtgeo/include/eigen3/Eigen/SparseLU +50 -0
- xtgeo/include/eigen3/Eigen/SparseQR +36 -0
- xtgeo/include/eigen3/Eigen/StdDeque +27 -0
- xtgeo/include/eigen3/Eigen/StdList +26 -0
- xtgeo/include/eigen3/Eigen/StdVector +27 -0
- xtgeo/include/eigen3/Eigen/SuperLUSupport +64 -0
- xtgeo/include/eigen3/Eigen/UmfPackSupport +40 -0
- xtgeo/include/eigen3/Eigen/src/Cholesky/LDLT.h +688 -0
- xtgeo/include/eigen3/Eigen/src/Cholesky/LLT.h +558 -0
- xtgeo/include/eigen3/Eigen/src/Cholesky/LLT_LAPACKE.h +99 -0
- xtgeo/include/eigen3/Eigen/src/CholmodSupport/CholmodSupport.h +682 -0
- xtgeo/include/eigen3/Eigen/src/Core/ArithmeticSequence.h +413 -0
- xtgeo/include/eigen3/Eigen/src/Core/Array.h +417 -0
- xtgeo/include/eigen3/Eigen/src/Core/ArrayBase.h +226 -0
- xtgeo/include/eigen3/Eigen/src/Core/ArrayWrapper.h +209 -0
- xtgeo/include/eigen3/Eigen/src/Core/Assign.h +90 -0
- xtgeo/include/eigen3/Eigen/src/Core/AssignEvaluator.h +1010 -0
- xtgeo/include/eigen3/Eigen/src/Core/Assign_MKL.h +178 -0
- xtgeo/include/eigen3/Eigen/src/Core/BandMatrix.h +353 -0
- xtgeo/include/eigen3/Eigen/src/Core/Block.h +448 -0
- xtgeo/include/eigen3/Eigen/src/Core/BooleanRedux.h +162 -0
- xtgeo/include/eigen3/Eigen/src/Core/CommaInitializer.h +164 -0
- xtgeo/include/eigen3/Eigen/src/Core/ConditionEstimator.h +175 -0
- xtgeo/include/eigen3/Eigen/src/Core/CoreEvaluators.h +1741 -0
- xtgeo/include/eigen3/Eigen/src/Core/CoreIterators.h +132 -0
- xtgeo/include/eigen3/Eigen/src/Core/CwiseBinaryOp.h +183 -0
- xtgeo/include/eigen3/Eigen/src/Core/CwiseNullaryOp.h +1001 -0
- xtgeo/include/eigen3/Eigen/src/Core/CwiseTernaryOp.h +197 -0
- xtgeo/include/eigen3/Eigen/src/Core/CwiseUnaryOp.h +103 -0
- xtgeo/include/eigen3/Eigen/src/Core/CwiseUnaryView.h +132 -0
- xtgeo/include/eigen3/Eigen/src/Core/DenseBase.h +701 -0
- xtgeo/include/eigen3/Eigen/src/Core/DenseCoeffsBase.h +685 -0
- xtgeo/include/eigen3/Eigen/src/Core/DenseStorage.h +652 -0
- xtgeo/include/eigen3/Eigen/src/Core/Diagonal.h +258 -0
- xtgeo/include/eigen3/Eigen/src/Core/DiagonalMatrix.h +391 -0
- xtgeo/include/eigen3/Eigen/src/Core/DiagonalProduct.h +28 -0
- xtgeo/include/eigen3/Eigen/src/Core/Dot.h +318 -0
- xtgeo/include/eigen3/Eigen/src/Core/EigenBase.h +160 -0
- xtgeo/include/eigen3/Eigen/src/Core/ForceAlignedAccess.h +150 -0
- xtgeo/include/eigen3/Eigen/src/Core/Fuzzy.h +155 -0
- xtgeo/include/eigen3/Eigen/src/Core/GeneralProduct.h +465 -0
- xtgeo/include/eigen3/Eigen/src/Core/GenericPacketMath.h +1040 -0
- xtgeo/include/eigen3/Eigen/src/Core/GlobalFunctions.h +194 -0
- xtgeo/include/eigen3/Eigen/src/Core/IO.h +258 -0
- xtgeo/include/eigen3/Eigen/src/Core/IndexedView.h +237 -0
- xtgeo/include/eigen3/Eigen/src/Core/Inverse.h +117 -0
- xtgeo/include/eigen3/Eigen/src/Core/Map.h +171 -0
- xtgeo/include/eigen3/Eigen/src/Core/MapBase.h +310 -0
- xtgeo/include/eigen3/Eigen/src/Core/MathFunctions.h +2057 -0
- xtgeo/include/eigen3/Eigen/src/Core/MathFunctionsImpl.h +200 -0
- xtgeo/include/eigen3/Eigen/src/Core/Matrix.h +565 -0
- xtgeo/include/eigen3/Eigen/src/Core/MatrixBase.h +547 -0
- xtgeo/include/eigen3/Eigen/src/Core/NestByValue.h +85 -0
- xtgeo/include/eigen3/Eigen/src/Core/NoAlias.h +109 -0
- xtgeo/include/eigen3/Eigen/src/Core/NumTraits.h +335 -0
- xtgeo/include/eigen3/Eigen/src/Core/PartialReduxEvaluator.h +232 -0
- xtgeo/include/eigen3/Eigen/src/Core/PermutationMatrix.h +605 -0
- xtgeo/include/eigen3/Eigen/src/Core/PlainObjectBase.h +1128 -0
- xtgeo/include/eigen3/Eigen/src/Core/Product.h +191 -0
- xtgeo/include/eigen3/Eigen/src/Core/ProductEvaluators.h +1179 -0
- xtgeo/include/eigen3/Eigen/src/Core/Random.h +218 -0
- xtgeo/include/eigen3/Eigen/src/Core/Redux.h +515 -0
- xtgeo/include/eigen3/Eigen/src/Core/Ref.h +381 -0
- xtgeo/include/eigen3/Eigen/src/Core/Replicate.h +142 -0
- xtgeo/include/eigen3/Eigen/src/Core/Reshaped.h +454 -0
- xtgeo/include/eigen3/Eigen/src/Core/ReturnByValue.h +119 -0
- xtgeo/include/eigen3/Eigen/src/Core/Reverse.h +217 -0
- xtgeo/include/eigen3/Eigen/src/Core/Select.h +164 -0
- xtgeo/include/eigen3/Eigen/src/Core/SelfAdjointView.h +365 -0
- xtgeo/include/eigen3/Eigen/src/Core/SelfCwiseBinaryOp.h +47 -0
- xtgeo/include/eigen3/Eigen/src/Core/Solve.h +188 -0
- xtgeo/include/eigen3/Eigen/src/Core/SolveTriangular.h +235 -0
- xtgeo/include/eigen3/Eigen/src/Core/SolverBase.h +168 -0
- xtgeo/include/eigen3/Eigen/src/Core/StableNorm.h +251 -0
- xtgeo/include/eigen3/Eigen/src/Core/StlIterators.h +463 -0
- xtgeo/include/eigen3/Eigen/src/Core/Stride.h +116 -0
- xtgeo/include/eigen3/Eigen/src/Core/Swap.h +68 -0
- xtgeo/include/eigen3/Eigen/src/Core/Transpose.h +464 -0
- xtgeo/include/eigen3/Eigen/src/Core/Transpositions.h +386 -0
- xtgeo/include/eigen3/Eigen/src/Core/TriangularMatrix.h +1001 -0
- xtgeo/include/eigen3/Eigen/src/Core/VectorBlock.h +96 -0
- xtgeo/include/eigen3/Eigen/src/Core/VectorwiseOp.h +784 -0
- xtgeo/include/eigen3/Eigen/src/Core/Visitor.h +381 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/Complex.h +372 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/MathFunctions.h +228 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/PacketMath.h +1574 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AVX/TypeCasting.h +115 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/Complex.h +422 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/MathFunctions.h +362 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/PacketMath.h +2303 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AVX512/TypeCasting.h +89 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/Complex.h +417 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MathFunctions.h +90 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProduct.h +2937 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +221 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h +629 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/AltiVec/PacketMath.h +2711 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/CUDA/Complex.h +258 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/Default/BFloat16.h +700 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/Default/ConjHelper.h +117 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h +1649 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/Default/GenericPacketMathFunctionsFwd.h +110 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/Default/Half.h +942 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/Default/Settings.h +49 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/Default/TypeCasting.h +120 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/MathFunctions.h +103 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/PacketMath.h +1685 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/GPU/TypeCasting.h +80 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/HIP/hcc/math_constants.h +23 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/Complex.h +648 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/MathFunctions.h +387 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/MSA/PacketMath.h +1233 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/Complex.h +584 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/GeneralBlockPanelKernel.h +183 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/MathFunctions.h +75 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/PacketMath.h +4587 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/NEON/TypeCasting.h +1419 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/Complex.h +351 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/MathFunctions.h +199 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/PacketMath.h +1505 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SSE/TypeCasting.h +142 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/MathFunctions.h +44 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/PacketMath.h +752 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SVE/TypeCasting.h +49 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/InteropHeaders.h +232 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/MathFunctions.h +301 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/PacketMath.h +670 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h +694 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/SYCL/TypeCasting.h +85 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/Complex.h +426 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/MathFunctions.h +233 -0
- xtgeo/include/eigen3/Eigen/src/Core/arch/ZVector/PacketMath.h +1060 -0
- xtgeo/include/eigen3/Eigen/src/Core/functors/AssignmentFunctors.h +177 -0
- xtgeo/include/eigen3/Eigen/src/Core/functors/BinaryFunctors.h +541 -0
- xtgeo/include/eigen3/Eigen/src/Core/functors/NullaryFunctors.h +189 -0
- xtgeo/include/eigen3/Eigen/src/Core/functors/StlFunctors.h +166 -0
- xtgeo/include/eigen3/Eigen/src/Core/functors/TernaryFunctors.h +25 -0
- xtgeo/include/eigen3/Eigen/src/Core/functors/UnaryFunctors.h +1131 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h +2645 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix.h +517 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular.h +317 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrixTriangular_BLAS.h +145 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixMatrix_BLAS.h +124 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector.h +518 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/GeneralMatrixVector_BLAS.h +136 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/Parallelizer.h +180 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix.h +544 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixMatrix_BLAS.h +295 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector.h +262 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointMatrixVector_BLAS.h +118 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointProduct.h +133 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/SelfadjointRank2Update.h +94 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix.h +472 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixMatrix_BLAS.h +317 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector.h +350 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/TriangularMatrixVector_BLAS.h +255 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix.h +337 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverMatrix_BLAS.h +167 -0
- xtgeo/include/eigen3/Eigen/src/Core/products/TriangularSolverVector.h +148 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/BlasUtil.h +583 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h +512 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/Constants.h +563 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/DisableStupidWarnings.h +106 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/ForwardDeclarations.h +322 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/IndexedViewHelper.h +186 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/IntegralConstant.h +272 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/MKL_support.h +137 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/Macros.h +1464 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/Memory.h +1163 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/Meta.h +812 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/NonMPL2.h +3 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h +31 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/ReshapedHelper.h +51 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/StaticAssert.h +221 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/SymbolicIndex.h +293 -0
- xtgeo/include/eigen3/Eigen/src/Core/util/XprHelper.h +856 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexEigenSolver.h +346 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur.h +462 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/ComplexSchur_LAPACKE.h +91 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/EigenSolver.h +622 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/GeneralizedEigenSolver.h +418 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/GeneralizedSelfAdjointEigenSolver.h +226 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/HessenbergDecomposition.h +374 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h +158 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealQZ.h +657 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealSchur.h +558 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/RealSchur_LAPACKE.h +77 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver.h +904 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/SelfAdjointEigenSolver_LAPACKE.h +87 -0
- xtgeo/include/eigen3/Eigen/src/Eigenvalues/Tridiagonalization.h +561 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/AlignedBox.h +486 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/AngleAxis.h +247 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/EulerAngles.h +114 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/Homogeneous.h +501 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/Hyperplane.h +282 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/OrthoMethods.h +235 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/ParametrizedLine.h +232 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/Quaternion.h +870 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/Rotation2D.h +199 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/RotationBase.h +206 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/Scaling.h +188 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/Transform.h +1563 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/Translation.h +202 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/Umeyama.h +166 -0
- xtgeo/include/eigen3/Eigen/src/Geometry/arch/Geometry_SIMD.h +168 -0
- xtgeo/include/eigen3/Eigen/src/Householder/BlockHouseholder.h +110 -0
- xtgeo/include/eigen3/Eigen/src/Householder/Householder.h +176 -0
- xtgeo/include/eigen3/Eigen/src/Householder/HouseholderSequence.h +545 -0
- xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/BasicPreconditioners.h +226 -0
- xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h +212 -0
- xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h +229 -0
- xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteCholesky.h +394 -0
- xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h +453 -0
- xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h +444 -0
- xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/LeastSquareConjugateGradient.h +198 -0
- xtgeo/include/eigen3/Eigen/src/IterativeLinearSolvers/SolveWithGuess.h +117 -0
- xtgeo/include/eigen3/Eigen/src/Jacobi/Jacobi.h +483 -0
- xtgeo/include/eigen3/Eigen/src/KLUSupport/KLUSupport.h +358 -0
- xtgeo/include/eigen3/Eigen/src/LU/Determinant.h +117 -0
- xtgeo/include/eigen3/Eigen/src/LU/FullPivLU.h +877 -0
- xtgeo/include/eigen3/Eigen/src/LU/InverseImpl.h +432 -0
- xtgeo/include/eigen3/Eigen/src/LU/PartialPivLU.h +624 -0
- xtgeo/include/eigen3/Eigen/src/LU/PartialPivLU_LAPACKE.h +83 -0
- xtgeo/include/eigen3/Eigen/src/LU/arch/InverseSize4.h +351 -0
- xtgeo/include/eigen3/Eigen/src/MetisSupport/MetisSupport.h +137 -0
- xtgeo/include/eigen3/Eigen/src/OrderingMethods/Amd.h +435 -0
- xtgeo/include/eigen3/Eigen/src/OrderingMethods/Eigen_Colamd.h +1863 -0
- xtgeo/include/eigen3/Eigen/src/OrderingMethods/Ordering.h +153 -0
- xtgeo/include/eigen3/Eigen/src/PaStiXSupport/PaStiXSupport.h +678 -0
- xtgeo/include/eigen3/Eigen/src/PardisoSupport/PardisoSupport.h +545 -0
- xtgeo/include/eigen3/Eigen/src/QR/ColPivHouseholderQR.h +674 -0
- xtgeo/include/eigen3/Eigen/src/QR/ColPivHouseholderQR_LAPACKE.h +97 -0
- xtgeo/include/eigen3/Eigen/src/QR/CompleteOrthogonalDecomposition.h +635 -0
- xtgeo/include/eigen3/Eigen/src/QR/FullPivHouseholderQR.h +713 -0
- xtgeo/include/eigen3/Eigen/src/QR/HouseholderQR.h +434 -0
- xtgeo/include/eigen3/Eigen/src/QR/HouseholderQR_LAPACKE.h +68 -0
- xtgeo/include/eigen3/Eigen/src/SPQRSupport/SuiteSparseQRSupport.h +335 -0
- xtgeo/include/eigen3/Eigen/src/SVD/BDCSVD.h +1366 -0
- xtgeo/include/eigen3/Eigen/src/SVD/JacobiSVD.h +812 -0
- xtgeo/include/eigen3/Eigen/src/SVD/JacobiSVD_LAPACKE.h +91 -0
- xtgeo/include/eigen3/Eigen/src/SVD/SVDBase.h +376 -0
- xtgeo/include/eigen3/Eigen/src/SVD/UpperBidiagonalization.h +414 -0
- xtgeo/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky.h +697 -0
- xtgeo/include/eigen3/Eigen/src/SparseCholesky/SimplicialCholesky_impl.h +174 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/AmbiVector.h +378 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/CompressedStorage.h +274 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/ConservativeSparseSparseProduct.h +352 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/MappedSparseMatrix.h +67 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseAssign.h +270 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseBlock.h +571 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseColEtree.h +206 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCompressedBase.h +370 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +722 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +150 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDenseProduct.h +342 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDiagonalProduct.h +138 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseDot.h +98 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseFuzzy.h +29 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMap.h +305 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMatrix.h +1518 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseMatrixBase.h +398 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparsePermutation.h +178 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseProduct.h +181 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseRedux.h +49 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseRef.h +397 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSelfAdjointView.h +659 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSolverBase.h +124 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +198 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseTranspose.h +92 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseTriangularView.h +189 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseUtil.h +186 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseVector.h +478 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/SparseView.h +254 -0
- xtgeo/include/eigen3/Eigen/src/SparseCore/TriangularSolver.h +315 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU.h +923 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLUImpl.h +66 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Memory.h +226 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Structs.h +110 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h +375 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_Utils.h +80 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_column_bmod.h +181 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_column_dfs.h +179 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_copy_to_ucol.h +107 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_gemm_kernel.h +280 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h +126 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_kernel_bmod.h +130 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_bmod.h +223 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_panel_dfs.h +258 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_pivotL.h +137 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_pruneL.h +136 -0
- xtgeo/include/eigen3/Eigen/src/SparseLU/SparseLU_relax_snode.h +83 -0
- xtgeo/include/eigen3/Eigen/src/SparseQR/SparseQR.h +758 -0
- xtgeo/include/eigen3/Eigen/src/StlSupport/StdDeque.h +116 -0
- xtgeo/include/eigen3/Eigen/src/StlSupport/StdList.h +106 -0
- xtgeo/include/eigen3/Eigen/src/StlSupport/StdVector.h +131 -0
- xtgeo/include/eigen3/Eigen/src/StlSupport/details.h +84 -0
- xtgeo/include/eigen3/Eigen/src/SuperLUSupport/SuperLUSupport.h +1025 -0
- xtgeo/include/eigen3/Eigen/src/UmfPackSupport/UmfPackSupport.h +642 -0
- xtgeo/include/eigen3/Eigen/src/misc/Image.h +82 -0
- xtgeo/include/eigen3/Eigen/src/misc/Kernel.h +79 -0
- xtgeo/include/eigen3/Eigen/src/misc/RealSvd2x2.h +55 -0
- xtgeo/include/eigen3/Eigen/src/misc/blas.h +440 -0
- xtgeo/include/eigen3/Eigen/src/misc/lapack.h +152 -0
- xtgeo/include/eigen3/Eigen/src/misc/lapacke.h +16292 -0
- xtgeo/include/eigen3/Eigen/src/misc/lapacke_mangling.h +17 -0
- xtgeo/include/eigen3/Eigen/src/plugins/ArrayCwiseBinaryOps.h +358 -0
- xtgeo/include/eigen3/Eigen/src/plugins/ArrayCwiseUnaryOps.h +696 -0
- xtgeo/include/eigen3/Eigen/src/plugins/BlockMethods.h +1442 -0
- xtgeo/include/eigen3/Eigen/src/plugins/CommonCwiseBinaryOps.h +115 -0
- xtgeo/include/eigen3/Eigen/src/plugins/CommonCwiseUnaryOps.h +177 -0
- xtgeo/include/eigen3/Eigen/src/plugins/IndexedViewMethods.h +262 -0
- xtgeo/include/eigen3/Eigen/src/plugins/MatrixCwiseBinaryOps.h +152 -0
- xtgeo/include/eigen3/Eigen/src/plugins/MatrixCwiseUnaryOps.h +95 -0
- xtgeo/include/eigen3/Eigen/src/plugins/ReshapedMethods.h +149 -0
- xtgeo/include/eigen3/signature_of_eigen3_matrix_library +1 -0
- xtgeo/include/eigen3/unsupported/Eigen/AdolcForward +159 -0
- xtgeo/include/eigen3/unsupported/Eigen/AlignedVector3 +234 -0
- xtgeo/include/eigen3/unsupported/Eigen/ArpackSupport +30 -0
- xtgeo/include/eigen3/unsupported/Eigen/AutoDiff +46 -0
- xtgeo/include/eigen3/unsupported/Eigen/BVH +95 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/Tensor +137 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/TensorSymmetry +42 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/ThreadPool +74 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/Tensor.h +554 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorArgMax.h +329 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h +247 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBase.h +1176 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBlock.h +1559 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +1093 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorChipping.h +518 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConcatenation.h +377 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +1023 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionBlocking.h +73 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionCuda.h +6 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h +1413 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionMapper.h +575 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionSycl.h +1650 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorContractionThreadPool.h +1679 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConversion.h +456 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolution.h +1132 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorConvolutionSycl.h +544 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCostModel.h +214 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorCustomOp.h +347 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDevice.h +137 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h +6 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceDefault.h +104 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h +389 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceSycl.h +1048 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h +409 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensionList.h +236 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDimensions.h +490 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvalTo.h +236 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorEvaluator.h +983 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +703 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorExpr.h +388 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFFT.h +669 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFixedSize.h +379 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForcedEval.h +237 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h +191 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorFunctors.h +488 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGenerator.h +302 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGlobalFunctions.h +33 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaDefines.h +99 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorGpuHipCudaUndefines.h +44 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h +79 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorImagePatch.h +603 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +738 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInflation.h +247 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorInitializer.h +82 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorIntDiv.h +263 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorLayoutSwap.h +216 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMacros.h +98 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMap.h +327 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMeta.h +311 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorMorphing.h +1102 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPadding.h +708 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorPatch.h +291 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRandom.h +322 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +998 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h +6 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionGpu.h +966 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +582 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h +454 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorReverse.h +465 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScan.h +528 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorScanSycl.h +513 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorShuffling.h +471 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStorage.h +161 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorStriding.h +346 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTrace.h +303 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorTraits.h +264 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorUInt128.h +249 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorVolumePatch.h +629 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/DynamicSymmetry.h +293 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/StaticSymmetry.h +236 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/Symmetry.h +338 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/TensorSymmetry/util/TemplateGroupTheory.h +669 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/Barrier.h +67 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/EventCount.h +249 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h +486 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/RunQueue.h +236 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadCancel.h +23 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadEnvironment.h +40 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadLocal.h +301 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadPoolInterface.h +48 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/ThreadPool/ThreadYield.h +20 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Meta.h +537 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/CXX11Workarounds.h +88 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/EmulateArray.h +261 -0
- xtgeo/include/eigen3/unsupported/Eigen/CXX11/src/util/MaxSizeVector.h +158 -0
- xtgeo/include/eigen3/unsupported/Eigen/EulerAngles +43 -0
- xtgeo/include/eigen3/unsupported/Eigen/FFT +419 -0
- xtgeo/include/eigen3/unsupported/Eigen/IterativeSolvers +51 -0
- xtgeo/include/eigen3/unsupported/Eigen/KroneckerProduct +36 -0
- xtgeo/include/eigen3/unsupported/Eigen/LevenbergMarquardt +49 -0
- xtgeo/include/eigen3/unsupported/Eigen/MPRealSupport +213 -0
- xtgeo/include/eigen3/unsupported/Eigen/MatrixFunctions +504 -0
- xtgeo/include/eigen3/unsupported/Eigen/MoreVectorization +24 -0
- xtgeo/include/eigen3/unsupported/Eigen/NonLinearOptimization +140 -0
- xtgeo/include/eigen3/unsupported/Eigen/NumericalDiff +56 -0
- xtgeo/include/eigen3/unsupported/Eigen/OpenGLSupport +322 -0
- xtgeo/include/eigen3/unsupported/Eigen/Polynomials +137 -0
- xtgeo/include/eigen3/unsupported/Eigen/Skyline +39 -0
- xtgeo/include/eigen3/unsupported/Eigen/SparseExtra +54 -0
- xtgeo/include/eigen3/unsupported/Eigen/SpecialFunctions +103 -0
- xtgeo/include/eigen3/unsupported/Eigen/Splines +35 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffJacobian.h +108 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffScalar.h +730 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/AutoDiff/AutoDiffVector.h +220 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/BVH/BVAlgorithms.h +293 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/BVH/KdBVH.h +223 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Eigenvalues/ArpackSelfAdjointEigenSolver.h +790 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerAngles.h +355 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/EulerAngles/EulerSystem.h +305 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/FFT/ei_fftw_impl.h +261 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/FFT/ei_kissfft_impl.h +449 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/ConstrainedConjGrad.h +187 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/DGMRES.h +511 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/GMRES.h +335 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IDRS.h +436 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IncompleteLU.h +90 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/IterationController.h +154 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/MINRES.h +267 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/IterativeSolvers/Scaling.h +193 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/KroneckerProduct/KroneckerTensorProduct.h +305 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMcovar.h +84 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMonestep.h +202 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMpar.h +160 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LMqrsolv.h +188 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/LevenbergMarquardt/LevenbergMarquardt.h +396 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +441 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +569 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixLogarithm.h +373 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixPower.h +705 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/MatrixSquareRoot.h +368 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/MatrixFunctions/StemFunction.h +117 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/MoreVectorization/MathFunctions.h +95 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/HybridNonLinearSolver.h +601 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/LevenbergMarquardt.h +657 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/chkder.h +66 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/covar.h +70 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/dogleg.h +107 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/fdjac1.h +79 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/lmpar.h +298 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/qrsolv.h +91 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1mpyq.h +30 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/r1updt.h +99 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NonLinearOptimization/rwupdt.h +49 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h +130 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/Companion.h +280 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialSolver.h +428 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Polynomials/PolynomialUtils.h +143 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineInplaceLU.h +352 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrix.h +862 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineMatrixBase.h +212 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineProduct.h +295 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineStorage.h +259 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Skyline/SkylineUtil.h +89 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockOfDynamicSparseMatrix.h +122 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/BlockSparseMatrix.h +1079 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/DynamicSparseMatrix.h +404 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/MarketIO.h +282 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/MatrixMarketIterator.h +247 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SparseExtra/RandomSetter.h +349 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsArrayAPI.h +286 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsBFloat16.h +68 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsFunctors.h +357 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsHalf.h +66 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsImpl.h +1959 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/BesselFunctionsPacketMath.h +118 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/HipVectorCompatibility.h +67 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsArrayAPI.h +167 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsBFloat16.h +58 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsFunctors.h +330 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsHalf.h +58 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +2045 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsPacketMath.h +79 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/BesselFunctions.h +46 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX/SpecialFunctions.h +16 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/BesselFunctions.h +46 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/AVX512/SpecialFunctions.h +16 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/GPU/SpecialFunctions.h +369 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/BesselFunctions.h +54 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/SpecialFunctions/arch/NEON/SpecialFunctions.h +34 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Splines/Spline.h +507 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Splines/SplineFitting.h +431 -0
- xtgeo/include/eigen3/unsupported/Eigen/src/Splines/SplineFwd.h +93 -0
- xtgeo/interfaces/rms/__init__.py +18 -0
- xtgeo/interfaces/rms/_regular_surface.py +460 -0
- xtgeo/interfaces/rms/_rms_base.py +100 -0
- xtgeo/interfaces/rms/_rmsapi_package.py +69 -0
- xtgeo/interfaces/rms/rmsapi_utils.py +438 -0
- xtgeo/io/__init__.py +1 -0
- xtgeo/io/_file.py +603 -0
- xtgeo/metadata/__init__.py +17 -0
- xtgeo/metadata/metadata.py +435 -0
- xtgeo/roxutils/__init__.py +7 -0
- xtgeo/roxutils/_roxar_loader.py +54 -0
- xtgeo/roxutils/_roxutils_etc.py +122 -0
- xtgeo/roxutils/roxutils.py +207 -0
- xtgeo/share/eigen3/cmake/Eigen3Config.cmake +37 -0
- xtgeo/share/eigen3/cmake/Eigen3ConfigVersion.cmake +65 -0
- xtgeo/share/eigen3/cmake/Eigen3Targets.cmake +106 -0
- xtgeo/share/eigen3/cmake/UseEigen3.cmake +6 -0
- xtgeo/share/pkgconfig/eigen3.pc +9 -0
- xtgeo/surface/__init__.py +20 -0
- xtgeo/surface/_regsurf_boundary.py +26 -0
- xtgeo/surface/_regsurf_cube.py +210 -0
- xtgeo/surface/_regsurf_cube_window.py +391 -0
- xtgeo/surface/_regsurf_cube_window_v2.py +297 -0
- xtgeo/surface/_regsurf_cube_window_v3.py +360 -0
- xtgeo/surface/_regsurf_export.py +388 -0
- xtgeo/surface/_regsurf_grid3d.py +275 -0
- xtgeo/surface/_regsurf_gridding.py +347 -0
- xtgeo/surface/_regsurf_ijxyz_parser.py +278 -0
- xtgeo/surface/_regsurf_import.py +347 -0
- xtgeo/surface/_regsurf_lowlevel.py +122 -0
- xtgeo/surface/_regsurf_oper.py +538 -0
- xtgeo/surface/_regsurf_utils.py +81 -0
- xtgeo/surface/_surfs_import.py +43 -0
- xtgeo/surface/_zmap_parser.py +138 -0
- xtgeo/surface/regular_surface.py +3043 -0
- xtgeo/surface/surfaces.py +276 -0
- xtgeo/well/__init__.py +24 -0
- xtgeo/well/_blockedwell_roxapi.py +241 -0
- xtgeo/well/_blockedwells_roxapi.py +68 -0
- xtgeo/well/_well_aux.py +30 -0
- xtgeo/well/_well_io.py +327 -0
- xtgeo/well/_well_oper.py +483 -0
- xtgeo/well/_well_roxapi.py +304 -0
- xtgeo/well/_wellmarkers.py +486 -0
- xtgeo/well/_wells_utils.py +158 -0
- xtgeo/well/blocked_well.py +220 -0
- xtgeo/well/blocked_wells.py +134 -0
- xtgeo/well/well1.py +1516 -0
- xtgeo/well/wells.py +211 -0
- xtgeo/xyz/__init__.py +6 -0
- xtgeo/xyz/_polygons_oper.py +272 -0
- xtgeo/xyz/_xyz.py +758 -0
- xtgeo/xyz/_xyz_data.py +646 -0
- xtgeo/xyz/_xyz_io.py +737 -0
- xtgeo/xyz/_xyz_lowlevel.py +42 -0
- xtgeo/xyz/_xyz_oper.py +613 -0
- xtgeo/xyz/_xyz_roxapi.py +766 -0
- xtgeo/xyz/points.py +698 -0
- xtgeo/xyz/polygons.py +827 -0
- xtgeo-4.14.0.dist-info/METADATA +146 -0
- xtgeo-4.14.0.dist-info/RECORD +658 -0
- xtgeo-4.14.0.dist-info/WHEEL +6 -0
- xtgeo-4.14.0.dist-info/licenses/LICENSE.md +165 -0
- xtgeo.libs/libgomp-e985bcbb.so.1.0.0 +0 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import io
|
|
4
|
+
import json
|
|
5
|
+
import struct
|
|
6
|
+
from contextlib import ExitStack
|
|
7
|
+
from copy import deepcopy
|
|
8
|
+
from typing import IO, TYPE_CHECKING, Any, Literal
|
|
9
|
+
|
|
10
|
+
import h5py
|
|
11
|
+
import hdf5plugin
|
|
12
|
+
import roffio
|
|
13
|
+
|
|
14
|
+
from xtgeo.common import null_logger
|
|
15
|
+
|
|
16
|
+
from ._egrid import EGrid
|
|
17
|
+
from ._grdecl_grid import GrdeclGrid
|
|
18
|
+
from ._roff_grid import RoffGrid
|
|
19
|
+
|
|
20
|
+
logger = null_logger(__name__)
|
|
21
|
+
|
|
22
|
+
if TYPE_CHECKING:
|
|
23
|
+
import numpy as np
|
|
24
|
+
|
|
25
|
+
from xtgeo.common.types import FileLike
|
|
26
|
+
from xtgeo.io._file import FileWrapper
|
|
27
|
+
from xtgeo.metadata.metata import MetaData
|
|
28
|
+
|
|
29
|
+
from .grid import Grid
|
|
30
|
+
|
|
31
|
+
# valid byte settings for xtgeo/hdf5 based export e.g. 441 means
|
|
32
|
+
# 4byte float for coord, 4byte float for zcorn, and 1 byte Int for actnums.
|
|
33
|
+
# Native XTGeo is 844
|
|
34
|
+
VALIDXTGFMT = (221, 421, 441, 444, 841, 844, 881, 884)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def export_roff(
|
|
38
|
+
grid: Grid, gfile: FileLike, roff_format: Literal["ascii", "binary"] = "binary"
|
|
39
|
+
) -> None:
|
|
40
|
+
"""Export grid to ROFF format."""
|
|
41
|
+
if roff_format == "binary":
|
|
42
|
+
RoffGrid.from_xtgeo_grid(grid).to_file(gfile, roff_format=roffio.Format.BINARY)
|
|
43
|
+
elif roff_format == "ascii":
|
|
44
|
+
RoffGrid.from_xtgeo_grid(grid).to_file(gfile, roff_format=roffio.Format.ASCII)
|
|
45
|
+
else:
|
|
46
|
+
raise ValueError(
|
|
47
|
+
"Incorrect format specifier in export_roff,"
|
|
48
|
+
f" expected 'binary' or 'ascii, got {roff_format}"
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def export_grdecl(grid: Grid, gfile: FileLike, mode: int, rle: bool = False) -> None:
|
|
53
|
+
"""Export grid to Eclipse GRDECL format (ascii, mode=1) or binary (mode=0).
|
|
54
|
+
Optionally for ASCII GRDECL, run-length encoding RLE can be applied"""
|
|
55
|
+
fileformat = "grdecl" if mode == 1 else "bgrdecl"
|
|
56
|
+
GrdeclGrid.from_xtgeo_grid(grid).to_file(gfile, fileformat=fileformat, rle=rle)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def export_egrid(grid: Grid, gfile: FileLike) -> None:
|
|
60
|
+
"""Export grid to Eclipse EGRID format, binary."""
|
|
61
|
+
EGrid.from_xtgeo_grid(grid).to_file(gfile, fileformat="egrid")
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def export_fegrid(grid: Grid, gfile: FileLike) -> None:
|
|
65
|
+
"""Export grid to Eclipse FEGRID format, ascii."""
|
|
66
|
+
EGrid.from_xtgeo_grid(grid).to_file(gfile, fileformat="fegrid")
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def export_xtgcpgeom(grid: Grid, gfile: FileWrapper, subformat: int = 844) -> None:
|
|
70
|
+
"""Export grid to binary XTGeo xtgcpgeom format, in prep. and experimental."""
|
|
71
|
+
logger.info("Export to native binary xtgeo...")
|
|
72
|
+
|
|
73
|
+
grid._set_xtgformat2()
|
|
74
|
+
logger.info("Export to native binary xtgeo...(2)")
|
|
75
|
+
|
|
76
|
+
grid.metadata.required = grid
|
|
77
|
+
meta = grid.metadata.get_metadata()
|
|
78
|
+
|
|
79
|
+
# subformat processing, indicating number of bytes per datatype
|
|
80
|
+
# here, 844 is native XTGeo (float64, float32, int32)
|
|
81
|
+
dtypecoo, dtypezco, dtypeact, meta = _define_dtypes(grid, subformat, meta)
|
|
82
|
+
|
|
83
|
+
coordsv, zcornsv, actnumsv = _transform_vectors(
|
|
84
|
+
grid, meta, dtypecoo, dtypezco, dtypeact
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
prevalues = (1, 1301, int(subformat), grid.ncol, grid.nrow, grid.nlay)
|
|
88
|
+
mystruct = struct.Struct("= i i i q q q")
|
|
89
|
+
hdr = mystruct.pack(*prevalues)
|
|
90
|
+
|
|
91
|
+
# Convert StringIO to BytesIO as this is a binary format
|
|
92
|
+
with ExitStack() as stack:
|
|
93
|
+
if isinstance(gfile.file, io.StringIO):
|
|
94
|
+
data = gfile.file.getvalue().encode("utf-8")
|
|
95
|
+
fout: IO[Any] = io.BytesIO(data)
|
|
96
|
+
elif isinstance(gfile.file, io.BytesIO):
|
|
97
|
+
fout = gfile.file
|
|
98
|
+
else:
|
|
99
|
+
fout = stack.enter_context(open(gfile.file, "wb"))
|
|
100
|
+
fout.write(hdr)
|
|
101
|
+
coordsv.tofile(fout)
|
|
102
|
+
zcornsv.tofile(fout)
|
|
103
|
+
actnumsv.tofile(fout)
|
|
104
|
+
fout.write("\nXTGMETA.v01\n".encode())
|
|
105
|
+
fout.write(json.dumps(meta).encode())
|
|
106
|
+
|
|
107
|
+
logger.info("Export to native binary xtgeo... done!")
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
def export_hdf5_cpgeom(
|
|
111
|
+
grid: Grid,
|
|
112
|
+
gfile: FileWrapper,
|
|
113
|
+
compression: Literal["blosc"] | None = None,
|
|
114
|
+
chunks: bool = False,
|
|
115
|
+
subformat: int = 844,
|
|
116
|
+
) -> None:
|
|
117
|
+
"""Export grid to h5/hdf5, in prep. and experimental."""
|
|
118
|
+
grid._set_xtgformat2()
|
|
119
|
+
|
|
120
|
+
logger.debug("Export to hdf5 xtgeo layout...")
|
|
121
|
+
|
|
122
|
+
grid.metadata.required = grid
|
|
123
|
+
meta = grid.metadata.get_metadata()
|
|
124
|
+
|
|
125
|
+
if compression == "blosc":
|
|
126
|
+
compression = hdf5plugin.Blosc(
|
|
127
|
+
cname="blosclz", clevel=9, shuffle=hdf5plugin.Blosc.SHUFFLE
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
dtypecoo, dtypezco, dtypeact, meta = _define_dtypes(grid, subformat, meta)
|
|
131
|
+
coordsv, zcornsv, actnumsv = _transform_vectors(
|
|
132
|
+
grid, meta, dtypecoo, dtypezco, dtypeact
|
|
133
|
+
)
|
|
134
|
+
jmeta = json.dumps(meta).encode()
|
|
135
|
+
|
|
136
|
+
with h5py.File(gfile.name, "w") as fh5:
|
|
137
|
+
grp = fh5.create_group("CornerPointGeometry")
|
|
138
|
+
grp.create_dataset(
|
|
139
|
+
"coord",
|
|
140
|
+
data=coordsv,
|
|
141
|
+
compression=compression,
|
|
142
|
+
chunks=chunks or None,
|
|
143
|
+
)
|
|
144
|
+
grp.create_dataset(
|
|
145
|
+
"zcorn",
|
|
146
|
+
data=zcornsv,
|
|
147
|
+
compression=compression,
|
|
148
|
+
chunks=chunks or None,
|
|
149
|
+
)
|
|
150
|
+
grp.create_dataset(
|
|
151
|
+
"actnum",
|
|
152
|
+
data=actnumsv,
|
|
153
|
+
compression=compression,
|
|
154
|
+
chunks=chunks or None,
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
grp.attrs["metadata"] = jmeta
|
|
158
|
+
grp.attrs["provider"] = "xtgeo"
|
|
159
|
+
grp.attrs["format-idcode"] = 1301
|
|
160
|
+
|
|
161
|
+
logger.debug("Export to hdf5 xtgeo layout... done!")
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
def _define_dtypes(grid: Grid, fmt: int, meta: MetaData) -> tuple[str, str, str, str]:
|
|
165
|
+
# subformat processing, indicating number of bytes per datatype
|
|
166
|
+
# here, 844 is native XTGeo (float64, float32, int32)
|
|
167
|
+
logger.debug("Define dtypes...")
|
|
168
|
+
|
|
169
|
+
newmeta = deepcopy(meta)
|
|
170
|
+
|
|
171
|
+
if int(fmt) not in VALIDXTGFMT:
|
|
172
|
+
raise ValueError(f"The subformat value is not valid, must be in: {VALIDXTGFMT}")
|
|
173
|
+
|
|
174
|
+
if fmt <= 444:
|
|
175
|
+
# the float() is for JSON serialization which cannot handle float32
|
|
176
|
+
newmeta["_required_"]["xshift"] = float(grid._coordsv[:, :, 0::3].mean())
|
|
177
|
+
newmeta["_required_"]["yshift"] = float(grid._coordsv[:, :, 1::3].mean())
|
|
178
|
+
newmeta["_required_"]["zshift"] = float(grid._zcornsv.mean())
|
|
179
|
+
|
|
180
|
+
nbytecoord, nbytezcorn, nbyteactnum = [int(nbyte) for nbyte in str(fmt)]
|
|
181
|
+
|
|
182
|
+
dtype_coord = "float" + str(nbytecoord * 8)
|
|
183
|
+
dtype_zcorn = "float" + str(nbytezcorn * 8)
|
|
184
|
+
dtype_actnum = "int" + str(nbyteactnum * 8)
|
|
185
|
+
|
|
186
|
+
logger.debug("Define dtypes... done!")
|
|
187
|
+
return dtype_coord, dtype_zcorn, dtype_actnum, newmeta
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def _transform_vectors(
|
|
191
|
+
grid: Grid, meta: MetaData, dtypecoo: str, dtypezco: str, dtypeact: str
|
|
192
|
+
) -> tuple[np.ndarray, np.ndarray, np.ndarray]:
|
|
193
|
+
logger.debug("Transform vectors...")
|
|
194
|
+
|
|
195
|
+
xshift = meta["_required_"]["xshift"]
|
|
196
|
+
yshift = meta["_required_"]["yshift"]
|
|
197
|
+
zshift = meta["_required_"]["zshift"]
|
|
198
|
+
|
|
199
|
+
if xshift != 0.0 or yshift != 0.0 or zshift != 0.0:
|
|
200
|
+
coordsv = grid._coordsv.copy()
|
|
201
|
+
zcornsv = grid._zcornsv.copy()
|
|
202
|
+
actnumsv = grid._actnumsv.copy()
|
|
203
|
+
coordsv[:, :, 0::3] -= xshift
|
|
204
|
+
coordsv[:, :, 1::3] -= yshift
|
|
205
|
+
coordsv[:, :, 2::3] -= zshift
|
|
206
|
+
zcornsv -= zshift
|
|
207
|
+
else:
|
|
208
|
+
coordsv = grid._coordsv
|
|
209
|
+
zcornsv = grid._zcornsv
|
|
210
|
+
actnumsv = grid._actnumsv
|
|
211
|
+
|
|
212
|
+
if dtypecoo != "float64":
|
|
213
|
+
coordsv = coordsv.astype(dtypecoo)
|
|
214
|
+
|
|
215
|
+
if dtypecoo != "float32":
|
|
216
|
+
zcornsv = zcornsv.astype(dtypezco)
|
|
217
|
+
|
|
218
|
+
if dtypecoo != "int32":
|
|
219
|
+
actnumsv = actnumsv.astype(dtypeact)
|
|
220
|
+
|
|
221
|
+
logger.debug("Transform vectors... done!")
|
|
222
|
+
return coordsv, zcornsv, actnumsv
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
import numpy as np
|
|
6
|
+
|
|
7
|
+
import xtgeo._internal as _internal # type: ignore
|
|
8
|
+
from xtgeo.common import null_logger
|
|
9
|
+
|
|
10
|
+
logger = null_logger(__name__)
|
|
11
|
+
|
|
12
|
+
if TYPE_CHECKING:
|
|
13
|
+
from xtgeo.grid3d import Grid, GridProperty
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def make_hybridgrid(
|
|
17
|
+
self: Grid,
|
|
18
|
+
nhdiv: int = 10,
|
|
19
|
+
toplevel: float = 1000.0,
|
|
20
|
+
bottomlevel: float = 1100.0,
|
|
21
|
+
region: GridProperty | None = None,
|
|
22
|
+
region_number: int | None = None,
|
|
23
|
+
) -> None:
|
|
24
|
+
"""Make hybrid grid."""
|
|
25
|
+
self._set_xtgformat2()
|
|
26
|
+
|
|
27
|
+
newnlay = self.nlay * 2 + nhdiv
|
|
28
|
+
|
|
29
|
+
grid3d_cpp = _internal.grid3d.Grid(self)
|
|
30
|
+
region_array = (
|
|
31
|
+
region.values.astype(np.int32)
|
|
32
|
+
if region
|
|
33
|
+
else np.empty((0, 0, 0), dtype=np.int32)
|
|
34
|
+
)
|
|
35
|
+
hyb_zcornsv, hyb_actnumsv = grid3d_cpp.convert_to_hybrid_grid(
|
|
36
|
+
toplevel,
|
|
37
|
+
bottomlevel,
|
|
38
|
+
nhdiv,
|
|
39
|
+
region_array,
|
|
40
|
+
int(region_number) if region_number is not None else -1,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
# when a hybridgrid is made, the current subrid settings lose relevance, hence
|
|
44
|
+
# it is forced set to None
|
|
45
|
+
self.subgrids = None
|
|
46
|
+
|
|
47
|
+
# update the grid in place
|
|
48
|
+
self._nlay = newnlay
|
|
49
|
+
self._zcornsv = hyb_zcornsv
|
|
50
|
+
self._actnumsv = hyb_actnumsv.astype(np.int32)
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"""Grid import functions for various formats."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
from typing import Any
|
|
7
|
+
|
|
8
|
+
from xtgeo.common.exceptions import InvalidFileFormatError
|
|
9
|
+
from xtgeo.common.log import null_logger
|
|
10
|
+
from xtgeo.io._file import FileFormat, FileWrapper
|
|
11
|
+
|
|
12
|
+
from . import _grid_import_ecl, _grid_import_roff, _grid_import_xtgcpgeom
|
|
13
|
+
|
|
14
|
+
logger = null_logger(__name__)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def from_file(
|
|
18
|
+
gfile: FileWrapper,
|
|
19
|
+
fformat: FileFormat,
|
|
20
|
+
**kwargs: Any,
|
|
21
|
+
) -> dict[str, Any]:
|
|
22
|
+
"""Import grid geometry from file, and makes an instance of this class.
|
|
23
|
+
|
|
24
|
+
Returns:
|
|
25
|
+
dictionary of keyword arguments to be used in Grid constructor.
|
|
26
|
+
"""
|
|
27
|
+
if not isinstance(gfile, FileWrapper):
|
|
28
|
+
raise RuntimeError("Error gfile must be a FileWrapper instance")
|
|
29
|
+
|
|
30
|
+
result: dict[str, Any] = {
|
|
31
|
+
"filesrc": gfile.name,
|
|
32
|
+
}
|
|
33
|
+
gfile.check_file(raiseerror=IOError, raisetext=f"Cannot access file {gfile.name}")
|
|
34
|
+
|
|
35
|
+
if fformat in (FileFormat.ROFF_BINARY, FileFormat.ROFF_ASCII):
|
|
36
|
+
result.update(_grid_import_roff.import_roff(gfile, **kwargs))
|
|
37
|
+
elif fformat in (FileFormat.EGRID, FileFormat.FEGRID):
|
|
38
|
+
result.update(
|
|
39
|
+
_grid_import_ecl.import_ecl_egrid(
|
|
40
|
+
gfile,
|
|
41
|
+
fileformat=fformat,
|
|
42
|
+
**kwargs,
|
|
43
|
+
)
|
|
44
|
+
)
|
|
45
|
+
elif fformat == FileFormat.GRDECL:
|
|
46
|
+
result.update(_grid_import_ecl.import_ecl_grdecl(gfile, **kwargs))
|
|
47
|
+
elif fformat == FileFormat.BGRDECL:
|
|
48
|
+
result.update(_grid_import_ecl.import_ecl_bgrdecl(gfile, **kwargs))
|
|
49
|
+
elif fformat == FileFormat.XTG:
|
|
50
|
+
result.update(_grid_import_xtgcpgeom.import_xtgcpgeom(gfile, **kwargs))
|
|
51
|
+
elif fformat == FileFormat.HDF:
|
|
52
|
+
result.update(_grid_import_xtgcpgeom.import_hdf5_cpgeom(gfile, **kwargs))
|
|
53
|
+
else:
|
|
54
|
+
extensions = FileFormat.extensions_string(
|
|
55
|
+
[
|
|
56
|
+
FileFormat.ROFF_BINARY,
|
|
57
|
+
FileFormat.ROFF_ASCII,
|
|
58
|
+
FileFormat.EGRID,
|
|
59
|
+
FileFormat.FEGRID,
|
|
60
|
+
FileFormat.GRDECL,
|
|
61
|
+
FileFormat.BGRDECL,
|
|
62
|
+
FileFormat.XTG,
|
|
63
|
+
FileFormat.HDF,
|
|
64
|
+
]
|
|
65
|
+
)
|
|
66
|
+
raise InvalidFileFormatError(
|
|
67
|
+
f"File format {fformat} is invalid for type Grid. "
|
|
68
|
+
f"Supported formats are {extensions}."
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
if gfile.memstream:
|
|
72
|
+
result["name"] = "unknown"
|
|
73
|
+
else:
|
|
74
|
+
# Mypy does not know that if gfile.memstream -> False
|
|
75
|
+
# then .file must be Path.
|
|
76
|
+
assert isinstance(gfile.file, Path)
|
|
77
|
+
result["name"] = gfile.file.stem
|
|
78
|
+
|
|
79
|
+
return result
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"""Grid import functions for Eclipse, new approach (i.e. version 2)."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import TYPE_CHECKING, Any
|
|
6
|
+
|
|
7
|
+
from xtgeo.common import null_logger
|
|
8
|
+
from xtgeo.grid3d._egrid import EGrid, RockModel
|
|
9
|
+
from xtgeo.grid3d._grdecl_grid import GrdeclGrid, GridRelative
|
|
10
|
+
from xtgeo.grid3d.grid_properties import GridProperties, gridproperties_from_file
|
|
11
|
+
from xtgeo.io._file import FileFormat, FileWrapper
|
|
12
|
+
|
|
13
|
+
logger = null_logger(__name__)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from xtgeo.grid3d.grid import Grid
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def import_ecl_egrid(
|
|
21
|
+
gfile: FileWrapper,
|
|
22
|
+
relative_to: GridRelative = GridRelative.MAP,
|
|
23
|
+
fileformat: FileFormat = FileFormat.EGRID,
|
|
24
|
+
) -> dict[str, Any]:
|
|
25
|
+
egrid = EGrid.from_file(gfile.file, fileformat=fileformat)
|
|
26
|
+
result = grid_from_ecl_grid(egrid, relative_to=relative_to)
|
|
27
|
+
|
|
28
|
+
if egrid.egrid_head.file_head.rock_model == RockModel.DUAL_POROSITY:
|
|
29
|
+
result["dualporo"] = True
|
|
30
|
+
result["dualperm"] = False
|
|
31
|
+
elif egrid.egrid_head.file_head.rock_model == RockModel.DUAL_PERMEABILITY:
|
|
32
|
+
result["dualporo"] = True
|
|
33
|
+
result["dualperm"] = True
|
|
34
|
+
|
|
35
|
+
return result
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def import_ecl_run(
|
|
39
|
+
groot: str,
|
|
40
|
+
ecl_grid: Grid,
|
|
41
|
+
initprops: list[str] | None = None,
|
|
42
|
+
restartprops: list[str] | None = None,
|
|
43
|
+
restartdates: list[str] | None = None,
|
|
44
|
+
) -> None:
|
|
45
|
+
"""Import Eclipse run suite: EGrid and properties from INIT and UNRST.
|
|
46
|
+
For the INIT and UNRST files, property dates shall be selected."""
|
|
47
|
+
ecl_init = FileWrapper(f"{groot}.INIT")
|
|
48
|
+
ecl_rsta = FileWrapper(f"{groot}.UNRST")
|
|
49
|
+
grdprops = GridProperties()
|
|
50
|
+
|
|
51
|
+
# import the init properties unless list is empty
|
|
52
|
+
if initprops:
|
|
53
|
+
initprops_ = gridproperties_from_file(
|
|
54
|
+
ecl_init.name, names=initprops, fformat="init", dates=None, grid=ecl_grid
|
|
55
|
+
)
|
|
56
|
+
if initprops_.props:
|
|
57
|
+
grdprops.append_props(initprops_.props)
|
|
58
|
+
|
|
59
|
+
# import the restart properties for dates unless lists are empty
|
|
60
|
+
if restartprops and restartdates:
|
|
61
|
+
restartprops_ = gridproperties_from_file(
|
|
62
|
+
ecl_rsta.name,
|
|
63
|
+
names=restartprops,
|
|
64
|
+
fformat="unrst",
|
|
65
|
+
dates=restartdates,
|
|
66
|
+
grid=ecl_grid,
|
|
67
|
+
)
|
|
68
|
+
if restartprops_.props:
|
|
69
|
+
grdprops.append_props(restartprops_.props)
|
|
70
|
+
ecl_grid.gridprops = grdprops
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def import_ecl_grdecl(
|
|
74
|
+
gfile: FileWrapper, relative_to: GridRelative = GridRelative.MAP
|
|
75
|
+
) -> dict[str, Any]:
|
|
76
|
+
"""Import grdecl format."""
|
|
77
|
+
grdecl_grid = GrdeclGrid.from_file(gfile.file, fileformat=FileFormat.GRDECL)
|
|
78
|
+
return grid_from_ecl_grid(grdecl_grid, relative_to=relative_to)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def import_ecl_bgrdecl(
|
|
82
|
+
gfile: FileWrapper, relative_to: GridRelative = GridRelative.MAP
|
|
83
|
+
) -> dict[str, Any]:
|
|
84
|
+
"""Import binary files with GRDECL layout."""
|
|
85
|
+
grdecl_grid = GrdeclGrid.from_file(gfile.file, fileformat=FileFormat.BGRDECL)
|
|
86
|
+
return grid_from_ecl_grid(grdecl_grid, relative_to=relative_to)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def grid_from_ecl_grid(
|
|
90
|
+
ecl_grid: EGrid, relative_to: GridRelative = GridRelative.MAP
|
|
91
|
+
) -> dict[str, Any]:
|
|
92
|
+
result = {}
|
|
93
|
+
result["coordsv"] = ecl_grid.xtgeo_coord(relative_to=relative_to)
|
|
94
|
+
result["zcornsv"] = ecl_grid.xtgeo_zcorn(relative_to=relative_to)
|
|
95
|
+
result["actnumsv"] = ecl_grid.xtgeo_actnum()
|
|
96
|
+
if relative_to == GridRelative.MAP and ecl_grid.map_axis_units is not None:
|
|
97
|
+
result["units"] = ecl_grid.map_axis_units
|
|
98
|
+
else:
|
|
99
|
+
result["units"] = ecl_grid.grid_units
|
|
100
|
+
|
|
101
|
+
return result
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"""Private module, Grid Import private functions for ROFF format."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import pathlib
|
|
6
|
+
import tempfile
|
|
7
|
+
import warnings
|
|
8
|
+
from contextlib import contextmanager
|
|
9
|
+
from io import BufferedReader, BytesIO
|
|
10
|
+
from typing import TYPE_CHECKING, Generator
|
|
11
|
+
|
|
12
|
+
from xtgeo.common import null_logger
|
|
13
|
+
|
|
14
|
+
from ._roff_grid import RoffGrid
|
|
15
|
+
|
|
16
|
+
if TYPE_CHECKING:
|
|
17
|
+
from numpy.typing import NDArray
|
|
18
|
+
|
|
19
|
+
from xtgeo.common.types import FileLike
|
|
20
|
+
from xtgeo.io._file import FileWrapper
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
logger = null_logger(__name__)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def match_xtgeo_214_header(header: bytes) -> bool:
|
|
27
|
+
"""
|
|
28
|
+
Check whether the start of a binary file matches
|
|
29
|
+
the problematic xtgeo version 2.14 contents.
|
|
30
|
+
|
|
31
|
+
Params:
|
|
32
|
+
header: the start of a file
|
|
33
|
+
|
|
34
|
+
"""
|
|
35
|
+
first_part_match = header.startswith(
|
|
36
|
+
b"roff-bin\0"
|
|
37
|
+
b"#ROFF file#\0"
|
|
38
|
+
b"#Creator: CXTGeo subsystem of XTGeo by JCR#\0"
|
|
39
|
+
b"tag\0filedata\0"
|
|
40
|
+
b"int\0byteswaptest\0"
|
|
41
|
+
)
|
|
42
|
+
problem_area_match = header[99:].startswith(
|
|
43
|
+
b"char\0filetype\0grid\0char\0creationDate\0UNKNOWNendtag"
|
|
44
|
+
)
|
|
45
|
+
return first_part_match and problem_area_match
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def replace_xtgeo_214_header(header: bytes) -> bytes:
|
|
49
|
+
"""
|
|
50
|
+
Given that match_xtgeo_214_header(header), inserts
|
|
51
|
+
a \0 in the correct place.
|
|
52
|
+
"""
|
|
53
|
+
return header[:143] + b"\0" + header[143:]
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
@contextmanager
|
|
57
|
+
def handle_deprecated_xtgeo_roff_file(
|
|
58
|
+
filelike: FileLike,
|
|
59
|
+
) -> Generator[
|
|
60
|
+
FileLike | tempfile._TemporaryFileWrapper[bytes],
|
|
61
|
+
None,
|
|
62
|
+
None,
|
|
63
|
+
]:
|
|
64
|
+
"""
|
|
65
|
+
A contextmanager that inplace fixes grid roff files
|
|
66
|
+
that were written by XTGeo prior to version 2.15. This
|
|
67
|
+
backwards compatibility should eventually be deprecated
|
|
68
|
+
|
|
69
|
+
Example::
|
|
70
|
+
|
|
71
|
+
with handle_deprecated_xtgeo_roff_file("grid.roff") as converted_grid:
|
|
72
|
+
roff_grid = RoffGrid.from_file(converted_file)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
Before version 2.15, grids with _xtgformat=1 would be written with missing
|
|
76
|
+
'\\0' after the creationDate. However, it would also silently read that
|
|
77
|
+
file without any issues in the final product. roffio is less leanient when
|
|
78
|
+
it comes to the format it will accept and so does not recover. Luckily, the
|
|
79
|
+
creationDate was set to 'UNKNOWN' so we can be fairly certain we replace
|
|
80
|
+
correctly.
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
inhandle: FileLike | BufferedReader = filelike
|
|
84
|
+
close = False
|
|
85
|
+
if isinstance(filelike, (str, pathlib.Path)):
|
|
86
|
+
inhandle = open(filelike, "rb") # noqa: SIM115
|
|
87
|
+
close = True
|
|
88
|
+
|
|
89
|
+
# MYPY is uanble to figur out that isinstance check
|
|
90
|
+
# above means we have an IO-based class now.
|
|
91
|
+
assert isinstance(inhandle, (BufferedReader, BytesIO))
|
|
92
|
+
goback = inhandle.tell()
|
|
93
|
+
header = inhandle.read(200)
|
|
94
|
+
|
|
95
|
+
if match_xtgeo_214_header(header):
|
|
96
|
+
name = "buffer"
|
|
97
|
+
if hasattr(filelike, "name"):
|
|
98
|
+
name = filelike.name
|
|
99
|
+
warnings.warn(
|
|
100
|
+
f"The roff file {name} contains nonstandard but harmless roff"
|
|
101
|
+
" format detail written by XTGeo version <=2.14. Reading of such files"
|
|
102
|
+
" is deprecated, consider re-exporting the file with XTGeo version >=2.15.3"
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
new_header = replace_xtgeo_214_header(header)
|
|
106
|
+
|
|
107
|
+
with tempfile.NamedTemporaryFile() as outhandle:
|
|
108
|
+
outhandle.write(new_header)
|
|
109
|
+
inhandle.seek(200)
|
|
110
|
+
outhandle.write(inhandle.read())
|
|
111
|
+
outhandle.seek(0)
|
|
112
|
+
yield outhandle
|
|
113
|
+
if close:
|
|
114
|
+
inhandle.close()
|
|
115
|
+
else:
|
|
116
|
+
inhandle.seek(goback)
|
|
117
|
+
|
|
118
|
+
else:
|
|
119
|
+
if close:
|
|
120
|
+
inhandle.close()
|
|
121
|
+
else:
|
|
122
|
+
inhandle.seek(goback)
|
|
123
|
+
|
|
124
|
+
yield filelike
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
def import_roff(gfile: FileWrapper) -> dict[str, NDArray | dict[str, range] | None]:
|
|
128
|
+
with handle_deprecated_xtgeo_roff_file(gfile._file) as converted_file:
|
|
129
|
+
roff_grid = RoffGrid.from_file(converted_file)
|
|
130
|
+
return {
|
|
131
|
+
"actnumsv": roff_grid.xtgeo_actnum(),
|
|
132
|
+
"coordsv": roff_grid.xtgeo_coord(),
|
|
133
|
+
"zcornsv": roff_grid.xtgeo_zcorn(),
|
|
134
|
+
"subgrids": roff_grid.xtgeo_subgrids(),
|
|
135
|
+
}
|