R version 4.5.2 (2025-10-31) -- "[Not] Part in a Rumble" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. During startup - Warning message: In system("uname -a", intern = TRUE) : running command 'uname -a' had status 1 > library(lubridate) Attaching package: ‘lubridate’ The following objects are masked from ‘package:base’: date, intersect, setdiff, union > > ################################################################### > # SELECT TIME PERIOD > # seconds for 2 days > daystep <- 60*60*24 > step <- daystep*7 > args <- commandArgs(trailingOnly = TRUE) > message("ARGUMENTS = ",length(args)) ARGUMENTS = 0 > if (length(args)==0) { + t2 <- Sys.time() + t2 <- round_date(as.POSIXct(t2),"5 minutes") + t1 <- t2 - step + #"args:" length(args) + } else { + t1 <- as.POSIXct(args[1]) + t2 <- as.POSIXct(args[2]) + } > > # SET TIME PERIOD HERE: > #t1 <- as.POSIXct("2022-11-22 00:00:00 CET") > #t2 <- as.POSIXct("2021-11-13 00:00:00 CET") > t1 <- as.POSIXct(format(t1,"%Y-%m-%d %H:%M:00")) > t2 <- as.POSIXct(format(t2,"%Y-%m-%d %H:%M:00")) > message("PERIOD = ",t1," ",t2) PERIOD = 2026-06-20 15:50:00 2026-06-27 15:50:00 > runningdate <- seq.Date( from=as.Date(t1), to=as.Date(t2), by="day") > > aggregation <- "60 sec" > aggregation <- "1 min" > > > > ################################################################### > # GET MATCHING FILE NAMES FOR SELECTED DAYS > flist <- NULL > for (i in seq_along(runningdate)) { + name1 <- runningdate[i] + #name1 <- "2021-11-03" + #name1 <- format(t1,"%Y-%m-%d") + name2 <- "OPC" + #name3 <- runningdate[3] + name3 <- "" + url <- paste("https://saqn.geo.uni-augsburg.de/asopc.cgi?name1=",name1,"&name2=",name2,"&name3=",name3,sep="") + message("URL = ",url) + flist_tmp <- try(read.table(url,stringsAsFactors=F)) + if(inherits(flist_tmp, "try-error")){ + message("no files") + }else{ + #message("FILE LIST = ",flist_tmp) + flist <- rbind(flist,flist_tmp) + } + } URL = https://saqn.geo.uni-augsburg.de/asopc.cgi?name1=2026-06-20&name2=OPC&name3= Error in read.table(url, stringsAsFactors = F) : no lines available in input no files URL = https://saqn.geo.uni-augsburg.de/asopc.cgi?name1=2026-06-21&name2=OPC&name3= Error in read.table(url, stringsAsFactors = F) : no lines available in input no files URL = https://saqn.geo.uni-augsburg.de/asopc.cgi?name1=2026-06-22&name2=OPC&name3= Error in read.table(url, stringsAsFactors = F) : no lines available in input no files URL = https://saqn.geo.uni-augsburg.de/asopc.cgi?name1=2026-06-23&name2=OPC&name3= Error in read.table(url, stringsAsFactors = F) : no lines available in input no files URL = https://saqn.geo.uni-augsburg.de/asopc.cgi?name1=2026-06-24&name2=OPC&name3= Error in read.table(url, stringsAsFactors = F) : no lines available in input no files URL = https://saqn.geo.uni-augsburg.de/asopc.cgi?name1=2026-06-25&name2=OPC&name3= Error in read.table(url, stringsAsFactors = F) : no lines available in input no files URL = https://saqn.geo.uni-augsburg.de/asopc.cgi?name1=2026-06-26&name2=OPC&name3= Error in read.table(url, stringsAsFactors = F) : no lines available in input no files URL = https://saqn.geo.uni-augsburg.de/asopc.cgi?name1=2026-06-27&name2=OPC&name3= Error in read.table(url, stringsAsFactors = F) : no lines available in input no files > > ################################################################### > # READ MATCHING FILES DATA IN OBJECT asopc > opcid <- "" > for (i in seq_along(flist$V1)) { + #message("flist =",flist$V1[i]," ",i) + opctype <- strsplit(flist$V1[i],"_",fixed=T)[[1]][3] + opcid <- strsplit(flist$V1[i],"_",fixed=T)[[1]][4] + shttype <- strsplit(flist$V1[i],"_",fixed=T)[[1]][5] + shtid <- strsplit(flist$V1[i],"_",fixed=T)[[1]][6] + shtid <- gsub(".txt", "", shtid) + #fname <- paste("https://saqn.geo.uni-augsburg.de/asopc/",substr(flist$V1[i],2,9),"/",flist$V1[i],sep="") + fname <- paste("https://saqn.geo.uni-augsburg.de/asopc/",flist$V1[i],sep="") + message(opcid," FILE ADRESS = ",fname) + if (i == 1) { + asopc <- read.table(fname,header=T,stringsAsFactors=F) + asopc$opctype <- opctype + asopc$opcid <- opcid + asopc$shttype <- shttype + asopc$shtid <- shtid + if(grepl( "OPC-N2", fname, fixed = TRUE)){ + asopc$Bin_16 <- NA + asopc$Bin_17 <- NA + asopc$Bin_18 <- NA + asopc$Bin_19 <- NA + asopc$Bin_20 <- NA + asopc$Bin_21 <- NA + asopc$Bin_22 <- NA + asopc$Bin_23 <- NA + asopc$Fan_rev_count <- NA + asopc$Laser_status <- NA + asopc$PM_1 <- asopc$PM1 + asopc <- subset( asopc, select = -PM1 ) + asopc$PM_10 <- asopc$PM10 + asopc <- subset( asopc, select = -PM10 ) + asopc$PM_2.5 <- asopc$PM2.5 + asopc <- subset( asopc, select = -PM2.5 ) + asopc <- subset( asopc, select = -Pressure ) + asopc$Reject_count_Glitch <- NA + asopc$Reject_count_LongTOF <- NA + asopc$Reject_Count_OutOfRange <- NA + asopc$Reject_count_Ratio <- NA + asopc$Relative_humidity <- NA + asopc$Sample_Flow_Rate <- NA + asopc$Sampling_Period <- NA + asopc <- subset( asopc, select = -SFR ) + } + } + else { + asopc_temp <- read.table(fname,header=T,stringsAsFactors=F) + asopc_temp$opctype <- opctype + asopc_temp$opcid <- opcid + asopc_temp$shttype <- shttype + asopc_temp$shtid <- shtid + if(grepl( "OPC-N2", fname, fixed = TRUE)){ + asopc_temp$Bin_16 <- NA + asopc_temp$Bin_17 <- NA + asopc_temp$Bin_18 <- NA + asopc_temp$Bin_19 <- NA + asopc_temp$Bin_20 <- NA + asopc_temp$Bin_21 <- NA + asopc_temp$Bin_22 <- NA + asopc_temp$Bin_23 <- NA + asopc_temp$Fan_rev_count <- NA + asopc_temp$Laser_status <- NA + asopc_temp$PM_1 <- asopc_temp$PM1 + asopc_temp <- subset( asopc_temp, select = -PM1 ) + asopc_temp$PM_10 <- asopc_temp$PM10 + asopc_temp <- subset( asopc_temp, select = -PM10 ) + asopc_temp$PM_2.5 <- asopc_temp$PM2.5 + asopc_temp <- subset( asopc_temp, select = -PM2.5 ) + asopc_temp <- subset( asopc_temp, select = -Pressure ) + asopc_temp$Reject_count_Glitch <- NA + asopc_temp$Reject_count_LongTOF <- NA + asopc_temp$Reject_Count_OutOfRange <- NA + asopc_temp$Reject_count_Ratio <- NA + asopc_temp$Relative_humidity <- NA + asopc_temp$Sample_Flow_Rate <- NA + asopc_temp$Sampling_Period <- NA + asopc_temp <- subset( asopc_temp, select = -SFR ) + } + #message(str(asopc_temp)) + asopc <- rbind(asopc,asopc_temp) + } + } > asopc$time <- as.POSIXct(asopc$time_UTC,format="%Y-%m-%dT%H:%M:%S") Error: object 'asopc' not found Execution halted rm: write error: No space left on device