How to consider coord_scalar #136
-
I need your help for implementing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, coordinate scaling is not handled by default and must be applied by the user. Any trace header information must be stored as intergers which is why, if you have floating point precission coordinates you must apply a scaling factor. To scale your coordinates, apply the following segy = xr.open_dataset(
file_path, engine='sgy_engine',
dim_byte_fields={"iline": InlineLoc, "xline": XlineLoc},
extra_byte_fields={"cdp_x": cdpxLoc, "cdp_y": cdpyLoc}
)
# multiply by 100
segy.segysak.scale_coords(100)
# multiply by 0.01
# segy.segysak.scale_coords(-100) The convention here is part of the SEG-Y standard and comes from how the coordinate scalar (also an integer) is represented in the trace headers. You can find the reference for this function here but I know the Table for the function definition from the docstring doesn't render well in the HTML reference.. |
Beta Was this translation helpful? Give feedback.
Hi, coordinate scaling is not handled by default and must be applied by the user.
Any trace header information must be stored as intergers which is why, if you have floating point precission coordinates you must apply a scaling factor. To scale your coordinates, apply the following
The convention here is part of the SEG-Y standard and comes from how the coordinate scalar (also an integer) is represented in …