Module helper_module
[hide private]
[frames] | no frames]

Module helper_module

source code

This is a place for small helper functions to live.

Functions [hide private]
 
CDL2nc(input_file, output_file=None)
Makes a netCDF file from a text file in the CDL format.
source code
 
nc2CDL(input_file, output_file=None)
Performs a ncdump.
source code
 
open_netCDF_into_python(input_file, rw_opt='r')
This opens a netCDF file.
source code
Function Details [hide private]

CDL2nc(input_file, output_file=None)

source code 
Makes a netCDF file from a text file in the CDL format.
Parameters:
  • input_file (string) - The name of the input file.
  • output_file (string) - The name of the output file, if none is given the same name as the CDL file is used with a .nc extension.

nc2CDL(input_file, output_file=None)

source code 
Performs a ncdump.
Parameters:
  • input_file (string) - The name of the input file.
  • output_file (string) - The name of the output file, if none is given the same name as the netCDF file is used with a .CDL extension.

open_netCDF_into_python(input_file, rw_opt='r')

source code 
This opens a netCDF file.
Parameters:
  • input_file (string) - The netCDF file to be read.
  • rw_opt (stirng) - Reading 'r' (default), writing 'w'
Returns:
A Scientific.IO.NetCDF.NetCDFFile instance