xref: /freebsd/contrib/file/magic/Magdir/geo (revision ae316d1d1cffd71ab7751f94e10118777a88e027)
1
2#------------------------------------------------------------------------------
3# $File: geo,v 1.11 2024/11/09 23:35:01 christos Exp $
4# Geo- files from Kurt Schwehr <schwehr@ccom.unh.edu>
5
6######################################################################
7#
8# Acoustic Doppler Current Profilers (ADCP)
9#
10######################################################################
11
120	beshort	0x7f7f	RDI Acoustic Doppler Current Profiler (ADCP)
13
14######################################################################
15#
16# Metadata
17#
18######################################################################
19
200	string	Identification_Information	FGDC ASCII metadata
21
22######################################################################
23#
24# Seimsic / Subbottom
25#
26######################################################################
27
28# Knudsen subbottom chirp profiler - Binary File Format: B9
29# KEB D409-03167 V1.75 Huffman
300	string	KEB\ 	Knudsen seismic KEL binary (KEB) -
31>4	regex	[-A-Z0-9]+	Software: %s
32>>&1	regex	V[0-9]+\\.[0-9]+	version %s
33
34######################################################################
35#
36# LIDAR - Laser altimetry or bathy
37#
38######################################################################
39
40
41# Caris LIDAR format for LADS comes as two parts... ascii location file and binary waveform data
420	string	HCA	LADS Caris Ascii Format (CAF) bathymetric lidar
43>4	regex [0-9]+\\.[0-9]+	version %s
44
450	string	HCB	LADS Caris Binary Format (CBF) bathymetric lidar waveform data
46>3      byte    x	version %d .
47>4	byte	x	%d
48
49
50######################################################################
51#
52# MULTIBEAM SONARS https://www.ldeo.columbia.edu/res/pi/MB-System/formatdoc/
53#
54######################################################################
55
56# GeoAcoustics - GeoSwath Plus
57# Update:	Joerg Jenderek
58# URL:		https://www.mbari.org/products/research-software/mb-system/
59# Reference:	http://ccom.unh.edu/sites/default/files/news-and-events/conferences/auv-bootcamp/
60#		GS%2B-6063-BB-GS%2B-Broadcast-Raw-Data-File-Format-Command-Specification.pdf
61# Note:		All data is written using Intel 80x86 byte ordering (LSB to MSB)
62# raw_header_siz; file header size is 544 bytes
634	beshort	0x2002
64# GRR: line above is too general as it matches also some Microsoft Event Trace Logs *.ETL
65# 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
66>6	leshort	>0	GeoSwath RDF
67# skip foo samples with invalid "high" spare bytes
68#>>536	ulequad	=0	OK_THIS_IS_GeoSwath_RDF
69#!:mime	application/octet-stream
70!:mime	application/x-geoswath-rdf
71# http://ccom.unh.edu/sites/default/files/news-and-events/conferences/auv-bootcamp/060116342.rdf
72!:ext	rdf
73# filename; original file name like: "C:\GS+\Projects\Default\Raw Data Files\060116342.rdf"
74>>8	string	x	"%-.512s"
75# version[8]; recording software version number like: 3.16c
76>>527	string	x	\b, version %-.8s
77# creation; unsigned int file creation time; WHAT time format is this?
78>>0	ulelong	x	\b, creation time %#8.8x
79# raw_ping_header_size; size of ping header in bytes like: 64
80>>6	leshort	!64	\b, ping header size %d
81# frequency; system frequency in hertz like: 500000
82>>520	lelong	x	\b, frequency %d
83# echo_type; Echosounder type index like: 1
84>>524	leshort	x	\b, echo type %#x
85# file_mode; file mode mask (0x00 bathy & sidescan, 0x80 bathy, 0x40 sidescan, 0x20 seismic)
86>>526	ubyte	!0	\b, file mode %#2.2x
87# pps_mode; PPS synch mode like: 2
88>>535	byte	x	\b, pps mode %#x
89# char spare[8]; apparently zeroed
90>>536	ubequad	!0	\b, spare %#16.16llx
91# Ping_number; 1st ping number like: 4944
92>>544	lelong	x	\b, 1st ping number %d
93
940	string	Start:-	GeoSwatch auf text file
95
96# Seabeam 2100
97# mbsystem code mb41
980	string SB2100	SeaBeam 2100 multibeam sonar
990	string SB2100DR	SeaBeam 2100 DR multibeam sonar
1000	string SB2100PR SeaBeam 2100 PR multibeam sonar
101
102# This corresponds to MB-System format 94, L-3/ELAC/SeaBeam XSE vendor
103# format. It is the format of our upgraded SeaBeam 2112 on R/V KNORR.
1040    string $HSF    XSE multibeam
105
106# mb121 https://www.saic.com/maritime/gsf/
1078	string	GSF-v	SAIC generic sensor format (GSF) sonar data,
108>&0	regex [0-9]+\\.[0-9]+	version %s
109
110# MGD77 - https://www.ngdc.noaa.gov/mgg/dat/geodas/docs/mgd77.htm
111# mb161
1129	string MGD77	MGD77 Header, Marine Geophysical Data Exchange Format
113
114# MBSystem processing caches the mbinfo output
1151	string	Swath\ Data\ File:	mbsystem info cache
116
117# Caris John Hughes Clark format
1180	string	HDCS	Caris multibeam sonar related data
1191	string	Start/Stop\ parameter\ header:	Caris ASCII project summary
120
121######################################################################
122#
123# Visualization and 3D modeling
124#
125######################################################################
126
127# IVS - IVS3d.com Tagged Data Representation
1280	string	%%\ TDR\ 2.0	IVS Fledermaus TDR file
129
130# http://www.ecma-international.org/publications/standards/Ecma-363.htm
131# 3D in PDFs
1320	string	U3D	ECMA-363, Universal 3D
133
134######################################################################
135#
136# Support files
137#
138######################################################################
139
140# https://midas.psi.ch/elog/
1410	string	$@MID@$	elog journal entry
142
143# Geospatial Designs https://www.geospatialdesigns.com/surfer6_format.htm
1440	string		DSBB	Surfer 6 binary grid file
145>4	leshort		x	\b, %d
146>6	leshort		x	\bx%d
147>8	ledouble	x	\b, minx=%g
148>16	ledouble	x	\b, maxx=%g
149>24	ledouble	x	\b, miny=%g
150>32	ledouble	x	\b, maxy=%g
151>40	ledouble	x	\b, minz=%g
152>48	ledouble	x	\b, maxz=%g
153
154# magic for LAS format files
155# alex myczko <alex@aiei.ch>
156# https://www.asprs.org/wp-content/uploads/2010/12/LAS_1_3_r11.pdf
1570	string		LASF	LIDAR point data records
158>24	byte		>0	\b, version %u
159>25	byte		>0	\b.%u
160>26	string		>\0	\b, SYSID %s
161>58	string		>\0	\b, Generating Software %s
162
163# magic for PCD format files
164# alex myczko <alex@aiei.ch>
165# http://pointclouds.org/documentation/tutorials/pcd_file_format.php
1660	string		#\ .PCD	Point Cloud Data
167
168# FlatGeobuf is a GIS file format for encoding geographic data.
169# https://flatgeobuf.org/#specification
1700	bequad		0x6667620366676201	FlatGeobuf file
171