dtscalibration.read_sensornet_files

dtscalibration.read_sensornet_files(filepathlist=None, directory=None, file_ext='*.ddf', timezone_input_files='UTC', timezone_netcdf='UTC', silent=False, add_internal_fiber_length=50.0, fiber_length=None, **kwargs)[source]

Read a folder with measurement files. Each measurement file contains values for a single timestep. Remember to check which timezone you are working in.

Parameters:
  • filepathlist (list of str, optional) – List of paths that point the the silixa files

  • directory (str, Path, optional) – Path to folder

  • timezone_input_files (str, optional) – Timezone string of the measurement files. Remember to check when measurements are taken. Also if summertime is used.

  • timezone_netcdf (str, optional) – Timezone string of the netcdf file. UTC follows CF-conventions.

  • file_ext (str, optional) – file extension of the measurement files

  • silent (bool) – If set tot True, some verbose texts are not printed to stdout/screen

  • add_internal_fiber_length (float) – Set to zero if only the measurements of the fiber connected to the DTS system of interest. Set to 50 if you also want to keep the internal reference section.

  • fiber_length (float) – It is the fiber length between the two connector entering the DTS device. If left to None, it is approximated with x[-1] - add_internal_fiber_length.

  • kwargs (dict-like, optional) – keyword-arguments are passed to DataStore initialization

  • Notes

  • ——

  • Compressed sensornet files can not be directly decoded

  • because the files are encoded with encoding=’windows-1252’ instead of

  • UTF-8.

  • Returns

  • ——–

  • datastore (DataStore) – The newly created datastore.