Python CIMIS Client Documentationο
Welcome to the Python CIMIS Client documentation! This library provides easy access to the California Irrigation Management Information System (CIMIS) API for retrieving weather data, evapotranspiration estimates, and station information.
Quick Startο
Install the library:
pip install python-CIMIS
Get your API key from the CIMIS website and start using the library:
from python_cimis import CimisClient
from datetime import date, timedelta
import os
# Initialize client with your API key
client = CimisClient(app_key=os.getenv('CIMIS_API_KEY'))
# Get daily weather data for the last week
end_date = date.today() - timedelta(days=1)
start_date = end_date - timedelta(days=6)
weather_data = client.get_daily_data(
targets=[2], # Five Points station
start_date=start_date,
end_date=end_date
)
# Export to CSV
csv_file = client.export_to_csv(weather_data)
print(f"Weather data exported to: {csv_file}")
Key Featuresο
- π€οΈ Comprehensive Weather Data
Daily and hourly weather measurements
Evapotranspiration (ET) calculations
Quality control flags and data validation
- ποΈ Multiple Data Sources
Weather Station Network (WSN) data
Spatial CIMIS System (SCS) interpolated data
Station information and metadata
- π Flexible Data Retrieval
Multiple target types: station numbers, coordinates, zip codes, addresses
Custom date ranges and data item selection
Built-in CSV export with intelligent file naming
- π§ Developer Friendly
Type hints for better IDE integration
Comprehensive error handling
Extensive documentation and examples
- πΎ Agricultural Applications
Irrigation scheduling calculations
Growing degree day computations
Crop coefficient integration
Table of Contentsο
User Guide
API Reference
Development
Data Sources and Coverageο
The CIMIS system provides data from two main sources:
- Weather Station Network (WSN)
Physical weather stations throughout California providing:
Daily and hourly measurements
High-quality instrumentation
Direct measurements of meteorological parameters
Limited geographic coverage
- Spatial CIMIS System (SCS)
Grid-based interpolated data covering:
Areas without physical stations
Daily data only (no hourly measurements)
Interpolated from nearby WSN stations and satellite data
Statewide coverage
Use Casesο
The Python CIMIS Client is ideal for:
- πΎ Agricultural Applications
Irrigation scheduling and water management
Crop growth monitoring and yield prediction
Pest and disease management timing
Harvest planning optimization
- ποΈ Environmental Research
Climate change impact studies
Ecosystem water balance modeling
Drought monitoring and assessment
Urban heat island analysis
- π§ Water Resources
Regional water demand forecasting
Reservoir management planning
Groundwater recharge estimation
Water conservation program evaluation
- π Data Science and Analytics
Weather pattern analysis
Machine learning model development
Agricultural decision support systems
Environmental monitoring dashboards
Support and Communityο
Documentation: Youβre reading it! Check the user guide and API reference for detailed information.
GitHub Issues: Report bugs and request features at our GitHub repository.
Examples: See the examples directory for practical use cases.
CIMIS Official: Visit the official CIMIS site for more information about the data and services.
Licenseο
This project is licensed under the MIT License. See the LICENSE file for details.