Skip to content

Commit

Permalink
Add cross, conv, cov, etc funs (#1680)
Browse files Browse the repository at this point in the history
* Add signal tests

* add tests_signal

* Export cross, conv, etc funs

* Add docstrings to fun

* Identify a viz('single column')

* Correct typo in a docstring

* Add the functions file.
  • Loading branch information
joa-quim authored Mar 1, 2025
1 parent cf003f1 commit fa05338
Show file tree
Hide file tree
Showing 7 changed files with 911 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/GMT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ export

colorzones!, rasterzones!, rasterzones, lelandshade, texture_img, crop, doy2date, date2doy, yeardecimal, ISOtime2unix,
median, mean, quantile, std, nanmean, nanstd, skipnan, zonal_statistics, zonal_stats,

conv, xcorr, xcov,

add2PSfile, append2fig, linearfitxy, regiongeog, streamlines, peaks, polygonlevels, randinpolygon, polyfit, polyval,

Expand Down
2 changes: 1 addition & 1 deletion src/filter1d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Parameters
Compute the cumulative distance along the input line. Note that for this the first two columns
must contain the spatial coordinates.
To see the full documentation type: ``@? histogram``
To see the full documentation type: ``@? filter1d``
"""
filter1d(cmd0::String; kw...) = filter1d_helper(cmd0, nothing; kw...)
filter1d(arg1; kw...) = filter1d_helper("", arg1; kw...)
Expand Down
2 changes: 1 addition & 1 deletion src/imshow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function imshow(arg1, x::AbstractVector{Float64}=Float64[], y::AbstractVector{Fl
call_img = true
elseif (isa(arg1, GDtype) || isa(arg1, GMTfv) || isa(arg1, Vector{GMTfv}) || (isa(arg1, VecOrMat{<:Real}) && size(arg1,2) <= 4) || (isa(arg1, Gdal.AbstractDataset) || isa(arg1, Gdal.AbstractGeometry)))
(isa(arg1, Gdal.AbstractDataset) || isa(arg1, Gdal.AbstractGeometry)) && (arg1 = gd2gmt(arg1))
isa(arg1, Matrix{<:Real}) && (arg1 = mat2ds(arg1))
isa(arg1, Matrix{<:Real}) && (arg1 = size(arg1,2) == 1 ? cat_1_arg(arg1, true) : mat2ds(arg1))
isa(arg1, Vector{<:Real}) && (arg1 = mat2ds([1:length(arg1) arg1])) # Make it a 2D dataset with the first col = 1:ncol(arg1))
if isa(arg1, Vector{GMTfv})
ginfo = getbbox(arg1);
Expand Down
Loading

0 comments on commit fa05338

Please sign in to comment.