Skip to main content

parse_header

Function parse_header 

Source
pub fn parse_header(data: &[u8], format: NcFormat) -> Result<ClassicHeader>
Expand description

Parse a complete classic NetCDF header from raw file bytes.

The format parameter must be one of Classic, Offset64, or Cdf5 (the caller has already read and validated the magic bytes).