Skip to content

Commit bdcbb91

Browse files
Merge pull request #66 from TUDelftGeodesy/add_api_doc
Add api doc
2 parents 6f4a12e + 79183d4 commit bdcbb91

File tree

5 files changed

+52
-9
lines changed

5 files changed

+52
-9
lines changed

docs/api_reference.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
hide:
3+
- navigation
4+
---
5+
#
6+
7+
Here is the API reference for the `sarxarray` package.
8+
9+
## **SLC stack module**
10+
11+
::: sarxarray.stack.Stack
12+
13+
## **I/O module**
14+
15+
::: sarxarray._io.from_dataset
16+
17+
::: sarxarray._io.from_binary
18+
19+
## **Utility**
20+
21+
::: sarxarray.utils.multi_look
22+
23+
::: sarxarray.utils.complex_coherence

mkdocs.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ repo_url: https://github.com/TUDelftGeodesy/sarxarray/
33
repo_name: SARXarray
44

55
nav:
6-
- Getting started:
6+
- Getting started:
77
- About SARXarray: index.md
88
- Installation: setup.md
9-
- Usage:
9+
- Usage:
1010
- Data loading: data_loading.md
1111
- Common SLC operations: common_ops.md
1212
- Other manipulations: manipulations.md
1313
- Notebook page: notebooks/demo_sarxarray.ipynb
1414
- Conributing guide: CONTRIBUTING.md
1515
- Change Log: CHANGELOG.md
16+
- API reference: api_reference.md
1617

1718

1819
theme:
@@ -40,7 +41,7 @@ theme:
4041
- navigation.tabs
4142
- navigation.tabs.sticky
4243
- content.code.copy
43-
44+
4445
plugins:
4546
- mkdocs-jupyter:
4647
include_source: True
@@ -49,16 +50,31 @@ plugins:
4950
handlers:
5051
python:
5152
options:
52-
docstring_style: google
53+
docstring_style: numpy
5354
docstring_options:
54-
ignore_init_summary: no
55-
merge_init_into_class: yes
56-
show_submodules: no
55+
ignore_init_summary: true
56+
merge_init_into_class: true
57+
docstring_section_style: list
58+
show_submodules: true
59+
show_root_heading: true
60+
show_source: true
61+
heading_level: 3
62+
relative_crossrefs: true
63+
parameter_headings: false
64+
separate_signature: true
65+
show_bases: true
66+
show_signature_annotations: true
67+
show_symbol_type_heading: true
68+
signature_crossrefs: true
69+
summary: true
70+
backlinks: tree
71+
scoped_crossrefs: true
5772

5873
markdown_extensions:
5974
- pymdownx.highlight:
6075
anchor_linenums: true
6176
- pymdownx.superfences
77+
- pymdownx.highlight
6278

6379
extra:
6480
generator: false

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,6 @@ target-version = "py310"
9797

9898
[tool.ruff.per-file-ignores]
9999
"tests/**" = ["D"]
100+
101+
[tool.ruff.pydocstyle]
102+
convention = "numpy"

sarxarray/_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def from_dataset(ds: xr.Dataset) -> xr.Dataset:
7070
def from_binary(
7171
slc_files, shape, vlabel="complex", dtype=np.complex64, chunks=None, ratio=1
7272
):
73-
"""Read a SLC stack or relabted variables from binary files.
73+
"""Read a SLC stack or related variables from binary files.
7474
7575
Parameters
7676
----------

sarxarray/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ def complex_coherence(
9090
numerator = mean(R * O`) in a window
9191
denominator = mean(R * R`) * mean(O * O`) in a window
9292
coherence = abs( numerator / sqrt(denominator) ),
93-
See the equationin chapter 28 in http://doris.tudelft.nl/software/doris_v4.02.pdf
93+
See the equation in chapter 28 in [doris
94+
documentation](http://doris.tudelft.nl/software/doris_v4.02.pdf)
9495
9596
Parameters
9697
----------

0 commit comments

Comments
 (0)