GDALMDIMINFO(1)
π GDALMDIMINFO π
okay bestie, welcome to the gdalmdiminfo(1) page β yes that's the GDAL manual, and yes this utility is lowkey iconic. it lives in the GDAL family and it's about to spill all the tea on your multidimensional datasets β¨
πΈ NAME πΈ
gdalmdiminfo β reports structure and content of a multidimensional dataset. that's it, that's the vibe. it literally just tells you what's inside π«Ά
β SYNOPSIS β
gdalmdiminfo [--help-general] [-oo NAME=VALUE]* [-arrayoption NAME=VALUE]*
[-detailed] [-nopretty] [-array {array_name}] [-limit {number}]
[-stats] <datasetname>
π¦ DESCRIPTION π¦
so the gdalmdiminfo program lists various information about a GDAL supported multidimensional raster dataset as JSON output. it follows the following JSON schema π
the following command line parameters can appear in any order β no cap, order does not matter here, she's flexible like that:
-detailedβ the most verbose output. report attribute data types and array values. it's giving "tell me EVERYTHING" energy π-noprettyβ outputs on a single line without any indentation. for when you want your JSON compact and unbothered π-array{array_name}β name of the array used to restrict the output to the specified array. basically spotlight one array and let it be the main character β¨-limit{number}β number of values in each dimension that is used to limit the display of array values. by default, unlimited. only taken into account if used with-detailed. so like, if you're not doing-detailed, this flag is literally not invited to the party π-oo<NAME=VALUE>β dataset open option (format specific). this option may be used several times. stack 'em, bestie π-arrayoption<NAME=VALUE>β option passed toGDALGroup::GetMDArrayNames()to filter reported arrays. such option is format specific. consult driver documentation. this option may be used several times. iykyk, go read the driver docs π-statsβ read and display image statistics. force computation if no statistics are stored in an image. β¨ new in version 3.2 β¨
π«Ά tiny reminder:-ooand-arrayoptionare the repeat offenders β you can use each of them several times. not a one-and-done situation.
π§ C API π§
this utility is also callable from C with GDALMultiDimInfo(). yes, C girlies, you're included too π
π₯ EXAMPLES π₯
- display general structure1
$ gdalmdiminfo netcdf-4d.nc
{
"type": "group",
"name": "/",
"attributes": {
"Conventions": "CF-1.5"
},
"dimensions": [
{
"name": "levelist",
"full_name": "/levelist",
"size": 2,
"type": "VERTICAL",
"indexing_variable": "/levelist"
},
{
"name": "longitude",
"full_name": "/longitude",
"size": 10,
"type": "HORIZONTAL_X",
"direction": "EAST",
"indexing_variable": "/longitude"
},
{
"name": "latitude",
"full_name": "/latitude",
"size": 10,
"type": "HORIZONTAL_Y",
"direction": "NORTH",
"indexing_variable": "/latitude"
},
{
"name": "time",
"full_name": "/time",
"size": 4,
"type": "TEMPORAL",
"indexing_variable": "/time"
}
],
"arrays": {
"levelist": {
"datatype": "Int32",
"dimensions": [
"/levelist"
],
"attributes": {
"long_name": "pressure_level"
},
"unit": "millibars"
},
"longitude": {
"datatype": "Float32",
"dimensions": [
"/longitude"
],
"attributes": {
"standard_name": "longitude",
"long_name": "longitude",
"axis": "X"
},
"unit": "degrees_east"
},
"latitude": {
"datatype": "Float32",
"dimensions": [
"/latitude"
],
"attributes": {
"standard_name": "latitude",
"long_name": "latitude",
"axis": "Y"
},
"unit": "degrees_north"
},
"time": {
"datatype": "Float64",
"dimensions": [
"/time"
],
"attributes": {
"standard_name": "time",
"calendar": "standard"
},
"unit": "hours since 1900-01-01 00:00:00"
},
"t": {
"datatype": "Int32",
"dimensions": [
"/time",
"/levelist",
"/latitude",
"/longitude"
],
"nodata_value": -32767
}
},
"structural_info": {
"NC_FORMAT": "CLASSIC"
}
}
look at all those dimensions and arrays living their best lives π the t array ate and left no crumbs, honestly π
- display detailed information about a given array
$ gdalmdiminfo netcdf-4d.nc -array t -detailed -limit 3
see how -array t spotlights the t array, -detailed goes full detective mode, and -limit 3 keeps things cute and capped at 3 values per dimension? chef's kiss π
π AUTHOR π
Even Rouault <even.rouault@spatialys.com> β the icon, the legend, the moment π
π COPYRIGHT π
1998-2026
okay that's the whole page bestie, you're officially fluent in gdalmdiminfo π§β¨ this gem comes straight from the GDAL source/version and landed on Jan 08, 2026 β go forth and inspect those multidimensional datasets, no cap, periodt ππ
π¦
π¦ where this page comes from
- epel 9: gdal3.4 3.4.3-5.el9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms