Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GPlates/gplately
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Mather committed Feb 23, 2023
2 parents 3272f3c + d7e90db commit e60d94b
Show file tree
Hide file tree
Showing 13 changed files with 850 additions and 706 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
gplately.egg-info
build
__pycache__
.ipynb_checkpoints
93 changes: 44 additions & 49 deletions Notebooks/01-GettingStarted.ipynb

Large diffs are not rendered by default.

383 changes: 208 additions & 175 deletions Notebooks/04-VelocityBasics.ipynb

Large diffs are not rendered by default.

175 changes: 145 additions & 30 deletions Notebooks/06-Rasters.ipynb

Large diffs are not rendered by default.

49 changes: 15 additions & 34 deletions Notebooks/08-PredictingSlabDip.ipynb

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions Notebooks/NotebookFiles/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
reconstructed_etopo.nc
GlobalAveragePlateVelocities.csv
average_plate_velocity.pdf
India_collision.pdf
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ relief rasters. You can also reconstruct raster data back through geological tim
```python
time = 0
agegrid = gdownload.get_age_grid(time)
graster = gplately.Raster(model, array=agegrid, extent=[-180,180,-90,90])
graster = gplately.Raster(model, data=agegrid, extent=[-180,180,-90,90])
```

Below is a plot of the original Müller et al. (2019) age grid (L) and an age-grid resampled with the `Raster` object (R):
Expand Down
2 changes: 1 addition & 1 deletion gplately/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ def get_raster(self, raster_id_string=None):
else:
# If the downloaded raster is a grid, process it with the gplately.Raster object
if any(grid_extension in raster_filenames for grid_extension in grid_extensions):
raster_matrix = _gplately.grids.Raster(filename=raster_filenames).data
raster_matrix = _gplately.grids.Raster(data=raster_filenames).data

# Otherwise, the raster is an image; use imread to process
else:
Expand Down
Loading

0 comments on commit e60d94b

Please sign in to comment.