Skip to content

Commit c84e16e

Browse files
committed
Added instructions for command line operation.
1 parent 16b93ca commit c84e16e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

manual/manual.pdf

2.62 KB
Binary file not shown.

manual/manual.tex

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,32 @@ \subsection{Output Widget}\label{ch:strata:particulars:outputWidget}
18431843
the \texttt{File} menu. The current plot can also be copied by right clicking on the plot and
18441844
selecting \texttt{Copy}.
18451845
1846+
\subsection{Command-line Operation}
1847+
1848+
Strata can be run from the command line, which allows for processing multiple files
1849+
sequentially. This functionality permits the input files to be created or modified using another
1850+
program, and then the site response to be computed in Strata.
1851+
1852+
1853+
The following steps are recommended for running Strata from the command-line:
1854+
1855+
\begin{enumerate}
1856+
\item Run Strata and create a model as you would typically with all of the features that you are
1857+
going to need. While it is possible to create an input file from stratch, it is useful to
1858+
have Strata create the skeleton.
1859+
\item Save the model as a JSON file. This is just a text file that uses the JSON format, which
1860+
is supported by lots of different languages (Matlab and R incldued).
1861+
\item Use the JSON file as a template for the other profiles that you are going to consider.
1862+
\item From a terminal run \texttt{strata -b <filename>.json}. Note that Strata has to be in the
1863+
PATH for this to work nicely. The PATH variable tells an operating system where to look for
1864+
executables. This allows running programs that aren't present locally. It can be helpful to
1865+
add location of the Strata executable (i.e., strata.exe on Windows) to the PATH, if Strata
1866+
is not in the PATH the full path to Strata must be provided on the call.
1867+
\end{enumerate}
1868+
The results from the output are saved to the same file that was passed to Strata and old results are
1869+
silently replaced. Note that multiple file names can be provided in the call to Strata.
1870+
Additionally, Strata can be started from your favorite programming language.
1871+
18461872
\section{Examples}
18471873
The following examples give a basic introduction to using Strata to perform equivalent linear site
18481874
response analysis. The examples files are found within the \texttt{examples} folder in the
@@ -1990,3 +2016,5 @@ \subsubsection{Defining an input acceleration response spectrum}
19902016
\printindex
19912017
19922018
\end{document}
2019+
2020+
% vim: tw=100

0 commit comments

Comments
 (0)