Pybioclim
A Python interface to BIOCLIM climate data. Data files included in package.
Install / Use
/learn @bendmorris/PybioclimREADME
This is a simple Python package for interacting with BIOCLIM climate data in Python. The data files are included in the repository.
Requirements:
- numpy
- gdal
- gitpython
- cython
- matplotlib/Basemap (optional, for drawing maps)
To install:
python setup.py install
To use:
>>> import pybioclim
# get the GDAL Dataset object
>>> data = pybioclim.get_dataset('bio1')
>>> array = data.ReadAsArray()
# get a list of values at specified lat/lon coordinates
>>> lat_lon = [(0,0),
... (-20,-170),
... (50, 12.2527)]
>>> values = pybioclim.get_values('bio1', lat_lon)
# compute the spatial variance within a given radius (in km)
>>> variance = pybioclim.get_spatial_variance('bio1', lat_lon, radius=25)
# draw a map of a BIOCLIM variable (using matplotlib and Basemap)
pybioclim.draw_map('bio17', log=True)
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
