NC3TONC4(1)
β¨ NC3TONC4 β the manual page, bestie edition β¨
okay so you found yourself in section 1 of the general commands manual, staring at nc3tonc4, and you're like "what is this". don't worry, I got you π
πΈ NAME πΈ
nc3tonc4 β a program to convert netCDF 3 files to netCDF 4 format files π¦
π SYNOPSIS π
nc3tonc4 [-h] [-o] [--vars=var1,var2,..] [--zlib=(0|1)]
[--complevel=(1-9)] [--shuffle=(0|1)] [--fletcher32=(0|1)]
[--unpackshort=(0|1)] [--quantize=var1=n1,var2=n2,..] netcdf3filename
netcdf4filename
π« DESCRIPTION π«
This manual page documents briefly the nc3tonc4 command.
nc3tonc4 is a program that converts a netCDF 3 file into netCDF 4 format. and babes, it does not stop there π optionally it will unpack variables that are packed as short integers (with scale_factor and add_offset) into floats, and it will add zlib compression β with the HDF5 shuffle filter and fletcher32 checksum, the whole glow-up routine β¨
your data may also be quantized (that means truncated) to a precision you specify, which makes the compression improve. it's giving β¨ skinny legend data β¨.
π OPTIONS π
These programs follow the usual GNU command line syntax, with long options starting with two dashes (-). A summary of options is included below. slay, let's go one by one π
-hβ Shows a summary of the available options. the "hello what do you do" flag π«Ά-oβ Overwrite destination file. the default is to raise an error if the output file already exists, so if you want it gone-gone, you say so.--varsβ A comma separated list of variable names to copy. the default is to copy all variables. like, all of them. no one left behind π--classic=(0|1)β UseNETCDF4_CLASSICformat instead ofNETCDF4. default =1.--zlib=(0|1)β Activate (or disable) zlib compression. the default is to activate it, obviously, she's compressed and thriving.--complevel=(1-9)β Set the zlib compression level.6is default.--shuffle=(0|1)β Activate (or disable) the shuffle filter. it is active by default.--fletcher32=(0|1)β Activate (or disable) the fletcher32 checksum. it is not active by default, so flip it on if you want that.--unpackshort=(0|1)β Unpack short integer variables to float variables usingscale_factorandadd_offsetnetCDF variable attributes. it is active by default.--quantize=(comma separated list of variable name=integer pairs)β Truncate the data in the specified variables to a given decimal precision. for example,'speed=2, height=-2, temp=0'will cause the variable'speed'to be truncated to a precision of0.01,'height'to a precision of100and'temp'to1. this can significantly improve compression. the default is not to quantize any of the variables. no cap, this one's the compression cheat code π--quiet=(0|1)β If set to1, don't print any diagnostic information. silent mode, mysterious era π--chunk=(integer)β The number of records along unlimited dimension to write at once. the default is10. it is ignored if there is no unlimited dimension. ifchunk=0, it means write all the data at once.--istart=(integer)β The number of the record to start at along unlimited dimension. the default is0. this option is ignored if there is no unlimited dimension.--istop=(integer)β The number of the record to stop at along unlimited dimension. the default is1. this option is ignored if there is no unlimited dimension.
heads up bestie:--classicand--quietare in the options list but they are not in the synopsis line above, so don't come for me, that's just how the page is π
π¦ SEE ALSO π¦
π AUTHOR π
This manual page was written by Ross Gammon <rossgammon@mail.dk> based on the options displayed by nc3tonc4 -h.
and that's the whole page, bestie π«Ά this one's dated 22 Mar 2015, straight out of the General Commands Manual, and it's NC3TONC4(1) all the way through. go convert something gorgeous πβ¨πΈ
π¦ where this page comes from
- debian bookworm: python3-netcdf4 1.6.2-1+b1 Β· MIT
- debian trixie: python3-netcdf4 1.7.2-1+b4 Β· MIT
- ubuntu jammy: python3-netcdf4 1.5.8-1build1 Β· MIT
- ubuntu noble: python3-netcdf4 1.6.5-1build3 Β· MIT
- ubuntu questing: python3-netcdf4 1.7.2-1build4
- ubuntu resolute: python3-netcdf4 1.7.4-1build1 Β· MIT
- ubuntu stonking: python3-netcdf4 1.7.4-1build1 Β· MIT
- Copyright 2015, Ross Gammon <rossgammon@mail.dk>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms