viewtif 0.1.10__tar.gz → 0.2.1__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.10 → viewtif-0.2.1}/PKG-INFO +15 -16
- {viewtif-0.1.10 → viewtif-0.2.1}/README.md +13 -14
- {viewtif-0.1.10 → viewtif-0.2.1}/pyproject.toml +2 -2
- {viewtif-0.1.10 → viewtif-0.2.1}/src/viewtif/tif_viewer.py +5 -1
- {viewtif-0.1.10 → viewtif-0.2.1}/.gitignore +0 -0
- {viewtif-0.1.10 → viewtif-0.2.1}/examples/README.md +0 -0
- {viewtif-0.1.10 → viewtif-0.2.1}/examples/sample_data/AG100.v003.13.-017.0001.h5 +0 -0
- {viewtif-0.1.10 → viewtif-0.2.1}/examples/sample_data/ECOSTRESS_LST.tif +0 -0
- {viewtif-0.1.10 → viewtif-0.2.1}/examples/sample_data/HLS_B02.tif +0 -0
- {viewtif-0.1.10 → viewtif-0.2.1}/examples/sample_data/HLS_B03.tif +0 -0
- {viewtif-0.1.10 → viewtif-0.2.1}/examples/sample_data/HLS_B04.tif +0 -0
- {viewtif-0.1.10 → viewtif-0.2.1}/examples/sample_data/Zip_Codes.cpg +0 -0
- {viewtif-0.1.10 → viewtif-0.2.1}/examples/sample_data/Zip_Codes.dbf +0 -0
- {viewtif-0.1.10 → viewtif-0.2.1}/examples/sample_data/Zip_Codes.prj +0 -0
- {viewtif-0.1.10 → viewtif-0.2.1}/examples/sample_data/Zip_Codes.shp +0 -0
- {viewtif-0.1.10 → viewtif-0.2.1}/examples/sample_data/Zip_Codes.shx +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: viewtif
|
|
3
|
-
Version: 0.1
|
|
4
|
-
Summary: Lightweight GeoTIFF, HDF/HDF5, and Esri File Geodatabase (.gdb) viewer with shapefile overlay and
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: Lightweight GeoTIFF, NetCDF, HDF/HDF5, and Esri File Geodatabase (.gdb) viewer with optional shapefile overlay. NetCDF and cartopy support available via pip install viewtif[netcdf].
|
|
5
5
|
Project-URL: Homepage, https://github.com/nkeikon/tifviewer
|
|
6
6
|
Project-URL: Source, https://github.com/nkeikon/tifviewer
|
|
7
7
|
Project-URL: Issues, https://github.com/nkeikon/tifviewer/issues
|
|
@@ -25,14 +25,7 @@ Description-Content-Type: text/markdown
|
|
|
25
25
|
|
|
26
26
|
A lightweight GeoTIFF viewer for quick visualization directly from the command line.
|
|
27
27
|
|
|
28
|
-
You can visualize single-band GeoTIFFs, RGB composites, and shapefile overlays in a simple Qt-based window.
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
Latest stable release: v0.1.9 (PyPI)
|
|
32
|
-
|
|
33
|
-
Development branch: v0.2.0-dev (experimental, not released)
|
|
34
|
-
|
|
35
|
-
---
|
|
28
|
+
You can visualize single-band GeoTIFFs, RGB composites, HDF, NetCDF files and shapefile overlays in a simple Qt-based window.
|
|
36
29
|
|
|
37
30
|
## Installation
|
|
38
31
|
|
|
@@ -52,7 +45,7 @@ pip install "viewtif[geo]"
|
|
|
52
45
|
> **Note:** For macOS(zsh) users:
|
|
53
46
|
> Make sure to include the quotes, or zsh will interpret it as a pattern.
|
|
54
47
|
|
|
55
|
-
#### HDF/HDF5 support
|
|
48
|
+
#### HDF/HDF5 support
|
|
56
49
|
```bash
|
|
57
50
|
brew install gdal # macOS
|
|
58
51
|
sudo apt install gdal-bin python3-gdal # Linux
|
|
@@ -91,9 +84,15 @@ viewtif AG100.v003.33.-107.0001.h5 --subset 1 --band 3
|
|
|
91
84
|
`[WARN] raster lacks CRS/transform; cannot place overlays.`
|
|
92
85
|
|
|
93
86
|
### Update in v1.0.7: File Geodatabase (.gdb) support
|
|
94
|
-
`viewtif` can now open raster datasets stored inside Esri File Geodatabases (`.gdb`)
|
|
87
|
+
`viewtif` can now open raster datasets stored inside Esri File Geodatabases (`.gdb`).
|
|
95
88
|
When you open a .gdb directly, `viewtif` will list available raster datasets first, then you can choose one to view.
|
|
96
89
|
|
|
90
|
+
Most Rasterio installations already include the OpenFileGDB driver, so .gdb datasets often open without installing GDAL manually.
|
|
91
|
+
|
|
92
|
+
If you encounter:
|
|
93
|
+
RuntimeError: GDB support requires GDAL,
|
|
94
|
+
install GDAL as shown above to enable the driver.
|
|
95
|
+
|
|
97
96
|
```bash
|
|
98
97
|
# List available raster datasets
|
|
99
98
|
viewtif /path/to/geodatabase.gdb
|
|
@@ -101,7 +100,7 @@ viewtif /path/to/geodatabase.gdb
|
|
|
101
100
|
# Open a specific raster
|
|
102
101
|
viewtif "OpenFileGDB:/path/to/geodatabase.gdb:RasterName"
|
|
103
102
|
```
|
|
104
|
-
> **Note:**
|
|
103
|
+
> **Note:** If multiple raster datasets are present, viewtif lists them all and shows how to open each. The .gdb path and raster name must be separated by a colon (:).
|
|
105
104
|
|
|
106
105
|
### Update in v1.0.7: Large raster safeguard
|
|
107
106
|
As of v1.0.7, `viewtif` automatically checks the raster size before loading.
|
|
@@ -116,12 +115,12 @@ You can proceed manually or rerun with the `--scale` option for a smaller, faste
|
|
|
116
115
|
| `C` / `V` | Increase / decrease contrast |
|
|
117
116
|
| `G` / `H` | Increase / decrease gamma |
|
|
118
117
|
| `M` | Toggle colormap (`viridis` ↔ `magma`) |
|
|
119
|
-
| `[` / `]` | Previous / next band (
|
|
118
|
+
| `[` / `]` | Previous / next band (or time step) |
|
|
120
119
|
| `R` | Reset view |
|
|
121
120
|
|
|
122
121
|
## Features
|
|
123
122
|
- Command-line driven GeoTIFF viewer.
|
|
124
|
-
- Supports single-band, RGB composite,
|
|
123
|
+
- Supports single-band, RGB composite, HDF/HDF5 subdatasets, and NetCDF.
|
|
125
124
|
- Optional shapefile overlay for geographic context.
|
|
126
125
|
- Adjustable contrast, gamma, and colormap.
|
|
127
126
|
- Fast preview using rasterio and PySide6.
|
|
@@ -142,5 +141,5 @@ Longenecker, Jake; Lee, Christine; Hulley, Glynn; Cawse-Nicholson, Kerry; Purkis
|
|
|
142
141
|
This project is released under the MIT License.
|
|
143
142
|
|
|
144
143
|
## Contributors
|
|
145
|
-
- [@HarshShinde0](https://github.com/HarshShinde0) — added mouse-wheel and trackpad zoom support
|
|
144
|
+
- [@HarshShinde0](https://github.com/HarshShinde0) — added mouse-wheel and trackpad zoom support; added NetCDF support with [@nkeikon](https://github.com/nkeikon)
|
|
146
145
|
- [@p-vdp](https://github.com/p-vdp) — added File Geodatabase (.gdb) raster support
|
|
@@ -5,14 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
A lightweight GeoTIFF viewer for quick visualization directly from the command line.
|
|
7
7
|
|
|
8
|
-
You can visualize single-band GeoTIFFs, RGB composites, and shapefile overlays in a simple Qt-based window.
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
Latest stable release: v0.1.9 (PyPI)
|
|
12
|
-
|
|
13
|
-
Development branch: v0.2.0-dev (experimental, not released)
|
|
14
|
-
|
|
15
|
-
---
|
|
8
|
+
You can visualize single-band GeoTIFFs, RGB composites, HDF, NetCDF files and shapefile overlays in a simple Qt-based window.
|
|
16
9
|
|
|
17
10
|
## Installation
|
|
18
11
|
|
|
@@ -32,7 +25,7 @@ pip install "viewtif[geo]"
|
|
|
32
25
|
> **Note:** For macOS(zsh) users:
|
|
33
26
|
> Make sure to include the quotes, or zsh will interpret it as a pattern.
|
|
34
27
|
|
|
35
|
-
#### HDF/HDF5 support
|
|
28
|
+
#### HDF/HDF5 support
|
|
36
29
|
```bash
|
|
37
30
|
brew install gdal # macOS
|
|
38
31
|
sudo apt install gdal-bin python3-gdal # Linux
|
|
@@ -71,9 +64,15 @@ viewtif AG100.v003.33.-107.0001.h5 --subset 1 --band 3
|
|
|
71
64
|
`[WARN] raster lacks CRS/transform; cannot place overlays.`
|
|
72
65
|
|
|
73
66
|
### Update in v1.0.7: File Geodatabase (.gdb) support
|
|
74
|
-
`viewtif` can now open raster datasets stored inside Esri File Geodatabases (`.gdb`)
|
|
67
|
+
`viewtif` can now open raster datasets stored inside Esri File Geodatabases (`.gdb`).
|
|
75
68
|
When you open a .gdb directly, `viewtif` will list available raster datasets first, then you can choose one to view.
|
|
76
69
|
|
|
70
|
+
Most Rasterio installations already include the OpenFileGDB driver, so .gdb datasets often open without installing GDAL manually.
|
|
71
|
+
|
|
72
|
+
If you encounter:
|
|
73
|
+
RuntimeError: GDB support requires GDAL,
|
|
74
|
+
install GDAL as shown above to enable the driver.
|
|
75
|
+
|
|
77
76
|
```bash
|
|
78
77
|
# List available raster datasets
|
|
79
78
|
viewtif /path/to/geodatabase.gdb
|
|
@@ -81,7 +80,7 @@ viewtif /path/to/geodatabase.gdb
|
|
|
81
80
|
# Open a specific raster
|
|
82
81
|
viewtif "OpenFileGDB:/path/to/geodatabase.gdb:RasterName"
|
|
83
82
|
```
|
|
84
|
-
> **Note:**
|
|
83
|
+
> **Note:** If multiple raster datasets are present, viewtif lists them all and shows how to open each. The .gdb path and raster name must be separated by a colon (:).
|
|
85
84
|
|
|
86
85
|
### Update in v1.0.7: Large raster safeguard
|
|
87
86
|
As of v1.0.7, `viewtif` automatically checks the raster size before loading.
|
|
@@ -96,12 +95,12 @@ You can proceed manually or rerun with the `--scale` option for a smaller, faste
|
|
|
96
95
|
| `C` / `V` | Increase / decrease contrast |
|
|
97
96
|
| `G` / `H` | Increase / decrease gamma |
|
|
98
97
|
| `M` | Toggle colormap (`viridis` ↔ `magma`) |
|
|
99
|
-
| `[` / `]` | Previous / next band (
|
|
98
|
+
| `[` / `]` | Previous / next band (or time step) |
|
|
100
99
|
| `R` | Reset view |
|
|
101
100
|
|
|
102
101
|
## Features
|
|
103
102
|
- Command-line driven GeoTIFF viewer.
|
|
104
|
-
- Supports single-band, RGB composite,
|
|
103
|
+
- Supports single-band, RGB composite, HDF/HDF5 subdatasets, and NetCDF.
|
|
105
104
|
- Optional shapefile overlay for geographic context.
|
|
106
105
|
- Adjustable contrast, gamma, and colormap.
|
|
107
106
|
- Fast preview using rasterio and PySide6.
|
|
@@ -122,5 +121,5 @@ Longenecker, Jake; Lee, Christine; Hulley, Glynn; Cawse-Nicholson, Kerry; Purkis
|
|
|
122
121
|
This project is released under the MIT License.
|
|
123
122
|
|
|
124
123
|
## Contributors
|
|
125
|
-
- [@HarshShinde0](https://github.com/HarshShinde0) — added mouse-wheel and trackpad zoom support
|
|
124
|
+
- [@HarshShinde0](https://github.com/HarshShinde0) — added mouse-wheel and trackpad zoom support; added NetCDF support with [@nkeikon](https://github.com/nkeikon)
|
|
126
125
|
- [@p-vdp](https://github.com/p-vdp) — added File Geodatabase (.gdb) raster support
|
|
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "viewtif"
|
|
7
|
-
version = "0.1
|
|
8
|
-
description = "Lightweight GeoTIFF, HDF/HDF5, and Esri File Geodatabase (.gdb) viewer with shapefile overlay and
|
|
7
|
+
version = "0.2.1"
|
|
8
|
+
description = "Lightweight GeoTIFF, NetCDF, HDF/HDF5, and Esri File Geodatabase (.gdb) viewer with optional shapefile overlay. NetCDF and cartopy support available via pip install viewtif[netcdf]."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
11
11
|
license = { text = "MIT" }
|
|
@@ -40,6 +40,10 @@ from PySide6.QtGui import QImage, QPixmap, QPainter, QPen, QColor, QPainterPath
|
|
|
40
40
|
from PySide6.QtCore import Qt
|
|
41
41
|
|
|
42
42
|
import matplotlib.cm as cm
|
|
43
|
+
import warnings
|
|
44
|
+
warnings.filterwarnings("ignore", category=RuntimeWarning, module="shapely")
|
|
45
|
+
|
|
46
|
+
__version__ = "0.2.1"
|
|
43
47
|
|
|
44
48
|
# Optional overlay deps
|
|
45
49
|
try:
|
|
@@ -729,7 +733,7 @@ def run_viewer(
|
|
|
729
733
|
import click
|
|
730
734
|
|
|
731
735
|
@click.command()
|
|
732
|
-
@click.version_option("0.1
|
|
736
|
+
@click.version_option("0.2.1", prog_name="viewtif")
|
|
733
737
|
@click.argument("tif_path", required=False)
|
|
734
738
|
@click.option("--band", default=1, show_default=True, type=int, help="Band number to display")
|
|
735
739
|
@click.option("--scale", default=1.0, show_default=True, type=int, help="Scale factor for display")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|