Skip to content

Commit

Permalink
Documentation for loading jpk
Browse files Browse the repository at this point in the history
  • Loading branch information
SylviaWhittle committed Apr 29, 2024
1 parent 54193af commit f765a4c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Supported file formats
| File format | Description |
|-------------|----------------|
| `.asd` | High-speed AFM |
| `.jpk` | [Bruker](https://www.bruker.com/) |

Support for the following additional formats is planned. Some of these are already supported in TopoStats and are
awaiting refactoring to move their functionality into topofileformats these are denoted in bold below.
Expand Down Expand Up @@ -56,6 +57,17 @@ from topofileformats import load_asd
frames, pixel_to_nanometre_scaling_factor, metadata = load_asd(file_path="./my_asd_file.asd")
```

### .jpk

You can open `.jpk` files using the `load_jpk` function. Just pass in the path
to the file and the channel name you want to use. (If in doubt, use `height_trace` or `measuredHeight_trace`).

```python
from topofileformats.jpk import load_jpk

image, pixel_to_nanometre_scaling_factor = load_jpk(file_path="./my_jpk_file.jpk", channel="height_trace")
```

## Contributing

Bug reports and feature requests are welcome. Please search for existing issues, if none relating to your bug/feature
Expand Down

0 comments on commit f765a4c

Please sign in to comment.