Skip to content

Commit f64abcf

Browse files
committed
Updating documentation
1 parent ae50717 commit f64abcf

File tree

9 files changed

+28
-38
lines changed

9 files changed

+28
-38
lines changed

Diff for: PlotInterface/curves.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
:synopsis: provide methods to plot curves (hazard curves,
77
distributions, logarithmic axes, etc).
88
9-
.. moduleauthor: Craig Arthur <[email protected]>
9+
.. moduleauthor:: Craig Arthur <[email protected]>
1010
1111
The routines here make use of the themes from
12-
`seaborn <http://stanford.edu/~mwaskom/software/seaborn/index.html>`_ to
12+
`seaborn <https://seaborn.pydata.org/api.html>`_ to
1313
define the line styles and annotations (font sizes, etc.).
1414
1515
"""

Diff for: conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
# built documents.
5454
#
5555
# The short X.Y version.
56-
version = '2.1'
56+
version = '3.1.3'
5757
# The full version, including alpha/beta/rc tags.
5858
release = latest_tag.name
5959

Diff for: docs/examples.rst

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ the example simulation can be run as follows::
1818
The model will automatically create output folders to store the
1919
results in, as well as a log file that provides details on the
2020
progress of the model. The simulation will process the input track
21-
database (IBTrACS v03r05), run the statistical interface, generate
21+
database (IBTrACS v03r10), run the statistical interface, generate
2222
1000 simulated years of TC events, the wind swaths associated with
2323
those simulated years, calculate the hazard (return period wind
2424
speeds) for the region and plot the output as maps and a return period
@@ -32,7 +32,7 @@ curve for Port Hedland. The hazard data are also stored in netCDF
3232
:figclass: align-center
3333

3434
100-year return period wind speed near Port Hedland,
35-
Australia. Wind speeds represent a 3-second gust wind speed, 10
35+
Australia. Wind speeds represent a 0.2-second gust wind speed, 10
3636
metres above ground level in open, flat terrain.
3737

3838
.. figure:: /docs/images/hazard_curve.png
@@ -41,8 +41,9 @@ curve for Port Hedland. The hazard data are also stored in netCDF
4141
:figclass: align-center
4242

4343
Hazard curve for Port Hedland, Australia, based on 1000 years of
44-
synthetic tropical cyclone events. The grey shading indicates the
45-
90th percentile range, based on a bootstrap resampling procedure.
44+
synthetic tropical cyclone events. The red points are the wind speeds for
45+
individual simulated events, and the blue line is a fitted generalised
46+
pareto distribution (GPD).
4647

4748
Running in an MPI environment
4849
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Diff for: docs/images/hazard_curve.png

182 KB
Loading

Diff for: docs/images/hazard_example.png

247 KB
Loading

Diff for: docs/setup.rst

+16-12
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,13 @@ from 1981--2013, we set the value to 30.
182182

183183
``NumTimeSteps`` controls the maximum lifetime an event can exist
184184
for. ``TimeStep`` sets the time interval (in hours) for the track
185-
generator. ``SeasonSeed`` and ``TrackSeed`` are used to fix the random
185+
generator.
186+
187+
``SeasonSeed`` and ``TrackSeed`` are used to fix the random
186188
number generator on parallel systems to ensure truly random numbers on
187-
each individual processor. ::
189+
each individual processor. If they are absent, the seed is set using an integer
190+
representation of the current time, and is recorded in the output metadata (e.g.
191+
attributes in the netcdf files). ::
188192

189193
[TrackGenerator]
190194
NumSimulations = 500
@@ -478,16 +482,16 @@ database. The format should use Python's `datetime
478482
formats. ::
479483

480484
[IBTRACS]
481-
URL=ftp://eclipse.ncdc.noaa.gov/pub/ibtracs/v03r05/wmo/csv/Allstorms.ibtracs_wmo.v03r05.csv.gz
482-
path=input
483-
filename=Allstorms.ibtracs_wmo.v03r05.csv
484-
Columns=tcserialno,season,num,skip,skip,skip,date,skip,lat,lon,skip,pressure
485-
FieldDelimiter=,
486-
NumberOfHeadingLines=3
487-
PressureUnits=hPa
488-
LengthUnits=km
489-
DateFormat=%Y-%m-%d %H:%M:%S
490-
SpeedUnits=kph
485+
URL = https://www.ncei.noaa.gov/data/international-best-track-archive-for-climate-stewardship-ibtracs/v04r00/access/csv/ibtracs.since1980.list.v04r00.csv
486+
path = input
487+
Filename = ibtracs.since1980.list.v04r00.csv
488+
Columns = tcserialno,season,num,skip,skip,skip,date,skip,lat,lon,skip,pressure
489+
FieldDelimiter = ,
490+
NumberOfHeadingLines = 2
491+
PressureUnits = hPa
492+
LengthUnits = km
493+
SpeedUnits = kph
494+
DateFormat = %Y-%m-%d %H:%M:%S
491495
492496
.. _references:
493497

Diff for: example/yasi.ini

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Resolution=0.04
99
profileType=powell
1010
beta=1.6
1111
windFieldType=kepert
12+
domain=full
1213

1314

1415
[Region]
@@ -20,7 +21,7 @@ landmask = input/landmask.nc
2021
LocationFile = input/stationlist.shp
2122

2223
[Timeseries]
23-
Extract=True
24+
Windfields=True
2425
LocationFile=./input/stationlist.shp
2526
StationID=WMO
2627

Diff for: tcrm.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ def doDataProcessing(configFile):
261261
@disableOnWorkers
262262
def doDataPlotting(configFile):
263263
"""
264-
Plot the pre-processed input data.
264+
Plot the pre-processed input data. Requires the Data Processing step to have
265+
been executed first (``Actions -- DataProcess = True``)
265266
266267
:param str configFile: Name of configuration file.
267268

Diff for: tests/NumpyTestCase.py

-17
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
11
"""
2-
Tropical Cyclone Risk Model (TCRM) - Version 1.0 (beta release)
3-
Copyright (C) 2011 Commonwealth of Australia (Geoscience Australia)
4-
5-
This program is free software: you can redistribute it and/or modify
6-
it under the terms of the GNU General Public License as published by
7-
the Free Software Foundation, either version 3 of the License, or
8-
(at your option) any later version.
9-
10-
This program is distributed in the hope that it will be useful,
11-
but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
GNU General Public License for more details.
14-
15-
You should have received a copy of the GNU General Public License
16-
along with this program. If not, see <http://www.gnu.org/licenses/>.
17-
18-
192
Title: NumpyTestCase.py
203
Author: Nariman Habili, [email protected]
214
CreationDate: 2006-12-12

0 commit comments

Comments
 (0)