Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Copalis Beach example1

From the GeoClaw Tsunami Tutorial

See CopalisBeach examples for more about the Copalis Beach location and a list of other examples and tutorials based on this location.

This directory $GTT/CopalisBeach/example1 contains some initial GeoClaw setrun and setplot functions to start exploring tsunami modeling. See CopalisBeach examples for more about the Copalis Beach location and a list of other examples and tutorials based on this location.

Tutorial pages for this example

These pages discuss the four tsunami simulations that are set up in this directory:

You might want to first look at the sample results and then dig more into the description of how one of the runs is set up and what is generated when you run the code.

Notebooks in the topo directory and are used to create the topo and dtopo files needed to run this example. You can also fetch the input data with the script $GTT/CopalisBeach/fetch_input_data.py, as described in Input files.

Contents of the directory

The directory $GTT/CopalisBeach/example1 contains the following files:

Sample results

See Sample results for example1 for some sample results from the 4 runs set up by the different setrun.py scripts in this directory, with some discussion of what is seen.

To obtain the full _plots directory created by each run, you could run all the simulations following the instructions below. Alternatively, you can quickly fetch archived versions of the plots that result from all 4 examples via:

$ python fetch_sample_results.py

or run the notebook fetch_sample_results.ipynb, fetch_sample_results.ipynb, which explains what is happening when sample results are fetched, and why this notebook is required for building the Jupyter book version of this page (for those interested).

Running the code

If you want to run the simulations included in this example, you will need to either create or download the topo and dtopo files that are used as input. See Input files for instructions.

Once you have the required input files, the shell scripts make_example1a.sh and make_all.sh can be used to run the code and make plots for all these examples. Run these via e.g.

$ source make_example1a.sh