mcpField
C
cimis-cli

cimis-cli

github.com/dl-alexandreData & databases141 installsUpdated 4w ago
Repository

About cimis-cli

cimis-cli is a command-line tool for querying California Irrigation Management Information System weather data. It serves users who need station observations, ET0 calculations, and irrigation water budgets, with date and field filters plus summary and CSV export commands.

Key features

  1. 01Find and inspect weather stations
  2. 02Query daily and hourly observations
  3. 03Calculate ET0 and water budgets
  4. 04Summarize data and export CSV

Use cases

  1. 01Find CIMIS stations near a location
  2. 02Retrieve weather data for irrigation planning
  3. 03Calculate a crop-specific water budget
  4. 04Summarize monthly data or export annual records

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/dl-alexandre/skills --skill cimis-cli

After installing, type/cimis-cliin Claude Code to confirm it loaded.

Details

From the project README

CIMIS CLI

Query California Irrigation Management Information System (CIMIS) data using the cimis command-line tool.

Prerequisites

cimis --version
cimis auth status

Authentication

  • API key from CIMIS
  • Environment variable: CIMIS_API_KEY

Weather Stations

cimis stations list --active
cimis stations get STATION_ID
cimis stations nearby --zip 95354 --radius 50

Weather Data

Daily Data
cimis data daily --station 171 --start 2024-06-01 --end 2024-06-30
cimis data daily --station 171 --days 7 --fields eto,humidity,temp
Hourly Data
cimis data hourly --station 171 --date 2024-06-15
cimis data hourly --station 171 --start 2024-06-01T00:00 --end 2024-06-01T23:59

ET0 & Irrigation

cimis eto --station 171 --start 2024-06-01 --end 2024-06-30 --crop coef
cimis waterbudget --station 171 --crop alfalfa --start 2024-06-01

Export & Analysis

cimis export --station 171 --start 2024-01-01 --end 2024-12-31 --format csv
cimis summary --station 171 --month 6 --year 2024

Agent Best Practices

  1. Station selection: Use nearby for location-based queries
  2. Date formats: ISO 8601 or YYYY-MM-DD
  3. Fields filtering: Request only needed fields for faster queries
  4. Units: Default is metric; use --imperial for US units

Comments

Markdown supported