Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

NetCDF (network Common Data Form) is a file format for storing multidimensional scientific data (variables) such as temperature, humidity, pressure, wind speed, and direction. Usually, there is one n-dimensional (latitude, longitude, level, and/or time or others) record per variable and there can be several different variable in one netCDF file. Dimensions are also treated as variables. And then there are attributes for each variable, for example the name and unit of the variable or a grid or time description, etc. Have a look at the official website if you like:

    Unidata/UCAR

There are several sets of tools to view and manipulate netCDF files - see below. We have several of them installed on our UQAM servers. to To get access to them you need to load the following module:

...

These are the tools you will have access to after executing the above command:

...

Sommaire

Check content of a netCDF file

...

To list all the timesteps in a netCDF file you can use the command:


Volet
cdo  -sinfo  netCDF_file


Generate & manipulate netCDF files

...

CDO is a collection of command-line operators to manipulate and analyze climate and numerical weather prediction data; includes support for netCDF-3, netCDF-4 and GRIB1, GRIB2, and other formats. CDO provides more than 350 operators, including

  • File information and file operations
  • Selection and Comparision
  • Modification of meta data
  • Arithmetic operations
  • Statistical analysis
  • Regression and Interpolation
  • Vector and spectral Transformations
  • Formatted I/O
  • Climate indices
  • File format conversions

Have a look at the CDO tutorial and full documentation:

     CDO tutorial
     CDO documentation
     CDO reference card

NCO

The NCO toolkit manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, HDF5, and, most recently, Zarr. The netCDF Operators (NCO) comprise about a dozen standalone, command-line programs that take netCDF, HDF, and/or DAP files as input, then operate (e.g., derive new fields, compute statistics, print, hyperslab, manipulate metadata, regrid) and output the results to screen or files in text, binary, or netCDF formats.

...