irfpy.npdcommon.npd_ncdf

Netcdf files of NPD

class irfpy.npdcommon.npd_ncdf.NetcdfFile(filename)[source]

Bases: object

Read the ncdf file, load everything into memory.

Parameters

filename – The file name

The data is kept to attributes as follows

  • dimkey where the names of dimensions are stored

  • dim, a dictionary, where the dimension is stored

  • varkey where the variable names are stored

  • var where the variables (data) are stored

parse()[source]
class irfpy.npdcommon.npd_ncdf.NetcdfFileRaw(filename)[source]

Bases: irfpy.npdcommon.npd_ncdf.NetcdfFile

Represent a raw mode data file.

Read the ncdf file, load everything into memory.

Parameters

filename – The file name

The data is kept to attributes as follows

  • dimkey where the names of dimensions are stored

  • dim, a dictionary, where the dimension is stored

  • varkey where the variable names are stored

  • var where the variables (data) are stored

parse()[source]

Parsing the netcdf file

Returns

A tuple, (tlist, dlist). dlist is a list of NpdRawPacket objects.

irfpy.npdcommon.npd_ncdf.load_npd_rawmode(filename)[source]

Loading function of NPD raw mode data.

Parameters

filename – The netcdf data file. Gzipped.

Returns

A tuple, (tlist, dlist). dlist element format, TBD.