-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
169 additions
and
52 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ODE2ds | ||
|
||
``` | ||
D = ODE2ds(sol; interp=0) | ||
``` | ||
|
||
Extract data from a DifferentialEquations solution type and return it into a GMTdataset. | ||
|
||
- `interp`: == 0 means we return the original points (no interpolation). == 2 => do data interpolation to | ||
the double of original number of points. == 3 => three times, == n => n times. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# cart2pol | ||
|
||
``` | ||
theta, rho = cart2pol(x, y; deg=false) | ||
``` | ||
|
||
Transform Cartesian to polar coordinates. Angles are returned in radians by default. Use `deg=true` to return the angles in degrees. Input can be scalar, vectors or matrices. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# cart2sph | ||
|
||
``` | ||
az, elev, rho = cart2sph(x, y, z; deg=false) | ||
``` | ||
|
||
Transform Cartesian coordinates to spherical. Angles are returned in radians by default. Use `deg=true` | ||
to return the angles in degrees. Input can be scalar, vectors or matrices. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# date2doy | ||
|
||
``` | ||
date2doy(date) -> Integer | ||
``` | ||
|
||
Compute the Day-Of-Year (DOY) from `date` that can be a string or a Date/DateTime type. If ommited, returns today's DOY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# delrows! | ||
|
||
``` | ||
delrows!(A::Matrix, rows::VecOrMat) | ||
``` | ||
|
||
Delete the rows of Matrix `A` listed in the vector `rows` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# df2ds | ||
|
||
``` | ||
D = df2ds(df) | ||
``` | ||
|
||
Extract numeric data from a DataFrame type and return it into a GMTdataset. Works only with 'simple' DataFrames. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# doy2date | ||
|
||
``` | ||
doy2date(doy[, year]) -> Date | ||
``` | ||
|
||
Compute the date from the Day-Of-Year `doy`. If `year` is ommited we take it to mean the current year. Both `doy` and `year` can be strings or integers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# gunique | ||
|
||
``` | ||
u, ind = gunique(x::AbstractVector; sorted=false) | ||
``` | ||
|
||
Return an array containing only the unique elements of `x` and the indices `ind` such that `u = x[ind]`. If `sorted` is true the output is sorted (default is not) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# isnodata | ||
|
||
``` | ||
isnodata(array::AbstractArray, val=0) | ||
``` | ||
|
||
Return a boolean array with the same size a `array` with 1's (`true`) where ``array[i] == val``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# magic | ||
|
||
M = magic(n::Int) => Matrix{Int} | ||
|
||
M = magic(n) returns an n-by-n matrix constructed from the integers 1 through n^2 with equal row | ||
and column sums. The order n must be a scalar greater than or equal to 3 in order to create a | ||
valid magic square. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# plotyy | ||
|
||
``` | ||
plotyy(arg1, arg2; kwargs...) | ||
``` | ||
|
||
Example: | ||
|
||
```julia | ||
plotyy([1 1; 2 2], [1.5 1.5; 3 3], R="0.8/3/0/5", title="Ai", ylabel=:Bla, xlabel=:Ble, seclabel=:Bli, show=1) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# regiongeog | ||
|
||
``` | ||
regiongeog(GI) --> Tuple{Float64} | ||
``` | ||
|
||
Returns a tuple with (lon*min, lon*max, lat*min, lat*max) of the projected `GI` object limits converted | ||
to geographic coordinates. Returns an empty tuple if `GI` has no registered referencing system. | ||
`GI` can either a `GMTgrid`, a `GMTimage` or a file name (String) of one those types. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# sph2cart | ||
|
||
``` | ||
x, y, z = sph2cart(az, elev, rho; deg=false) | ||
``` | ||
|
||
Transform spherical coordinates to Cartesian. Angles are in radians by default. Use `deg=true` if angles | ||
are in degrees. Input can be scalar, vectors or matrices. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# uniqueind | ||
|
||
``` | ||
ind = uniqueind(x) | ||
``` | ||
|
||
Return the index `ind` such that x[ind] gets the unique values of x. No sorting is done |
Oops, something went wrong.