cts5_energy_process: Use NKE routine to estimate energy from all technical files

View source: R/CTS5_Energy.R

cts5_energy_processR Documentation

Use NKE routine to estimate energy from all technical files

Description

call NKE routine to estimate energy from all technical files included in a directory

Usage

cts5_energy_process(
  floatname = "",
  subdir = "./ENY",
  AutoLoad = T,
  FromLastReset = F,
  CycleNumber = NULL,
  metadata = NULL,
  default_vol = 800,
  default_TS = 5,
  default_SDCard = 0,
  default_bat_self_discharge = 1.5,
  default_ExtTrig = 0,
  Nke_ProgPath = ""
)

Arguments

floatname

hexa name of the float. If "", the floatname will automatically found.

subdir

subdir where to put .csv ASCII files

AutoLoad

if true, the last estimation will be loaded and only new technical files will be processed

FromLastReset

if true, restricts the decoding from the last reset

CycleNumber

if not null, restricts the decoding to the list of cycles

default_vol

default emergence volume in cc. To be used if the inifile file is not found

default_TS

default temperature at surface. To be used if sbe41 data are not found

default_SDCard

default SDCard status (0 = not present). To be used if information is not found in metadata.

default_bat_self_discharge

batterie self discharge in A / year

default_ExtTrig

intensity of the External Triggered sensor in A

Nke_ProgPath

path to the nke decoder (APMTEnergy.exe). This path is stored to Sys.getenv("USEAR_Nke_ProgPath"). For Linux, if the Decoder path is in the .bashrc, you can leave this parameters empty.

Details

this function must be call in the directory where are technical files

Value

This function create an ASCII files in the subdir directory

Examples


Meta<-cts5_readMetaSensor()

cts5_energy_process(floatname="3ab0",Nke_ProgPath="D:/Data/Provor_USEA/USEA_R/",metadata = Meta)

cts5_energy_plot(login,floatname,metadata = Meta)



EdLeymarie/USEA_R documentation built on July 16, 2025, 1 p.m.