Snowtools Exceptions

Created on 4 oct. 2012

@author: lafaysse

exception utils.FileException.DirFileException(path)[source]

Bases: Exception

Exception when a file is provided instead of a directory

Parameters:

path – the file conerned

exception utils.FileException.DirNameException(path)[source]

Bases: Exception

Exception for a non-existent directory

Parameters:

path – the directory conerned

exception utils.FileException.FileExistsException(path)[source]

Bases: Exception

Exception for an existing file for which overwriting is not allowed

Parameters:

path – the file conerned

exception utils.FileException.FileExtensionException(path)[source]

Bases: Exception

Exception for a non-existent file

Parameters:

path – the file conerned

exception utils.FileException.FileNameException(path)[source]

Bases: Exception

Exception for a non-existent file

Parameters:

path – the file conerned

exception utils.FileException.FileOpenException(path)[source]

Bases: Exception

Exception when a file cannot be openned

Parameters:

path – the file conerned

exception utils.FileException.FileParseException(path)[source]

Bases: Exception

Exception when parsing an XML file

Parameters:

path – the path to the XML file

exception utils.FileException.GeometryException(altmin, altmax)[source]

Bases: Exception

Exception when the asked point is not present in selected geometry

Parameters:
  • altmin – the min altitude in the geometry

  • altmax – the max altitude in the geometry

exception utils.FileException.MassifException(massifrequest, massifavail)[source]

Bases: Exception

Exception when the selected massif is not present in the file.

Parameters:
  • massifrequest – The requested massif number

  • massifavail – The list of available massifs

exception utils.FileException.MassifGeometryException(filename)[source]

Bases: Exception

Exception when a file is not in the massif geometry

Parameters:

filename – Name of the file

exception utils.FileException.ModuleImportException(module, message='')[source]

Bases: Exception

exception utils.FileException.MultipleValueException[source]

Bases: Exception

Exception when multiple values match the semection but only one is allowed

exception utils.FileException.TimeException(path)[source]

Bases: Exception

Exception when time variable is not suitable

Parameters:

path – the file conerned

exception utils.FileException.TimeListException(path, dimtime)[source]

Bases: Exception

Exception when merging timeseries of inconsistent length

Parameters:
  • path – the list of files for the merge

  • dimtime – the list of time dimensions in each file

exception utils.FileException.TimeUnitsException(path)[source]

Bases: Exception

Exception when time variable is not suitable

Parameters:

path – the file conerned

exception utils.FileException.UndefinedDirectoryException(path)[source]

Bases: Exception

Exception for a non-defined directory

Parameters:

path – the directory conerned

exception utils.FileException.UnknownGridTypeException(gridtype, projtype)[source]

Bases: Exception

exception utils.FileException.UnsupportedOptionException[source]

Bases: Exception

Exception when s2m command arguments are inconsistent.

exception utils.FileException.VarDimensionException(varname, var, expectedrank=1)[source]

Bases: Exception

Exception when the expected rank is not the correct one in the file for a netCDF variable.

Parameters:
  • varname (str) – the variable name

  • var (netCDF variable) – The variable object

  • expectedrank (int) – The expected rank

exception utils.FileException.VarNameException(varname, path)[source]

Bases: Exception

Exception when a variable is not found in a netCDF file.

Parameters:
  • varname – the variable name

  • path – the path to netCDF file

exception utils.FileException.VarWriteException(varname, varshape, varfileshape)[source]

Bases: Exception

Exception when trying to write a variable in a netCDF file.