Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ParaView
ParaView
Commits
57182726
Commit
57182726
authored
Mar 09, 2018
by
Dan Lipsa
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add SegY reader.
parent
ad7e26cd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
125 additions
and
0 deletions
+125
-0
CMake/VTKModules.cmake
CMake/VTKModules.cmake
+4
-0
CMakeLists.txt
CMakeLists.txt
+2
-0
ParaViewCore/ServerManager/SMApplication/CMakeLists.txt
ParaViewCore/ServerManager/SMApplication/CMakeLists.txt
+6
-0
ParaViewCore/ServerManager/SMApplication/Resources/proxies_segy.xml
...re/ServerManager/SMApplication/Resources/proxies_segy.xml
+113
-0
No files found.
CMake/VTKModules.cmake
View file @
57182726
...
...
@@ -405,6 +405,10 @@ if (PARAVIEW_ENABLE_PDAL)
list
(
APPEND _vtk_modules vtkIOPDAL
)
endif
()
if
(
PARAVIEW_ENABLE_SEGY
)
list
(
APPEND _vtk_modules vtkIOSegY
)
endif
()
if
(
PARAVIEW_USE_MPI
)
list
(
APPEND _vtk_modules
${
_vtk_mpi_modules
}
)
...
...
CMakeLists.txt
View file @
57182726
...
...
@@ -243,6 +243,8 @@ option(PARAVIEW_ENABLE_LAS "Enable LAS support." OFF)
mark_as_advanced
(
PARAVIEW_ENABLE_LAS
)
option
(
PARAVIEW_ENABLE_PDAL
"Enable PDAL support."
OFF
)
mark_as_advanced
(
PARAVIEW_ENABLE_PDAL
)
option
(
PARAVIEW_ENABLE_SEGY
"Enable SegY support."
OFF
)
mark_as_advanced
(
PARAVIEW_ENABLE_SEGY
)
if
(
UNIX
)
...
...
ParaViewCore/ServerManager/SMApplication/CMakeLists.txt
View file @
57182726
...
...
@@ -141,6 +141,12 @@ if (vtkiopdal_index GREATER 0)
${
CMAKE_CURRENT_SOURCE_DIR
}
/Resources/proxies_pdal.xml
)
endif
()
list
(
FIND VTK_MODULES_ENABLED
"vtkIOSegY"
vtkiosegy_index
)
if
(
vtkiosegy_index GREATER 0
)
list
(
APPEND requestedResourceFiles
${
CMAKE_CURRENT_SOURCE_DIR
}
/Resources/proxies_segy.xml
)
endif
()
list
(
FIND VTK_MODULES_ENABLED
"vtkIOADIOS"
vtkioadios_index
)
if
(
vtkioadios_index GREATER 0
)
...
...
ParaViewCore/ServerManager/SMApplication/Resources/proxies_segy.xml
0 → 100644
View file @
57182726
<ServerManagerConfiguration>
<ProxyGroup
name=
"sources"
>
<SourceProxy
class=
"vtkSegYReader"
label=
"SegY Reader"
name=
"SegY Reader"
>
<Documentation
short_help=
"Reads SEG-Y data files."
>
SEG-Y Reader reads SEG-Y data files. We create a Structured
Grid for 2.5D SEG-Y and 3D data. If we set the StructuredGrid
option to false we create a Image Data for 3D data. This saves
memory and may speed-up certain algorithms, but the postion
and the shape of the data may not be correct. The axes for the
data are: crossline, inline, depth.
</Documentation>
<StringVectorProperty
animateable=
"0"
command=
"SetFileName"
name=
"FileName"
number_of_elements=
"1"
>
<FileListDomain
name=
"files"
/>
<Documentation>
This property specifies the file name for the
SEG-Y reader.
</Documentation>
</StringVectorProperty>
<IntVectorProperty
command=
"SetXYCoordMode"
default_values=
"0"
name=
"XYCoordMode"
number_of_elements=
"1"
panel_visibility=
"advanced"
>
<EnumerationDomain
name=
"enum"
>
<Entry
text=
"Source"
value=
"0"
/>
<Entry
text=
"CDP"
value=
"1"
/>
<Entry
text=
"Custom"
value=
"2"
/>
</EnumerationDomain>
<Documentation>
Specify whether to use source x/y coordinates or CDP coordinates or custom
byte positions for data position in the SEG-Y trace header. Defaults to
source x/y coordinates.
As per SEG-Y rev 2.0 specification:
- Source XY coordinate bytes = (73, 77)
- CDP XY coordinate bytes = (181, 185)
</Documentation>
</IntVectorProperty>
<IntVectorProperty
command=
"SetXCoordByte"
default_values=
"73"
name=
"XCoordByte"
number_of_elements=
"1"
panel_visibility=
"advanced"
>
<IntRangeDomain
name=
"range"
/>
<Documentation>
Specify X and Y byte positions for custom XYCoordinateMode.
By default, XCoordByte = 73, YCoordByte = 77 i.e. source xy.
</Documentation>
</IntVectorProperty>
<IntVectorProperty
command=
"SetYCoordByte"
default_values=
"76"
name=
"YCoordByte"
number_of_elements=
"1"
panel_visibility=
"advanced"
>
<IntRangeDomain
name=
"range"
/>
<Documentation>
Specify X and Y byte positions for custom XYCoordinateMode.
By default, XCoordByte = 73, YCoordByte = 77 i.e. source xy.
</Documentation>
</IntVectorProperty>
<IntVectorProperty
command=
"SetVerticalCRS"
default_values=
"0"
name=
"VerticalCRS"
number_of_elements=
"1"
panel_visibility=
"advanced"
>
<EnumerationDomain
name=
"enum"
>
<Entry
text=
"Heigths"
value=
"0"
/>
<Entry
text=
"Depths"
value=
"1"
/>
</EnumerationDomain>
<Documentation>
Specify whether the vertical coordinates in the SEG-Y file are heights
(positive up) or depths (positive down). By default, the vertical
coordinates are treated as heights (i.e. positive up). This means that the
Z-axis of the dataset goes from 0 (surface) to -ve depth (last sample).
Note. As per the SEG-Y rev 2.0 specification, this information is defined
in the Location Data Stanza of the Extended Textual Header. However, as of
this revision, SegYReader does not support reading the extended
textual header.
</Documentation>
</IntVectorProperty>
<IntVectorProperty
command=
"SetStructuredGrid"
name=
"StructuredGrid"
number_of_elements=
"1"
default_values=
"1"
panel_visibility=
"advanced"
>
<BooleanDomain
name=
"bool"
/>
<Documentation>
Specify if we create a Structured Grid even when the data is
SEG-Y 3D. Note this consumes more memory but it shows the
precise location for each point and the correct shape of the
data. The default value is true. If we set this option to
false we create an Image Data for a SEG-Y 3D dataset.
</Documentation>
</IntVectorProperty>
<Hints>
<ReaderFactory
extensions=
"sgy segy"
file_description=
"SEG-Y Files"
/>
</Hints>
</SourceProxy>
<!-- End SegYReader -->
</ProxyGroup>
</ServerManagerConfiguration>
Dan Lipsa
@danlipsa
mentioned in commit
de7ad6d2
·
May 04, 2018
mentioned in commit
de7ad6d2
mentioned in commit de7ad6d2fc4334b4992e73bc3f54f7cfa75407a3
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment