Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
######################################################################
# Code from Francomano et al. (IBIS 2023) #
######################################################################
# IDLE File Time/Size Verification Script #
######################################################################
# Created by: Dante Francomano (dfrancomano@alumni.purdue.edu)
# Date: 20191114
######################################################################
######################################################################
# PM 01
setwd("J:/Dante/Pinguinos/Datos_Acusticos/Isla_de_los_Estados/Raw_Data/PM_01/S4A00449_20181113_144528")
firstGood<-"S4A00449_20181208_190000.wav"
lastGood<-"S4A00449_20181218_120000.wav"
theoreticalGoods<-paste(substr(firstGood,1,9),strftime(seq.POSIXt(strptime(substr(firstGood,10,24),"%Y%m%d_%H%M%S"),strptime(substr(lastGood,10,24),"%Y%m%d_%H%M%S"),"hour"),"%Y%m%d_%H%M%S"),".wav",sep="")
theoreticalGoods[(is.na(sapply(theoreticalGoods,function(x) grep(x,list.files()))<1))]
unique(file.info(theoreticalGoods)$size)
# PM 02
setwd("J:/Dante/Pinguinos/Datos_Acusticos/Isla_de_los_Estados/Raw_Data/PM_02/S4A00440_20181113_144630")
firstGood<-"S4A00440_20181208_180000.wav"
lastGood<-"S4A00440_20181218_120000.wav"
theoreticalGoods<-paste(substr(firstGood,1,9),strftime(seq.POSIXt(strptime(substr(firstGood,10,24),"%Y%m%d_%H%M%S"),strptime(substr(lastGood,10,24),"%Y%m%d_%H%M%S"),"hour"),"%Y%m%d_%H%M%S"),".wav",sep="")
theoreticalGoods[(is.na(sapply(theoreticalGoods,function(x) grep(x,list.files()))<1))]
unique(file.info(theoreticalGoods)$size)
# PPA 02
setwd("J:/Dante/Pinguinos/Datos_Acusticos/Isla_de_los_Estados/Raw_Data/PPA_02/S4A03851_20181203_185612")
firstGood<-"S4A03851_20181208_210000.wav"
lastGood<-"S4A03851_20181218_100000.wav"
theoreticalGoods<-paste(substr(firstGood,1,9),strftime(seq.POSIXt(strptime(substr(firstGood,10,24),"%Y%m%d_%H%M%S"),strptime(substr(lastGood,10,24),"%Y%m%d_%H%M%S"),"hour"),"%Y%m%d_%H%M%S"),".wav",sep="")
theoreticalGoods[(is.na(sapply(theoreticalGoods,function(x) grep(x,list.files()))<1))]
unique(file.info(theoreticalGoods)$size)
# PPA 03
setwd("J:/Dante/Pinguinos/Datos_Acusticos/Isla_de_los_Estados/Raw_Data/PPA_03/S4A00466_20181113_144627")
firstGood<-"S4A00466_20181207_130000.wav"
lastGood<-"S4A00466_20181217_170000.wav"
theoreticalGoods<-paste(substr(firstGood,1,9),strftime(seq.POSIXt(strptime(substr(firstGood,10,24),"%Y%m%d_%H%M%S"),strptime(substr(lastGood,10,24),"%Y%m%d_%H%M%S"),"hour"),"%Y%m%d_%H%M%S"),".wav",sep="")
theoreticalGoods[(is.na(sapply(theoreticalGoods,function(x) grep(x,list.files()))<1))]
unique(file.info(theoreticalGoods)$size)
# PPA 05
setwd("J:/Dante/Pinguinos/Datos_Acusticos/Isla_de_los_Estados/Raw_Data/PPA_05/S4A03852_20181113_144215")
firstGood<-"S4A03852_20181208_230000.wav"
lastGood<-"S4A03852_20181218_090000.wav"
theoreticalGoods<-paste(substr(firstGood,1,9),strftime(seq.POSIXt(strptime(substr(firstGood,10,24),"%Y%m%d_%H%M%S"),strptime(substr(lastGood,10,24),"%Y%m%d_%H%M%S"),"hour"),"%Y%m%d_%H%M%S"),".wav",sep="")
theoreticalGoods[(is.na(sapply(theoreticalGoods,function(x) grep(x,list.files()))<1))]
unique(file.info(theoreticalGoods)$size)
# PPA 06
setwd("J:/Dante/Pinguinos/Datos_Acusticos/Isla_de_los_Estados/Raw_Data/PPA_06/S4A00436_20181113_144328")
firstGood<-"S4A00436_20181207_150000.wav"
lastGood<-"S4A00436_20181217_160000.wav"
theoreticalGoods<-paste(substr(firstGood,1,9),strftime(seq.POSIXt(strptime(substr(firstGood,10,24),"%Y%m%d_%H%M%S"),strptime(substr(lastGood,10,24),"%Y%m%d_%H%M%S"),"hour"),"%Y%m%d_%H%M%S"),".wav",sep="")
theoreticalGoods[(is.na(sapply(theoreticalGoods,function(x) grep(x,list.files()))<1))]
unique(file.info(theoreticalGoods)$size)
# PPA 07
setwd("J:/Dante/Pinguinos/Datos_Acusticos/Isla_de_los_Estados/Raw_Data/PPA_07/S4A00433_20181113_144512")
firstGood<-"S4A00433_20181208_120000.wav"
lastGood<-"S4A00433_20181218_080000.wav"
theoreticalGoods<-paste(substr(firstGood,1,9),strftime(seq.POSIXt(strptime(substr(firstGood,10,24),"%Y%m%d_%H%M%S"),strptime(substr(lastGood,10,24),"%Y%m%d_%H%M%S"),"hour"),"%Y%m%d_%H%M%S"),".wav",sep="")
theoreticalGoods[(is.na(sapply(theoreticalGoods,function(x) grep(x,list.files()))<1))]
unique(file.info(theoreticalGoods)$size)