Sample Data¶
Verde provides some sample data and ways of generating synthetic data through the
verde.datasets
module. The sample data are automatically downloaded from the Github
repository to a folder on your computer the first
time you use them. After that, the data are loaded from this folder. The download is
managed by the pooch
package.
Where is my data?¶
The data files are downloaded to a folder ~/.verde/data/
by default. This is the
base data directory. pooch
will create a separate folder in the base directory
for each version of Verde. So for Verde 0.1, the base data dir is ~/.verde/data/0.1
.
If you’re using the latest development version from Github, the version is master
.
You can change the base data directory by setting the VERDE_DATA_DIR
environment
variable to a different path.
Loading Data¶
datasets.fetch_baja_bathymetry () |
Fetch sample bathymetry data from Baja California. |
datasets.fetch_california_gps () |
Fetch sample GPS velocity data from California (the U.S. |
datasets.fetch_rio_magnetic () |
Fetch sample total-field magnetic anomaly data from Rio de Janeiro, Brazil. |
datasets.fetch_texas_wind () |
Fetch sample wind speed and air temperature data for the state of Texas, USA. |
Utiltiy Functions¶
Setting up Cartopy maps can be a bit repetitive so we provide some utility functions to automate this in the examples and tutorials.
datasets.setup_baja_bathymetry_map (ax[, …]) |
Setup a Cartopy map for the Baja California bathymetry dataset. |
datasets.setup_california_gps_map (ax[, …]) |
Setup a Cartopy map for the California GPS velocity dataset. |
datasets.setup_rio_magnetic_map (ax[, region]) |
Setup a Cartopy map for the Rio de Janeiro magnetic anomaly dataset. |
datasets.setup_texas_wind_map (ax[, region, …]) |
Setup a Cartopy map for the Texas wind speed and air temperature dataset. |
Synthetic Data¶
datasets.CheckerBoard ([amplitude, region, …]) |
Generate synthetic data in a checkerboard pattern. |