Skip to content

AMCOOK/ILTS.sensor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To Install

	Make sure you have the devtools package. Also you may need to install dependancies if error arise.
 
	library(devtools)
	install_github("jae0/netmensuration")
	install_github("brent0/ILTS.sensor") 
	install_github(""brent0/ILTS.sensor"", INSTALL_opts=c("--no-multiarch"))

To Develop

	In RStudio go to file -> new project -> version controll 
	enter this url https://github.com/brent0/ILTS.sensor.git
	let me know so I can add your git account as contributor or you can fork the code for your own project.

To Avoid entering project variables in the dialog prompts, set the following in your Rprofile.site file or to the top of your script.

   	oracle.snowcrab.server = "ptran"
    oracle.snowcrab.user = "your oracle username"
    oracle.snowcrab.password = "your oracle password"
    bio.datadirectory.ilts = file.path( "C:", "bio.data", "ilts") #replace with desired path   
    dir.create(file.path(bio.datadirectory.ilts,'raw'),showWarnings = F)

You can work using ODBC connections through ROracle, RODBC or work locally. To work remotely you need select access to the following tables:

 FRAILC.ILTS_SENSORS_TEMP  FRAILC.MINILOG_TEMP and FRAILC.ILTS_TEMPERATURE. 

If you run the code through the ODBC connections you will automatically create local copies for use later with use_local=T.

If you are working on local copies you need to create a folder in bio.datadirectory.ilts called 'raw'where the output of the ILTS_SENSORS_TEMP.csv, MINILOG_TEMP.csv and ILTS_TEMPERATURE.csv reside.


To start determining bottom touchdown, or to redo any previously determined sets:

ilts.format.merge(update = TRUE, user = "brent", use_RODBC = F, use_local = F ) #Set user to whatever you like and indicate how you want to access the data.

If you want to get only the depth and timestamp plots for each set run:

ilts.format.merge(update = TRUE, user = "brent", use_RODBC = F, use_local = F,depth.only.plot=T ) 


To stop just click the top right x in the plot window at any time

To continue determining bottom touchdown, picking up any uncompleted sets:

	ilts.format.merge(update = FALSE, user = "brent" ) user the same as above whatever you like.

These call will create and add to:

	clicktouchdown_brent.csv AND iltsStats_brent.RDATA
	The clicktouchdown file will contain rows with start and end times by set
	The iltsStats file can be loaded with R and contains a list of detailed stats for each set
	
	
	
ERRORS

	trip 100054290 set 11
	trip 100054290 set 31
	trip L09092019 set 4
	trip L12092019 set 8
	trip L17092019 set 7
	trip L18092019 set `3
	
	100054269 set 16 did plot before did when testing expanded plot
	L04092019 set 4  did plot before did when testing expanded plot
	
	      
	

About

Generate PED lobster trawl stats specifically for touchdown results.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • R 100.0%