viewtif 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- viewtif-0.1.2/.gitignore +4 -0
- viewtif-0.1.2/PKG-INFO +79 -0
- viewtif-0.1.2/README.md +62 -0
- viewtif-0.1.2/examples/README.md +24 -0
- viewtif-0.1.2/examples/sample_data/ECOSTRESS_LST.tif +0 -0
- viewtif-0.1.2/examples/sample_data/HLS_B02.tif +0 -0
- viewtif-0.1.2/examples/sample_data/HLS_B03.tif +0 -0
- viewtif-0.1.2/examples/sample_data/HLS_B04.tif +0 -0
- viewtif-0.1.2/examples/sample_data/Zip_Codes.cpg +1 -0
- viewtif-0.1.2/examples/sample_data/Zip_Codes.dbf +0 -0
- viewtif-0.1.2/examples/sample_data/Zip_Codes.prj +1 -0
- viewtif-0.1.2/examples/sample_data/Zip_Codes.shp +0 -0
- viewtif-0.1.2/examples/sample_data/Zip_Codes.shx +0 -0
- {viewtif-0.1.1 → viewtif-0.1.2}/pyproject.toml +6 -1
- {viewtif-0.1.1 → viewtif-0.1.2}/src/viewtif/tif_viewer.py +9 -9
- viewtif-0.1.1/PKG-INFO +0 -23
- viewtif-0.1.1/README.md +0 -9
viewtif-0.1.2/.gitignore
ADDED
viewtif-0.1.2/PKG-INFO
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: viewtif
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Simple GeoTIFF viewer with optional shapefile overlay.
|
|
5
|
+
Project-URL: Homepage, https://github.com/nkeikon/tifviewer
|
|
6
|
+
Project-URL: Source, https://github.com/nkeikon/tifviewer
|
|
7
|
+
Project-URL: Issues, https://github.com/nkeikon/tifviewer/issues
|
|
8
|
+
Author: Keiko Nomura
|
|
9
|
+
License: MIT
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
|
+
Requires-Dist: click>=8.1
|
|
12
|
+
Requires-Dist: matplotlib>=3.7
|
|
13
|
+
Requires-Dist: numpy>=1.23
|
|
14
|
+
Requires-Dist: pyside6>=6.5
|
|
15
|
+
Requires-Dist: rasterio>=1.3
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# viewtif
|
|
19
|
+
|
|
20
|
+
A lightweight GeoTIFF viewer for quick visualization directly from the command line.
|
|
21
|
+
|
|
22
|
+
You can visualize single-band GeoTIFFs, RGB composites, and shapefile overlays in a simple Qt-based window.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install viewtif
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Quick Start
|
|
33
|
+
```bash
|
|
34
|
+
# View a GeoTIFF
|
|
35
|
+
viewtif examples/sample_data/ECOSTRESS_LST.tif
|
|
36
|
+
|
|
37
|
+
# View with shapefile overlay
|
|
38
|
+
viewtif examples/sample_data/ECOSTRESS_LST.tif \
|
|
39
|
+
--shapefile examples/sample_data/Zip_Codes.shp
|
|
40
|
+
|
|
41
|
+
# View an RGB composite
|
|
42
|
+
viewtif --rgbfiles \
|
|
43
|
+
examples/sample_data/HLS_B4.tif \
|
|
44
|
+
examples/sample_data/HLS_B3.tif \
|
|
45
|
+
examples/sample_data/HLS_B2.tif
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Controls
|
|
50
|
+
| Key | Action |
|
|
51
|
+
| -------------------- | --------------------------------------- |
|
|
52
|
+
| `+` / `-` | Zoom in / out |
|
|
53
|
+
| Arrow keys or `WASD` | Pan |
|
|
54
|
+
| `C` / `V` | Increase / decrease contrast |
|
|
55
|
+
| `G` / `H` | Increase / decrease gamma |
|
|
56
|
+
| `M` | Toggle colormap (`viridis` ↔ `magma`) |
|
|
57
|
+
| `[` / `]` | Previous / next band (single-band only) |
|
|
58
|
+
| `R` | Reset view |
|
|
59
|
+
|
|
60
|
+
## Features
|
|
61
|
+
- Command-line driven GeoTIFF viewer
|
|
62
|
+
- Supports single-band or RGB composite display.
|
|
63
|
+
- Optional shapefile overlay for geographic context.
|
|
64
|
+
- Adjustable contrast, gamma, and colormap.
|
|
65
|
+
- Fast preview using rasterio and PySide6.
|
|
66
|
+
|
|
67
|
+
## Example Data
|
|
68
|
+
- ECOSTRESS_LST.tif
|
|
69
|
+
- Zip_Codes.shp and associated files
|
|
70
|
+
- HLS_B4.tif, HLS_B3.tif, HLS_B2.tif (RGB sample)
|
|
71
|
+
|
|
72
|
+
## Credit & License
|
|
73
|
+
`viewtif` was inspired by the NASA JPL Thermal Viewer — Semi-Automated Georeferencer (GeoViewer v1.12) developed by Jake Longenecker (University of Miami Rosenstiel School of Marine, Atmospheric & Earth Science) while at the NASA Jet Propulsion Laboratory, California Institute of Technology, with inspiration from JPL’s ECOSTRESS geolocation batch workflow by Andrew Alamillo. The original GeoViewer was released under the MIT License (2025) and may be freely adapted with citation.
|
|
74
|
+
|
|
75
|
+
# Citation
|
|
76
|
+
Longenecker, Jake; Lee, Christine; Hulley, Glynn; Cawse-Nicholson, Kerry; Purkis, Sam; Gleason, Art; Otis, Dan; Galdamez, Illeana; Meiseles, Jacquelyn. GeoViewer v1.12: NASA JPL Thermal Viewer—Semi-Automated Georeferencer User Guide & Reference Manual. Jet Propulsion Laboratory, California Institute of Technology, 2025. PDF.
|
|
77
|
+
|
|
78
|
+
# License
|
|
79
|
+
This project is released under the MIT License.
|
viewtif-0.1.2/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# viewtif
|
|
2
|
+
|
|
3
|
+
A lightweight GeoTIFF viewer for quick visualization directly from the command line.
|
|
4
|
+
|
|
5
|
+
You can visualize single-band GeoTIFFs, RGB composites, and shapefile overlays in a simple Qt-based window.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install viewtif
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
```bash
|
|
17
|
+
# View a GeoTIFF
|
|
18
|
+
viewtif examples/sample_data/ECOSTRESS_LST.tif
|
|
19
|
+
|
|
20
|
+
# View with shapefile overlay
|
|
21
|
+
viewtif examples/sample_data/ECOSTRESS_LST.tif \
|
|
22
|
+
--shapefile examples/sample_data/Zip_Codes.shp
|
|
23
|
+
|
|
24
|
+
# View an RGB composite
|
|
25
|
+
viewtif --rgbfiles \
|
|
26
|
+
examples/sample_data/HLS_B4.tif \
|
|
27
|
+
examples/sample_data/HLS_B3.tif \
|
|
28
|
+
examples/sample_data/HLS_B2.tif
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Controls
|
|
33
|
+
| Key | Action |
|
|
34
|
+
| -------------------- | --------------------------------------- |
|
|
35
|
+
| `+` / `-` | Zoom in / out |
|
|
36
|
+
| Arrow keys or `WASD` | Pan |
|
|
37
|
+
| `C` / `V` | Increase / decrease contrast |
|
|
38
|
+
| `G` / `H` | Increase / decrease gamma |
|
|
39
|
+
| `M` | Toggle colormap (`viridis` ↔ `magma`) |
|
|
40
|
+
| `[` / `]` | Previous / next band (single-band only) |
|
|
41
|
+
| `R` | Reset view |
|
|
42
|
+
|
|
43
|
+
## Features
|
|
44
|
+
- Command-line driven GeoTIFF viewer
|
|
45
|
+
- Supports single-band or RGB composite display.
|
|
46
|
+
- Optional shapefile overlay for geographic context.
|
|
47
|
+
- Adjustable contrast, gamma, and colormap.
|
|
48
|
+
- Fast preview using rasterio and PySide6.
|
|
49
|
+
|
|
50
|
+
## Example Data
|
|
51
|
+
- ECOSTRESS_LST.tif
|
|
52
|
+
- Zip_Codes.shp and associated files
|
|
53
|
+
- HLS_B4.tif, HLS_B3.tif, HLS_B2.tif (RGB sample)
|
|
54
|
+
|
|
55
|
+
## Credit & License
|
|
56
|
+
`viewtif` was inspired by the NASA JPL Thermal Viewer — Semi-Automated Georeferencer (GeoViewer v1.12) developed by Jake Longenecker (University of Miami Rosenstiel School of Marine, Atmospheric & Earth Science) while at the NASA Jet Propulsion Laboratory, California Institute of Technology, with inspiration from JPL’s ECOSTRESS geolocation batch workflow by Andrew Alamillo. The original GeoViewer was released under the MIT License (2025) and may be freely adapted with citation.
|
|
57
|
+
|
|
58
|
+
# Citation
|
|
59
|
+
Longenecker, Jake; Lee, Christine; Hulley, Glynn; Cawse-Nicholson, Kerry; Purkis, Sam; Gleason, Art; Otis, Dan; Galdamez, Illeana; Meiseles, Jacquelyn. GeoViewer v1.12: NASA JPL Thermal Viewer—Semi-Automated Georeferencer User Guide & Reference Manual. Jet Propulsion Laboratory, California Institute of Technology, 2025. PDF.
|
|
60
|
+
|
|
61
|
+
# License
|
|
62
|
+
This project is released under the MIT License.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Examples
|
|
2
|
+
|
|
3
|
+
This folder contains small demo data to test **viewtif**.
|
|
4
|
+
|
|
5
|
+
## Quick test
|
|
6
|
+
After installing viewtif, run:
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
viewtif examples/sample_data/ECOSTRESS_LST.tif
|
|
10
|
+
viewtif examples/sample_data/ECOSTRESS_LST.tif --shapefile examples/Zip_Codes.shp
|
|
11
|
+
viewtif --rgbfiles examples/sample_data/HLS_B4.tif examples/sample_data/HLS_B3.tif examples/sample_data/HLS_B2.tif
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Controls
|
|
15
|
+
| Key | Action | Mode |
|
|
16
|
+
| ----------------------------- | ------------------------------------- | ----------- |
|
|
17
|
+
| `+` / `-` | Zoom in / out | All |
|
|
18
|
+
| Arrow keys or `W` `A` `S` `D` | Pan | All |
|
|
19
|
+
| `C` / `V` | Decrease / increase contrast | All |
|
|
20
|
+
| `G` / `H` | Decrease / increase gamma | All |
|
|
21
|
+
| `M` | Toggle colormap (`viridis` ↔ `magma`) | Single-band |
|
|
22
|
+
| `[` / `]` | Previous / next band | Single-band |
|
|
23
|
+
| `R` | Reset view | All |
|
|
24
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
UTF-8
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137.0,298.257222101]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",6561666.666666666],PARAMETER["False_Northing",1640416.666666667],PARAMETER["Central_Meridian",-122.0],PARAMETER["Standard_Parallel_1",38.33333333333334],PARAMETER["Standard_Parallel_2",39.83333333333334],PARAMETER["Latitude_Of_Origin",37.66666666666666],UNIT["Foot_US",0.3048006096012192]]
|
|
Binary file
|
|
Binary file
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "viewtif"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
description = "Simple GeoTIFF viewer with optional shapefile overlay."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -21,6 +21,11 @@ dependencies = [
|
|
|
21
21
|
[project.scripts]
|
|
22
22
|
viewtif = "viewtif.tif_viewer:main"
|
|
23
23
|
|
|
24
|
+
[project.urls]
|
|
25
|
+
"Homepage" = "https://github.com/nkeikon/tifviewer"
|
|
26
|
+
"Source" = "https://github.com/nkeikon/tifviewer"
|
|
27
|
+
"Issues" = "https://github.com/nkeikon/tifviewer/issues"
|
|
28
|
+
|
|
24
29
|
[tool.hatch.build.targets.wheel]
|
|
25
30
|
packages = ["src/viewtif"]
|
|
26
31
|
|
|
@@ -85,7 +85,7 @@ class TiffViewer(QMainWindow):
|
|
|
85
85
|
self.rgb = rgb
|
|
86
86
|
self.rgbfiles = rgbfiles
|
|
87
87
|
|
|
88
|
-
self._scale_arg = max(1, int(scale))
|
|
88
|
+
self._scale_arg = max(1, int(scale or 1))
|
|
89
89
|
self._transform: Affine | None = None
|
|
90
90
|
self._crs = None
|
|
91
91
|
|
|
@@ -482,14 +482,14 @@ def run_viewer(
|
|
|
482
482
|
import click
|
|
483
483
|
|
|
484
484
|
@click.command()
|
|
485
|
-
@click.argument("tif_path"
|
|
486
|
-
@click.option("--
|
|
487
|
-
|
|
488
|
-
@click.option("--
|
|
489
|
-
@click.option("--
|
|
490
|
-
def main(tif_path,
|
|
491
|
-
"""
|
|
492
|
-
run_viewer(tif_path, scale=scale, band=band, shapefile=shapefile)
|
|
485
|
+
@click.argument("tif_path")
|
|
486
|
+
@click.option("--band", default=1, show_default=True, type=int, help="Band number to display")
|
|
487
|
+
@click.option("--scale", default=1.0, show_default=True, type=float, help="Scale factor for display")
|
|
488
|
+
@click.option("--shapefile", type=str, help="Optional shapefile to overlay")
|
|
489
|
+
@click.option("--shp-width", default=1.0, show_default=True, type=float, help="Line width for shapefile overlay")
|
|
490
|
+
def main(tif_path, band, scale, shapefile, shp_width):
|
|
491
|
+
"""Lightweight GeoTIFF viewer."""
|
|
492
|
+
run_viewer(tif_path, scale=scale, band=band, shapefile=shapefile, shp_width=shp_width)
|
|
493
493
|
|
|
494
494
|
if __name__ == "__main__":
|
|
495
495
|
main()
|
viewtif-0.1.1/PKG-INFO
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: viewtif
|
|
3
|
-
Version: 0.1.1
|
|
4
|
-
Summary: Simple GeoTIFF viewer with optional shapefile overlay.
|
|
5
|
-
Author: Keiko Nomura
|
|
6
|
-
License: MIT
|
|
7
|
-
Requires-Python: >=3.9
|
|
8
|
-
Requires-Dist: click>=8.1
|
|
9
|
-
Requires-Dist: matplotlib>=3.7
|
|
10
|
-
Requires-Dist: numpy>=1.23
|
|
11
|
-
Requires-Dist: pyside6>=6.5
|
|
12
|
-
Requires-Dist: rasterio>=1.3
|
|
13
|
-
Description-Content-Type: text/markdown
|
|
14
|
-
|
|
15
|
-
# viewtif
|
|
16
|
-
|
|
17
|
-
A simple GeoTIFF viewer with optional shapefile overlay.
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
viewtif my_raster.tif --shapefile my_overlay.shp
|
|
23
|
-
|