semvec/pypi-packages huggingface dataset:
PyDVP 4.2.0
A DEXON DIVIP Python library
Requires Python: >=3.6

An official DEXON DIVIP Python library

## Installation

Install the library using pip:

pip install PyDVP 

## Usage

import pydvp
import time

#open socket
pydvp.open("192.168.1.241", 6464)
#authentication
pydvp.setup("Administrator", "", False)

#query opened windows
xml_data = pydvp.query_windows()
#convert the given XML into a list of Window class instances 
windows = pydvp.parse_windows(xml_data)

#close all opened windows
pydvp.take_close_all()

#open a window
w1 = pydvp.Window()
w1.name = "python_win1"
w1.zorder = 0
w1.input = 1
w1.left = 0
w1.top = 0
w1.width = 640
w1.height = 360
pydvp.take([w1])

#recall layout by id
pydvp.recall_layout(1)

#close socket
pydvp.close()

## Contact

support@dexonsystems.com
ecocrop 0.1.0
Ecocrop model implementation in Python for crop suitability analysis
Requires Python: >=3.7

# Ecocrop Python Package

This package implements the FAO Ecocrop model for ecological suitability analysis of crops based on temperature and precipitation thresholds.

## Features

- Load crop parameters from dataset or mock database
- Integrate environmental predictors from raster files
- Compute crop suitability using environmental inputs
- Export suitability maps to GeoTIFF
- Batch process multiple crops
- Summarize and visualize suitability outputs

## Installation

```bash
pip install .
```

## Usage

```python
from ecocrop import EcocropModel
import pandas as pd

df = pd.read_excel("Ecocrop_updated_1312023.xlsx")
model = EcocropModel()

# Load raster predictors
model.load_raster_predictor("temperature", "path/to/ta.tif")
model.load_raster_predictor("precipitation", "path/to/pr.tif")

# Load crop parameters and run model
model.load_parameters_from_dataframe(df, "maize")
suitability = model.run()
model.plot_suitability(suitability)

# Export results
model.export_suitability(suitability, "outputs/suitability_maize.tif")
```

## License

MIT License