Skip to content

Commit

Permalink
added in section to export_integration to have naming be like origina…
Browse files Browse the repository at this point in the history
…l naming, including survey number, ship number, etc.
  • Loading branch information
rebeccathomas-NOAA committed Mar 11, 2024
1 parent 2c417c6 commit fdf2424
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 28 deletions.
22 changes: 21 additions & 1 deletion R/export_integration_EVdir.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,27 @@ export_integration_EV <- function(Survey_Name, DirNameFile,variables,paramnamefi
Obj_propD[['MinimumThreshold']]<--69

# export by cells
exportcells <- file.path(CONV_export, paste(EvName, freq, "0.5nmi_10m_cells.csv", sep="_"))
#exportcells <- file.path(CONV_export, paste(EvName, freq, "0.5nmi_10m_cells.csv", sep="_"))
#use standard survey naming conventions
Temp<-strsplit(EvName,'x')
#special case for 2011
if (DirTableSurvey$Survey_num==201103){
Tr<-as.numeric(gsub(".*?([0-9]+).*", "\\1", Temp))
if (EvName=="x0.3hake69"){ Tr<-0.3}
if (EvName=="x0.5hake69"){ Tr<-0.5}
if (EvName=="x0.7hake69"){ Tr<-0.7}
} else{
Tr<-as.numeric(gsub(".*?([0-9]+).*", "\\1", Temp))
}
V<-paste0('V',DirTableSurvey$Ship_num) #vessel number; %insert Canadian vessel as second
S<-paste0('S',DirTableSurvey$Survey_num) #survey number %also CAN
X<-paste0('X',DirTableSurvey$Transducer_num) #(['X1-']); #transducer number %also CAN
F<-c('F38') #frequency
T<-paste0('T',Tr) #transect number
Z<-c('Z0-.csv') #%zone
Outfname=paste(V,S,X,F,T,Z, sep="-"); #%name of output file with appropriate syntax for MACEBASE
#name1<-paste(EvName, freq, "0.5nmi_10m_cells.csv", sep="_")
exportcells <- file.path(CONV_export,Outfname)
varac$ExportIntegrationByRegionsByCellsAll(exportcells)

# Set analysis grid and exclude lines on Sv data back to original values
Expand Down
27 changes: 0 additions & 27 deletions man/basic_comps.Rd

This file was deleted.

0 comments on commit fdf2424

Please sign in to comment.