Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
scientificdata:start [2021/09/01 15:26] christianscientificdata:start [2021/09/01 15:28] – [Translating gridded data from seismic interpretation to GMT-compatible format] christian
Line 17: Line 17:
 From Petrel one can usually export ''ZMAP+'' formatted grids in a given projection. It pays off to use a projection which is GDAL/PROJ compatible so that one can simply use the [[https://epsg.io|EPSG]] codes to reproject grids. I found it easier to use the GDAL-stack instead of going forth and back using GMT and/or GIS. Here's the basic steps I usually go through: From Petrel one can usually export ''ZMAP+'' formatted grids in a given projection. It pays off to use a projection which is GDAL/PROJ compatible so that one can simply use the [[https://epsg.io|EPSG]] codes to reproject grids. I found it easier to use the GDAL-stack instead of going forth and back using GMT and/or GIS. Here's the basic steps I usually go through:
  
-  - ''gdal_translate -of netCDF -a_srs EPSG:12345 INPUT_grd_UTM_zmap+.dat OUTPUT_grd_UTM.nc''+  - ''gdal_translate -of netCDF -a_srs EPSG:12345 INPUT_grd_UTM_zmap+.dat OUTPUT_grd_UTM.nc'' (chose from GDAL's exhaustive [[https://gdal.org/drivers/raster/index.html|raster drivers]] list)
   - Check whether the output is correct using ''gdalinfo OUTPUT_grd_UTM.nc''   - Check whether the output is correct using ''gdalinfo OUTPUT_grd_UTM.nc''
   - Re-project grid using '' gdalwarp -t_srs EPSG:4326 OUTPUT_grd_UTM.nc OUTPUT_grd_EPSG4326.nc''   - Re-project grid using '' gdalwarp -t_srs EPSG:4326 OUTPUT_grd_UTM.nc OUTPUT_grd_EPSG4326.nc''