HDF5 and NetCDF File Viewer
Open an .h5, .hdf5, .he5 or .nc file to see its group tree, dimensions and attributes, page through any array one slice at a time, plot it and export the slice or the whole dataset.
Läuft in Ihrem Browser. Ihre Dateien verlassen nie Ihr Gerät. So prüfen Sie es
…
So geht's
- 1Open
Load an HDF5 or NetCDF file.
- 2Inspect
Read shapes, units and attributes.
- 3Choose
Pick a dataset in Browse arrays.
- 4Slice
Set the index and the window.
- 5Export
Save the slice or whole dataset.
Über dieses Tool
The HDF5 and NetCDF File Viewer lets you look inside scientific data files from climate models, satellite products, simulations and laboratory instruments without installing HDFView, Panoply or a Python environment. It opens HDF5 files with the extensions .h5, .hdf5 and .he5, NetCDF-4 files, which are HDF5 underneath, MATLAB v7.3 files, and NetCDF classic files in the original CDF-1 layout, the 64-bit offset CDF-2 layout and the CDF-5 layout. NetCDF classic files are decoded by the tool's own reader. HDF5-based files are read with h5wasm, the HDF5 library compiled to WebAssembly, which is loaded from a public CDN the first time you open such a file. The summary shows the file name and size, the detected format, the number of groups and datasets and the total number of values across all datasets. The Datasets tab lists every array with its path, its shape, the names of its dimensions where the file provides them, its data type and its value count. The Attributes tab collects every attribute in the file, one per row, with global attributes on the row for the root group, so units, long names, fill values, titles and history lines can be read and copied in one place. The Structure tab shows the group hierarchy as a tree with each dataset's shape and type. The Browse arrays tab handles the data itself. A list holds the datasets, and for an array with three or more dimensions you set the index of every leading dimension, such as a time step, so you look at one two-dimensional slice at a time. The slice is shown in windows of 200 rows and 40 columns that you move with the first row and first column boxes, and a line chart plots the first five columns of the window.
Who this is for
Climate and ocean science students checking a NetCDF download, remote sensing analysts opening an HDF5 product before writing a script, and engineers who receive simulation output and want to confirm variable names, units and shapes.
How to use it
1. Open an HDF5 or NetCDF file, or press Load a sample. 2. Read the Datasets and Attributes tabs for shapes and units. 3. Open Browse arrays and choose a dataset from the list. 4. Set the leading dimension index, then move the row and column window. 5. Export the slice, the whole dataset as CSV or the file as JSON.
What the sample shows
The sample, temperature-sample.nc, is a NetCDF classic (CDF-1) file of 1.1 KB with the title Sample gridded temperature. It defines three dimensions, time = 6, lat = 4 and lon = 3, and four variables: time in days since 2024-06-01, lat at 20, 30, 40 and 50 degrees north, lon at 80, 90 and 100 degrees east, and temp, a 6 × 4 × 3 float64 array of air temperature at 2 m in degC. The summary counts 1 group, 4 datasets and 85 values. With the time index at 0, the lat 20 row reads 30, 30.5 and 31 and the lat 50 row reads 16.5, 17 and 17.5. Moving the time index to 3 gives the warmest slice, with 32.99 at lat 20, lon 100.
Exporting data
The slice buttons save exactly the rows and columns in view as CSV, XLSX or JSON. Whole dataset CSV writes the full array when it has 5 million values or fewer: a one-dimensional array becomes an index column and a value column, a two-dimensional one becomes a grid, and an array with three or more dimensions becomes a long table with one column per dimension and a value column, so the 72 temp values become 72 rows of time, lat, lon and value. Structure as JSON saves the tree with all attributes, and All data as JSON adds the values of every dataset with up to 2 million values, marking bigger ones as skipped.
Formats it refuses
HDF4 files, including many older .hdf satellite products, are detected and refused with a message suggesting conversion to HDF5 with the h4toh5 tool. Files with neither an HDF5 nor a CDF signature are rejected as well.
Limits
Opening HDF5 needs an internet connection once to fetch the library, though the file itself is read on your device and is not uploaded. Fill values are shown blank in NetCDF classic files, but scale_factor and add_offset are not applied, so packed values appear as stored. The dataset list shows at most 3,000 entries. The viewer is a reading aid and not scientific advice; check units and conventions in the data provider's documentation.
Rechenbeispiel
temperature-sample.nc: temp is 6 × 4 × 3; at time index 3 the lat 20, lon 100 cell reads 32.99 degC.
Kurzinfos
- Kategorie: Mathe & Wissenschaft
- Läuft in Ihrem Browser, ohne Anmeldung, ohne Upload.
- Ihre Eingaben bleiben auf Ihrem Gerät.
- Auf Englisch verfügbar.
- Inhalt zuletzt geprüft:
- Offizielle Quelle: The HDF Group HDF5 library (h5wasm 0.7.8) and the Unidata NetCDF classic format specification
Häufig gestellte Fragen
Which file types does it open?
HDF5 (.h5, .hdf5, .he5), NetCDF-4 and NetCDF classic (.nc, .cdf) in the CDF-1, CDF-2 and CDF-5 layouts, plus MATLAB v7.3 files.
Can it read HDF4 files?
No. HDF4 is an older, different format. The tool recognises it and suggests converting the file to HDF5 with h4toh5 first.
Why does it need an internet connection?
HDF5 files are read with h5wasm, which is downloaded from a CDN the first time. The data file stays on your device.
How do I view one time step of a 3-D variable?
Choose the variable in Browse arrays and set the index of the leading dimension, such as time, to the step you want.
Where are the global attributes?
They are on the rows whose object is / in the Attributes tab, and the first three are also printed beside the root of the Structure tree.
Can I export a whole variable to CSV?
Yes, if it has no more than 5 million values. Arrays with three or more dimensions are written as a long table with one column per dimension.
