Skip to content

Commit

Permalink
CRUST1.0 is one word
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Jun 23, 2023
1 parent 81afa18 commit eb430d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ $ pip install -r requirements.txt

All data should be stored in the same root directory. The default is `data`, but a different directory can be specified with `--data-dir`.

### CRUST 1.0
### CRUST1.0

This model is trained on the [CRUST 1.0](https://igppweb.ucsd.edu/~gabi/crust1.html) dataset. In order to reproduce this work, you will need to download both the [basic model](http://igppweb.ucsd.edu/~gabi/crust1/crust1.0.tar.gz) and the [add-on](http://igppweb.ucsd.edu/~gabi/crust1/crust1.0-addon.tar.gz) that includes the crustal type file. Then, extract the tarballs in a `crust1.0` directory within the data directory.
This model is trained on the [CRUST1.0](https://igppweb.ucsd.edu/~gabi/crust1.html) dataset. In order to reproduce this work, you will need to download both the [basic model](http://igppweb.ucsd.edu/~gabi/crust1/crust1.0.tar.gz) and the [add-on](http://igppweb.ucsd.edu/~gabi/crust1/crust1.0-addon.tar.gz) that includes the crustal type file. Then, extract the tarballs in a `crust1.0` directory within the data directory.

### Seafloor Age

Expand Down
8 changes: 4 additions & 4 deletions datasets/crust.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Data loader for CRUST 1.0 dataset.
"""Data loader for CRUST1.0 dataset.
https://igppweb.ucsd.edu/~gabi/crust1.html
"""
Expand All @@ -11,7 +11,7 @@


def read_crust(data_dir: str) -> gpd.GeoDataFrame:
"""Read CRUST 1.0 dataset.
"""Read CRUST1.0 dataset.
Args:
data_dir: directory containing datasets
Expand Down Expand Up @@ -40,7 +40,7 @@ def read_crust(data_dir: str) -> gpd.GeoDataFrame:
}

# Boundary topography
# These files come with the CRUST 1.0 base model
# These files come with the CRUST1.0 base model
fname = os.path.join(data_dir, "crust1.bnds")
print(f"Reading {fname}...")
bnds = pd.read_fwf(fname, **kwargs)
Expand All @@ -61,7 +61,7 @@ def read_crust(data_dir: str) -> gpd.GeoDataFrame:
rho = pd.read_fwf(fname, **kwargs)

# Crust type
# This file comes with the CRUST 1.0 add-on
# This file comes with the CRUST1.0 add-on
fname = os.path.join(data_dir, "CNtype1-1.txt")
print(f"Reading {fname}...")
ctype: np.typing.NDArray[np.object_] = np.loadtxt(fname, dtype=object)
Expand Down

0 comments on commit eb430d0

Please sign in to comment.