cts5_energy_decode: Use NKE routine to estimate energy from technical file

View source: R/CTS5_Energy.R

cts5_energy_decodeR Documentation

Use NKE routine to estimate energy from technical file

Description

call NKE routine to estimate energy from technical file

Usage

cts5_energy_decode(
  floatname = "",
  techfilename = "",
  CycleNumber,
  PatternNumber = 1,
  metadata = NULL,
  subdir = "./ENY",
  Nke_ProgPath = "",
  default_vol = 800,
  default_TS = 5,
  default_SDCard = 0,
  default_bat_self_discharge = 1.5,
  default_ExtTrig = 0
)

Arguments

floatname

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

techfilename

use to specified directly the name of the technical file

CycleNumber

numeric : number of the cycle to decode, if techfilename=""

PatternNumber

numeric : number of the Pattern to decode, if techfilename=""

metadata

from cts5_readMetaSensor to get SDCard status

subdir

subdir where to put .csv ASCII files

Nke_ProgPath

path to the nke decoder (APMTEnergy.exe or ...). 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.

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

Details

this function must be call in the directory where are technicals and ini files. RData files from cts5_readProfile with embeded ini file must be saved

Value

This function create ASCII files in the subdir directory and return a list : TechFilename, IniFilename, filename, CycleNumber,PatternNumber, VolEmergence, TSurf, SDCard)

Examples


Meta<-cts5_readMetaSensor()
cts5_energy_decode(CycleNumber=c,PatternNumber = p,subdir="./ENY",metadata = Meta)

cts5_energy_decode(floatname = floatname,CycleNumber=c,PatternNumber=p,subdir="./ENY",metadata = Meta,
Nke_ProgPath="D:/Data/Provor_USEA/USEA_R/")



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