cube_cnv_netcdf2segy_3D.py
#
Utility script to convert 3D cube from netCDF to SEG-Y format.
segy_writer_custom(seisnc, segyfile, trace_header_map=None, il_chunks=None, dimension=None, silent=False, use_text=False)
#
Custom implementation of segysak.segy.segy_writer
to change some hardcoded defaults.
Parameters:
-
seisnc
(Dataset
) –Input datset to write.
-
segyfile
(str
) –Output SEG-Y file path.
-
trace_header_map
(dict
, default:None
) –A dictionary of seisnc variables and byte locations. The variable will be written to the trace headers in the assigned byte location (default: None). By default:
CMP=23
,cdp_x=181
,cdp_y=185
,iline=189
,xline=193
. -
il_chunks
(int
, default:None
) –The size of data to work on - if you have memory limitations (default:
10
). This is primarily used for large 3D and ignored for 2D data. -
dimension
(str
, default:None
) –Data dimension to output, defaults to
twt
ordepth
whichever is present. -
silent
(bool
, default:False
) –Turn off progress reporting (defaults:
False
). -
use_text
(bool
, default:False
) –Use the seisnc text for the EBCIDC output. This text usally comes from the loaded SEG-Y file and may not match the segysak SEG-Y output (default:
False
).
References#
Source code in pseudo_3D_interpolation\cube_cnv_netcdf2segy_3D.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
|
main(argv=sys.argv)
#
Convert netCDF
cube to SEG_Y
format.
Source code in pseudo_3D_interpolation\cube_cnv_netcdf2segy_3D.py
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 |
|