Skip to content

Commit 1cfa15f

Browse files
committed
Deploying to gh-pages from @ 51428fa 🚀
1 parent a5d52ba commit 1cfa15f

18 files changed

Lines changed: 533 additions & 19 deletions

articles/resourcecode.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

llms.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ plot(data, type = "l")
8787

8888
## All functions
8989

90-
- [`closest_point_field()`](https://resourcecode-project.github.io/r-resourcecode/reference/closest_point_FIELD.md)
90+
- [`closest_point_field()`](https://resourcecode-project.github.io/r-resourcecode/reference/closest_point_field.md)
9191
: Find the closest point of the FIELD grid to the specified position
9292

93-
- [`closest_point_spec()`](https://resourcecode-project.github.io/r-resourcecode/reference/closest_point_SPEC.md)
93+
- [`closest_point_spec()`](https://resourcecode-project.github.io/r-resourcecode/reference/closest_point_spec.md)
9494
: Find the closest point of the SPEC grid to the specified position
9595

9696
- [`compute_orbital_speeds()`](https://resourcecode-project.github.io/r-resourcecode/reference/compute_orbital_speeds.md)
@@ -103,7 +103,7 @@ plot(data, type = "l")
103103
- [`compute_sea_state_2d_spectrum()`](https://resourcecode-project.github.io/r-resourcecode/reference/compute_sea_state_2d_spectrum.md)
104104
: Compute sea_state parameter from wave directional spectrum
105105

106-
- [`convert_spectrum_2d1d()`](https://resourcecode-project.github.io/r-resourcecode/reference/convert_spectrum_2D1D.md)
106+
- [`convert_spectrum_2d1d()`](https://resourcecode-project.github.io/r-resourcecode/reference/convert_spectrum_2d1d.md)
107107
: Converts a 2D spectrum time series to a 1D spectrum
108108

109109
- [`cut_directions()`](https://resourcecode-project.github.io/r-resourcecode/reference/cut_directions.md)

news/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

news/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ CRAN release: 2025-10-22
3333
- Adds
3434
[resourcecodedata](https://github.com/Resourcecode-project/r-resourcecodedata/)
3535
package as dependence, to ease the use of the package .
36-
- [`closest_point_field()`](https://resourcecode-project.github.io/r-resourcecode/reference/closest_point_FIELD.md)
36+
- [`closest_point_field()`](https://resourcecode-project.github.io/r-resourcecode/reference/closest_point_field.md)
3737
and
38-
[`closest_point_field()`](https://resourcecode-project.github.io/r-resourcecode/reference/closest_point_FIELD.md)
38+
[`closest_point_field()`](https://resourcecode-project.github.io/r-resourcecode/reference/closest_point_field.md)
3939
now accept a list of locations instead of a single one
4040
([\#3](https://github.com/Resourcecode-project/r-resourcecode/issues/3)).
4141

pkgdown.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pkgdown: 2.2.0
33
pkgdown_sha: ~
44
articles:
55
resourcecode: resourcecode.html
6-
last_built: 2025-12-16T10:56Z
6+
last_built: 2025-12-16T14:11Z
77
urls:
88
reference: https://resourcecode-project.github.io/r-resourcecode/reference
99
article: https://resourcecode-project.github.io/r-resourcecode/articles

reference/closest_point_field.html

Lines changed: 109 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

reference/closest_point_field.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Find the closest point of the FIELD grid to the specified position
2+
3+
Find the closest point of the FIELD grid to the specified position
4+
5+
## Usage
6+
7+
``` r
8+
closest_point_field(x, lat = NULL, closest = 1L, ...)
9+
```
10+
11+
## Arguments
12+
13+
- x:
14+
15+
vector of coordinates in the form longitude/latitude data frame
16+
17+
- lat:
18+
19+
alternatively, x and lat can be vector of the same length
20+
21+
- closest:
22+
23+
an integer to specify the number of point to output.
24+
25+
- ...:
26+
27+
currently unused
28+
29+
## Value
30+
31+
a list with two components: the closest point(s) of the grid and the
32+
distance (s).
33+
34+
## Examples
35+
36+
``` r
37+
semrev_west <- closest_point_field(c(-2.786, 47.239))
38+
semrev_west
39+
#> $points
40+
#> [,1]
41+
#> [1,] 120155
42+
#>
43+
#> $distances
44+
#> [,1]
45+
#> [1,] 288.0243
46+
#>
47+
```

0 commit comments

Comments
 (0)