Metadata-Version: 2.4
Name: mrsiddecodetest
Version: 1.0.5
Summary: GeoWGS84 LizardTech MrSID Python Decoder Installer
Author: Vibudh Bhatnagar
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# GeoWGS84 MrSID Decoder

**Package Name:** `mrsiddecodetest`  
**Author:** Vibudh Bhatnagar  
**Platform:** Windows (64-bit)  
**Python Version:** >= 3.8  

GeoWGS84 MrSID Decoder is a lightweight Python Installer.  
It allows you to extract metadata from `.sid` files and decode them into common raster formats.

---

## 📦 Installation

Install from PyPI:

pip install mrsiddecodetest


---

## ⚙️ Requirements

- Windows 64-bit (win_amd64)
- Python 3.8 or higher
- No external SDK installation required (binaries included)

---

## 📂 Supported Input Format

- `.sid` (MrSID raster format)

---

## 🖼️ Supported Output Formats

You can decode `.sid` files into:

- GeoTIFF (`.tif`, `.tiff`)
- JPEG (`.jpg`)
- PNG (`.png`)
- BMP (`.bmp`)
- JPEG2000 (`.jp2`)
- NITF (`.ntf`)

---

# 🚀 Usage

## Basic Example

```python
from mrsiddecodetest import decode, info 

input_file = r"input_folder\meg_cr20.sid"
output_file = r"output_folder\output_test.tif"

# Get metadata information
print(info(input_file))

# Decode to GeoTIFF
decode(input_file, output_file)
```

---

## 📊 Extract Metadata Only

```python
from mrsiddecodetest import info

metadata = info(r"E:\path\to\file.sid")

print("Width:", metadata.get("width"))
print("Height:", metadata.get("height"))
print("Bands:", metadata.get("bands"))
print("Projection:", metadata.get("projection"))
```

---

## 🔄 Decode to Different Formats

### ➜ GeoTIFF

```python
decode(r"input.sid", r"output.tif")
```

### ➜ JPEG

```python
decode(r"input.sid", r"output.jpg")
```

### ➜ PNG

```python
decode(r"input.sid", r"output.png")
```

### ➜ BMP

```python
decode(r"input.sid", r"output.bmp")
```

### ➜ JPEG2000 (JP2)

```python
decode(r"input.sid", r"output.jp2")
```

### ➜ NITF

```python
decode(r"input.sid", r"output.ntf")
```

---

## 🛡️ Error Handling Example

```python
from mrsiddecodetest import decode, info

try:
    print(info("input.sid"))
    decode("input.sid", "output.tif")
    print("Decoding successful!")
except Exception as e:
    print("Error:", str(e))
```

---

## 📝 Important Notes (Windows Users)

### Always Use Raw Strings for Windows Paths

Correct:

```python
r"E:\folder\file.sid"
```

OR

```python
"E:\\folder\\file.sid"
```

Avoid:

```python
"E:\folder\file.sid"
```

## Recommended: Virtual Environment Setup

```bash
python -m venv venv
venv\Scripts\activate
pip install mrsiddecodetest
```

