pylag.processing.ncview module

Tools to assist with opening and inspecting PyLag input and output files

class pylag.processing.ncview.Viewer(filename, mask=True, quiet=True, time_rounding=None)[source]

Bases: object

Class to provide easy access to data stored in netCDF format

This class can be used to view and access data in PyLag data files. In general it will work with GOTM outputs too, although FVCOM outputs are are best read using PyFVCOM’s FileReader class.

Code adapted from the python module ncdfView.py written by Momme Butenschon (CMCC, formerly PML).

Variables

_filename (str) – Full or absolute path to the data file

close()[source]

Close dataset and exit

property date

Date array

list_vars()[source]

List all variables stored in the file

property time

Time array

var_info(var_str)[source]

Print variable info

Parameters

var_str (string) – Variable name/key