Skip to content

Commit b57ecad

Browse files
committed
update README
1 parent 3bc4324 commit b57ecad

File tree

2 files changed

+47
-29
lines changed

2 files changed

+47
-29
lines changed

README.md

Lines changed: 43 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
VirtualShipParcels is a command line simulator allowing students to plan and conduct a virtual research expedition, receiving measurements as if they were coming from actual oceanographic instruments including:
3838

3939
- ADCP (currents)
40-
- CTD (conductivity and temperature)
40+
- CTD (conductivity and temperature + biogeochemical variables)
4141
- XBT (temperature)
42-
- underwater measurements (salinity and temperature)
43-
- surface drifters
44-
- argo float deployments
42+
- Ship-mounted underwater measurements (salinity and temperature)
43+
- Surface drifters
44+
- Argo float deployments
4545

4646
<!-- TODO: future. Along the way students will encounter difficulties such as: -->
4747

@@ -60,6 +60,12 @@ For a development installation, please follow the instructions detailed in the [
6060

6161
## Usage
6262

63+
```{tip}
64+
See the [Quickstart guide](https://virtualship.readthedocs.io/en/latest/user-guide/quickstart.html) in our documentation for a step-by-step introduction to using VirtualShip.
65+
```
66+
67+
VirtualShip is run via the command line interface (CLI) using the `virtualship` command. It has three subcommands: `init`, `plan`, and `run`.
68+
6369
```console
6470
$ virtualship --help
6571
Usage: virtualship [OPTIONS] COMMAND [ARGS]...
@@ -69,53 +75,65 @@ Options:
6975
--help Show this message and exit.
7076

7177
Commands:
72-
fetch Download input data for an expedition.
73-
init Initialize a directory for a new expedition, with an example...
74-
run Run the expedition.
78+
init Initialize a directory for a new expedition, with an...
79+
plan Launch UI to help build expedition configuration (YAML) file.
80+
run Execute the expedition simulations.
7581
```
7682

7783
```console
7884
$ virtualship init --help
7985
Usage: virtualship init [OPTIONS] PATH
8086

81-
Initialize a directory for a new expedition, with an example schedule and
82-
ship config files.
87+
Initialize a directory for a new expedition, with an expedition.yaml file.
88+
89+
If --mfp-file is provided, it will generate the expedition.yaml from the MPF
90+
file instead.
8391

8492
Options:
85-
--help Show this message and exit.
93+
--from-mfp TEXT Partially initialise a project from an exported xlsx or csv
94+
file from NIOZ' Marine Facilities Planning tool
95+
(specifically the "Export Coordinates > DD" option). User
96+
edits are required after initialisation.
97+
--help Show this message and exit.
8698
```
8799

88100
```console
89101

90-
$ virtualship fetch --help
91-
Usage: virtualship fetch [OPTIONS] PATH
102+
$ virtualship plan --help
103+
Usage: virtualship plan [OPTIONS] PATH
92104

93-
Download input data for an expedition.
105+
Launch UI to help build expedition configuration (YAML) file.
94106

95-
Entrypoint for the tool to download data based on space-time region provided
96-
in the schedule file. Data is downloaded from Copernicus Marine, credentials
97-
for which can be obtained via registration:
98-
https://data.marine.copernicus.eu/register . Credentials can be provided on
99-
prompt, via command line arguments, or via a YAML config file. Run
100-
`virtualship fetch` on a expedition for more info.
107+
Should you encounter any issues with using this tool, please report an issue
108+
describing the problem to the VirtualShip issue tracker at:
109+
https://github.com/OceanParcels/virtualship/issues"
101110

102111
Options:
103-
--username TEXT Copernicus Marine username.
104-
--password TEXT Copernicus Marine password.
105-
--help Show this message and exit.
112+
--help Show this message and exit.
106113
```
107114

108115
```console
109116
$ virtualship run --help
110117
Usage: virtualship run [OPTIONS] PATH
111118

112-
Run the expedition.
119+
Execute the expedition simulations.
113120

114121
Options:
115-
--help Show this message and exit.
122+
--from-data TEXT Use pre-downloaded data, saved to disk, for expedition,
123+
instead of streaming directly via Copernicus Marine
124+
Assumes all data is stored in prescribed directory, and
125+
all variables (as listed below) are present. Required
126+
variables are: {'phyc', 'o2', 'so', 'uo', 'po4', 'thetao',
127+
'no3', 'vo', 'chl', 'ph', 'nppv'} Assumes that variable
128+
names at least contain the standard Copernicus Marine
129+
variable name as a substring. Will also take the first
130+
file found containing the variable name substring. CAUTION
131+
if multiple files contain the same variable name
132+
substring.
133+
--help Show this message and exit.
116134
```
117135

118-
For examples, see [the tutorials section of our documentation](https://virtualship.readthedocs.io/en/latest/user-guide/tutorials/index.html).
136+
For examples of VirtualShip simulation output post-processing, see [the tutorials section of our documentation](https://virtualship.readthedocs.io/en/latest/user-guide/tutorials/index.html).
119137

120138
## Input data
121139

src/virtualship/cli/commands.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ def plan(path):
8686
"--from-data",
8787
type=str,
8888
default=None,
89-
help="Use pre-downloaded data, saved to disk, for expedition, instead of streaming directly via Copernicus Marine"
90-
"Assumes all data is stored in prescribed directory, and all variables (as listed below) are present."
91-
f"Required variables are: {set(COPERNICUSMARINE_PHYS_VARIABLES + COPERNICUSMARINE_BGC_VARIABLES)}"
92-
"Assumes that variable names at least contain the standard Copernicus Marine variable name as a substring."
89+
help="Use pre-downloaded data, saved to disk, for expedition, instead of streaming directly via Copernicus Marine "
90+
"Assumes all data is stored in prescribed directory, and all variables (as listed below) are present. "
91+
f"Required variables are: {set(COPERNICUSMARINE_PHYS_VARIABLES + COPERNICUSMARINE_BGC_VARIABLES)} "
92+
"Assumes that variable names at least contain the standard Copernicus Marine variable name as a substring. "
9393
"Will also take the first file found containing the variable name substring. CAUTION if multiple files contain the same variable name substring.",
9494
)
9595
def run(path, from_data):

0 commit comments

Comments
 (0)