welltestpy.data.FieldSite

class FieldSite(name, description='Field site', coordinates=None)[source]

Bases: object

Class for a field site.

This is a class for a field site. It has a name and a description.

Parameters
  • name (str) – Name of the field site.

  • description (str, optional) – Description of the field site. Default: "no description"

  • coordinates (Variable, optional) – Coordinates of the field site (lat, lon). Default: None

Attributes
coordinates

numpy.ndarray: Coordinates of the field site.

info

str: Info about the field site.

pos

numpy.ndarray: Position of the field site.

Methods

save([path, name])

Save a field site to file.

save(path='', name=None)[source]

Save a field site to file.

This writes the field site to a csv file.

Parameters
  • path (str, optional) – Path where the variable should be saved. Default: ""

  • name (str, optional) – Name of the file. If None, the name will be generated by "Field_"+name. Default: None

Notes

The file will get the suffix ".fds".

property coordinates

Coordinates of the field site.

Type

numpy.ndarray

property info

Info about the field site.

Type

str

property pos

Position of the field site.

Type

numpy.ndarray