xref: /freebsd/contrib/file/magic/Magdir/geo (revision ae316d1d1cffd71ab7751f94e10118777a88e027)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*ae316d1dSXin LI# $File: geo,v 1.11 2024/11/09 23:35:01 christos Exp $
4b6cee71dSXin LI# Geo- files from Kurt Schwehr <schwehr@ccom.unh.edu>
5b6cee71dSXin LI
6b6cee71dSXin LI######################################################################
7b6cee71dSXin LI#
8b6cee71dSXin LI# Acoustic Doppler Current Profilers (ADCP)
9b6cee71dSXin LI#
10b6cee71dSXin LI######################################################################
11b6cee71dSXin LI
12b6cee71dSXin LI0	beshort	0x7f7f	RDI Acoustic Doppler Current Profiler (ADCP)
13b6cee71dSXin LI
14b6cee71dSXin LI######################################################################
15b6cee71dSXin LI#
16b6cee71dSXin LI# Metadata
17b6cee71dSXin LI#
18b6cee71dSXin LI######################################################################
19b6cee71dSXin LI
20b6cee71dSXin LI0	string	Identification_Information	FGDC ASCII metadata
21b6cee71dSXin LI
22b6cee71dSXin LI######################################################################
23b6cee71dSXin LI#
24b6cee71dSXin LI# Seimsic / Subbottom
25b6cee71dSXin LI#
26b6cee71dSXin LI######################################################################
27b6cee71dSXin LI
28b6cee71dSXin LI# Knudsen subbottom chirp profiler - Binary File Format: B9
29b6cee71dSXin LI# KEB D409-03167 V1.75 Huffman
30b6cee71dSXin LI0	string	KEB\ 	Knudsen seismic KEL binary (KEB) -
31a4d6d3b8SXin LI>4	regex	[-A-Z0-9]+	Software: %s
32a4d6d3b8SXin LI>>&1	regex	V[0-9]+\\.[0-9]+	version %s
33b6cee71dSXin LI
34b6cee71dSXin LI######################################################################
35b6cee71dSXin LI#
36b6cee71dSXin LI# LIDAR - Laser altimetry or bathy
37b6cee71dSXin LI#
38b6cee71dSXin LI######################################################################
39b6cee71dSXin LI
40b6cee71dSXin LI
41b6cee71dSXin LI# Caris LIDAR format for LADS comes as two parts... ascii location file and binary waveform data
42b6cee71dSXin LI0	string	HCA	LADS Caris Ascii Format (CAF) bathymetric lidar
43a4d6d3b8SXin LI>4	regex [0-9]+\\.[0-9]+	version %s
44b6cee71dSXin LI
45b6cee71dSXin LI0	string	HCB	LADS Caris Binary Format (CBF) bathymetric lidar waveform data
46b6cee71dSXin LI>3      byte    x	version %d .
47b6cee71dSXin LI>4	byte	x	%d
48b6cee71dSXin LI
49b6cee71dSXin LI
50b6cee71dSXin LI######################################################################
51b6cee71dSXin LI#
5248c779cdSXin LI# MULTIBEAM SONARS https://www.ldeo.columbia.edu/res/pi/MB-System/formatdoc/
53b6cee71dSXin LI#
54b6cee71dSXin LI######################################################################
55b6cee71dSXin LI
56b6cee71dSXin LI# GeoAcoustics - GeoSwath Plus
57898496eeSXin LI# Update:	Joerg Jenderek
58898496eeSXin LI# URL:		https://www.mbari.org/products/research-software/mb-system/
59898496eeSXin LI# Reference:	http://ccom.unh.edu/sites/default/files/news-and-events/conferences/auv-bootcamp/
60898496eeSXin LI#		GS%2B-6063-BB-GS%2B-Broadcast-Raw-Data-File-Format-Command-Specification.pdf
61898496eeSXin LI# Note:		All data is written using Intel 80x86 byte ordering (LSB to MSB)
62898496eeSXin LI# raw_header_siz; file header size is 544 bytes
63898496eeSXin LI4	beshort	0x2002
64898496eeSXin LI# GRR: line above is too general as it matches also some Microsoft Event Trace Logs *.ETL
65898496eeSXin LI# skip many (63/753) Microsoft Event Trace Logs (AMSITrace.etl lxcore_kernel.etl NotificationUxBroker.052.etl WindowsBackup.4.etl) with invalid "low" ping header size 0
66898496eeSXin LI>6	leshort	>0	GeoSwath RDF
67898496eeSXin LI# skip foo samples with invalid "high" spare bytes
68898496eeSXin LI#>>536	ulequad	=0	OK_THIS_IS_GeoSwath_RDF
69898496eeSXin LI#!:mime	application/octet-stream
70898496eeSXin LI!:mime	application/x-geoswath-rdf
71898496eeSXin LI# http://ccom.unh.edu/sites/default/files/news-and-events/conferences/auv-bootcamp/060116342.rdf
72898496eeSXin LI!:ext	rdf
73898496eeSXin LI# filename; original file name like: "C:\GS+\Projects\Default\Raw Data Files\060116342.rdf"
74898496eeSXin LI>>8	string	x	"%-.512s"
75898496eeSXin LI# version[8]; recording software version number like: 3.16c
76898496eeSXin LI>>527	string	x	\b, version %-.8s
77898496eeSXin LI# creation; unsigned int file creation time; WHAT time format is this?
78898496eeSXin LI>>0	ulelong	x	\b, creation time %#8.8x
79898496eeSXin LI# raw_ping_header_size; size of ping header in bytes like: 64
80898496eeSXin LI>>6	leshort	!64	\b, ping header size %d
81898496eeSXin LI# frequency; system frequency in hertz like: 500000
82898496eeSXin LI>>520	lelong	x	\b, frequency %d
83898496eeSXin LI# echo_type; Echosounder type index like: 1
84898496eeSXin LI>>524	leshort	x	\b, echo type %#x
85898496eeSXin LI# file_mode; file mode mask (0x00 bathy & sidescan, 0x80 bathy, 0x40 sidescan, 0x20 seismic)
86898496eeSXin LI>>526	ubyte	!0	\b, file mode %#2.2x
87898496eeSXin LI# pps_mode; PPS synch mode like: 2
88898496eeSXin LI>>535	byte	x	\b, pps mode %#x
89898496eeSXin LI# char spare[8]; apparently zeroed
90898496eeSXin LI>>536	ubequad	!0	\b, spare %#16.16llx
91898496eeSXin LI# Ping_number; 1st ping number like: 4944
92898496eeSXin LI>>544	lelong	x	\b, 1st ping number %d
93898496eeSXin LI
94b6cee71dSXin LI0	string	Start:-	GeoSwatch auf text file
95b6cee71dSXin LI
96b6cee71dSXin LI# Seabeam 2100
97b6cee71dSXin LI# mbsystem code mb41
98b6cee71dSXin LI0	string SB2100	SeaBeam 2100 multibeam sonar
99b6cee71dSXin LI0	string SB2100DR	SeaBeam 2100 DR multibeam sonar
100b6cee71dSXin LI0	string SB2100PR SeaBeam 2100 PR multibeam sonar
101b6cee71dSXin LI
102b6cee71dSXin LI# This corresponds to MB-System format 94, L-3/ELAC/SeaBeam XSE vendor
103b6cee71dSXin LI# format. It is the format of our upgraded SeaBeam 2112 on R/V KNORR.
104b6cee71dSXin LI0    string $HSF    XSE multibeam
105b6cee71dSXin LI
10648c779cdSXin LI# mb121 https://www.saic.com/maritime/gsf/
107b6cee71dSXin LI8	string	GSF-v	SAIC generic sensor format (GSF) sonar data,
108a4d6d3b8SXin LI>&0	regex [0-9]+\\.[0-9]+	version %s
109b6cee71dSXin LI
11048c779cdSXin LI# MGD77 - https://www.ngdc.noaa.gov/mgg/dat/geodas/docs/mgd77.htm
111b6cee71dSXin LI# mb161
112b6cee71dSXin LI9	string MGD77	MGD77 Header, Marine Geophysical Data Exchange Format
113b6cee71dSXin LI
114b6cee71dSXin LI# MBSystem processing caches the mbinfo output
115b6cee71dSXin LI1	string	Swath\ Data\ File:	mbsystem info cache
116b6cee71dSXin LI
117b6cee71dSXin LI# Caris John Hughes Clark format
118b6cee71dSXin LI0	string	HDCS	Caris multibeam sonar related data
119b6cee71dSXin LI1	string	Start/Stop\ parameter\ header:	Caris ASCII project summary
120b6cee71dSXin LI
121b6cee71dSXin LI######################################################################
122b6cee71dSXin LI#
123b6cee71dSXin LI# Visualization and 3D modeling
124b6cee71dSXin LI#
125b6cee71dSXin LI######################################################################
126b6cee71dSXin LI
127898496eeSXin LI# IVS - IVS3d.com Tagged Data Representation
128b6cee71dSXin LI0	string	%%\ TDR\ 2.0	IVS Fledermaus TDR file
129b6cee71dSXin LI
130b6cee71dSXin LI# http://www.ecma-international.org/publications/standards/Ecma-363.htm
131b6cee71dSXin LI# 3D in PDFs
132b6cee71dSXin LI0	string	U3D	ECMA-363, Universal 3D
133b6cee71dSXin LI
134b6cee71dSXin LI######################################################################
135b6cee71dSXin LI#
136b6cee71dSXin LI# Support files
137b6cee71dSXin LI#
138b6cee71dSXin LI######################################################################
139b6cee71dSXin LI
140b6cee71dSXin LI# https://midas.psi.ch/elog/
141b6cee71dSXin LI0	string	$@MID@$	elog journal entry
142b6cee71dSXin LI
14348c779cdSXin LI# Geospatial Designs https://www.geospatialdesigns.com/surfer6_format.htm
144b6cee71dSXin LI0	string		DSBB	Surfer 6 binary grid file
145b6cee71dSXin LI>4	leshort		x	\b, %d
146b6cee71dSXin LI>6	leshort		x	\bx%d
147b6cee71dSXin LI>8	ledouble	x	\b, minx=%g
148b6cee71dSXin LI>16	ledouble	x	\b, maxx=%g
149b6cee71dSXin LI>24	ledouble	x	\b, miny=%g
150b6cee71dSXin LI>32	ledouble	x	\b, maxy=%g
151b6cee71dSXin LI>40	ledouble	x	\b, minz=%g
152b6cee71dSXin LI>48	ledouble	x	\b, maxz=%g
153b6cee71dSXin LI
15458a0f0d0SEitan Adler# magic for LAS format files
15558a0f0d0SEitan Adler# alex myczko <alex@aiei.ch>
15648c779cdSXin LI# https://www.asprs.org/wp-content/uploads/2010/12/LAS_1_3_r11.pdf
15758a0f0d0SEitan Adler0	string		LASF	LIDAR point data records
15858a0f0d0SEitan Adler>24	byte		>0	\b, version %u
15958a0f0d0SEitan Adler>25	byte		>0	\b.%u
16058a0f0d0SEitan Adler>26	string		>\0	\b, SYSID %s
16158a0f0d0SEitan Adler>58	string		>\0	\b, Generating Software %s
16258a0f0d0SEitan Adler
16358a0f0d0SEitan Adler# magic for PCD format files
16458a0f0d0SEitan Adler# alex myczko <alex@aiei.ch>
16558a0f0d0SEitan Adler# http://pointclouds.org/documentation/tutorials/pcd_file_format.php
16658a0f0d0SEitan Adler0	string		#\ .PCD	Point Cloud Data
167*ae316d1dSXin LI
168*ae316d1dSXin LI# FlatGeobuf is a GIS file format for encoding geographic data.
169*ae316d1dSXin LI# https://flatgeobuf.org/#specification
170*ae316d1dSXin LI0	bequad		0x6667620366676201	FlatGeobuf file
171