ASTM D2216-10 - Preliminary Workflow
Created: 2016-04-25 16:19:18
ASTM D2216-10: Standard Test Methods for
Laboratory Determination of Water (Moisture) Content of
Soil and Rock by Mass
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Processors (3)
Name |
Type |
Description |
Read_Text_File |
localworker |
ScriptBufferedReader getReader (String fileUrl, String encoding) throws IOException {
InputStreamReader reader;
try {
if (encoding == null) {
reader = new FileReader(fileUrl);
} else {
reader = new InputStreamReader(new FileInputStream(fileUrl),encoding);
}
}
catch (FileNotFoundException e) {
// try a real URL instead
URL url = new URL(fileUrl);
if (encoding == null) {
reader = new InputStreamReader (url.openStream());
} else {
reader = new InputStreamReader (url.openStream(), encoding);
}
}
return new BufferedReader(reader);
}
StringBuffer sb = new StringBuffer(4000);
if (encoding == void) {
encoding = null;
}
BufferedReader in = getReader(fileurl, encoding);
String str;
String lineEnding = System.getProperty("line.separator");
while ((str = in.readLine()) != null) {
sb.append(str);
sb.append(lineEnding);
}
in.close();
filecontents = sb.toString();
|
Text_constant |
stringconstant |
ValueC:/Users/jmunoz/Documents/PERSONAL/UNAL/jfmunozf@unal.edu.co/Maestria-Propuestas/Experimentos/Workflow-Taverna-ASTM-Laboratory-Determination-Water-Content-Soil-Rock-Mass/data.csv |
Rshell |
rshell |
ScriptspecimenData<-read.table(file=data,head=TRUE,sep=",");
mw<-specimenData["ContMoistSpecMass"] - specimenData["FinalContDrySpecMass"];
colnames(mw)[1]<-"MassOfWaters";
ms<-specimenData["FinalContDrySpecMass"] - specimenData["ContMass"];
colnames(ms)[1]<-"MassOfSolids";
w<-(mw/ms)*100;
colnames(w)[1]<-"WaterContent";
totalData<-cbind(specimenData,mw,ms,w);
write.csv(totalData, file=results, row.names=TRUE) R Serverlocalhost:6311 |
Outputs (2)
Name |
Description |
fileContent |
|
results |
|
Datalinks (4)
Source |
Sink |
Text_constant:value |
Read_Text_File:fileurl |
Read_Text_File:filecontents |
Rshell:data |
Read_Text_File:filecontents |
fileContent |
Rshell:results |
results |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment