# PyCSEP: Collaboratory for the Study of Earthquake Predictability
![](http://hypocenter.usc.edu/research/badges/CSEP2_Logo_CMYK.png)
![Python version](http://hypocenter.usc.edu/research/badges/pycsep-python.svg)
![Python application](https://github.com/SCECCode/csep2/workflows/Python%20application/badge.svg)
[![Build sphinx documentation](https://github.com/SCECCode/csep2/workflows/Build%20sphinx%20documentation/badge.svg)](https://cseptesting.org)
[![codecov](https://codecov.io/gh/SCECcode/csep2/branch/dev/graph/badge.svg)](https://codecov.io/gh/SCECcode/csep2)
The PyCSEP tools help earthquake forecast model developers evaluate their forecasts with the goal of understanding
earthquake predictability.
PyCSEP should:
1. Help modelers become familiar with formats, procedures, and evaluations used in CSEP Testing Centers.
2. Provide vetted software for model developers to use in their research.
3. Provide quantative and visual tools to assess earthquake forecast quality.
4. Promote open-science ideas by ensuring transparency and availability of scientific code and results.
5. Curate benchmark models and data sets for modelers to conduct retrospective experiments of their forecasts.
## Installing PyCSEP
PyCSEP can be installed using `pip` or built from source. We are working on a `conda-forge` recipe that will greatly
simplify the installation process and remove the need to install system dependencies. If you plan on contributing to this
package, visit the [contribution guidelines](https://github.com/SCECcode/pycsep/blob/master/CONTRIBUTING.md) for
installation instructions.
pip install pycsep
Before this installation will work, you must **first** install the following system dependencies. The remaining dependencies
should be installed by the installation script. To help manage dependency issues, we recommend using virtual environments
like `virtualenv`.
Python 3.7 or later (https://python.org)
NumPy 1.10 or later (https://numpy.org)
Python package for scientific computing and numerical calculations.
GEOS 3.3.3 or later (https://trac.osgeo.org/geos/)
C++ library for processing geometry.
PROJ 4.9.0 or later (https://proj4.org/)
Library for cartographic projections.
Example for Ubuntu:
sudo apt-get install libproj-dev proj-data proj-bin
sudo apt-get install libgeos-dev
pip install --upgrade pip
pip install numpy
Example for MacOS:
brew install proj geos
pip install --upgrade pip
pip install numpy
### From Source
Use this approach if you want the most up-to-date code. This creates an editable installation that can be synced with
the latest GitHub commit.
We recommend using virtual environments when installing python packages from source to avoid any dependency conflicts. We prefer
`conda` as the package manager over `pip`, because `conda` does a good job of handling binary distributions of packages
across multiple platforms. Also, we recommend using the `miniconda` installer, because it is lightweight and only includes
necessary pacakages like `pip` and `zlib`.
#### Using Conda
If you don't have `conda` on your machine, download and install [Miniconda](https://docs.conda.io/en/latest/miniconda.html).
git clone https://github.com/SCECcode/pycsep
cd pycsep
conda env create -f requirements.yml
conda activate csep-dev
# Installs in editor mode with all dependencies
pip install -e .
Note: If you want to go back to your default environment use the command `conda deactivate`.
#### Using Pip / Virtualenv
We highly recommend using Conda, because this tools helps to manage binary dependencies on Python packages. If you
must use [Virtualenv](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/)
follow these instructions:
git clone https://github.com/SCECcode/pycsep
cd pycsep
python -m virtualenv venv
source venv/bin/activate
# Installs in editor mode with all dependencies
pip install -e .[all]
Note: If you want to go back to your default environment use the command `deactivate`.
## Documentation and Changelog
The documentation can be found at [here](https://cseptesting.org), and the changelog can be found
[here](https://github.com/SCECcode/pycsep/blob/master/CHANGELOG.txt).
## Releases
We follow [semver](https://semver.org/) for our versioning strategy.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共270个文件
rst:144个
py:43个
txt:40个
资源分类:Python库 所属语言:Python 资源全名:pycsep-0.1.0.dev1.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
Python库 | pycsep-0.1.0.dev1.tar.gz (270个子文件)
setup.cfg 38B
ucerf3-landers_1992-06-28T11-57-34-14.csv 12.69MB
test.csv 1.29MB
full.csv 814KB
random.csv 125KB
sample_comcat_catalog.csv 49KB
2002.csv 37KB
EEPAS-0F_12_1_2007.dat 50.18MB
helmstetter_et_al.hkj-fromXML.dat 20.43MB
helmstetter_et_al.hkj.aftershock-fromXML.dat 20.43MB
RELMCollectionArea.dat 505KB
RELMTestArea.dat 398KB
RELMTestArea.dat 398KB
italy.collection.nodes.dat 129KB
ItalyTestArea.dat 104KB
italy.testing.nodes.dat 104KB
ThreeMonthsModel.catalog.nodecl.dat 0B
MANIFEST.in 514B
dateStringParsing.ipynb 3KB
runtime_data.json 2KB
LICENSE 1KB
Makefile 686B
README.md 4KB
CONTRIBUTING.md 3KB
CODE_OF_CONDUCT.md 3KB
not-zip-safe 1B
PKG-INFO 6KB
PKG-INFO 6KB
comcat.py 48KB
catalogs.py 46KB
plots.py 42KB
forecasts.py 27KB
regions.py 26KB
poisson_evaluations.py 25KB
readers.py 24KB
catalog_evaluations.py 13KB
test_comcat.py 13KB
io.py 12KB
models.py 10KB
test_spatial.py 8KB
conf.py 7KB
calc.py 7KB
documents.py 6KB
time_utils.py 6KB
test_csep1_evaluations.py 6KB
stats.py 6KB
repositories.py 4KB
test_math.py 4KB
test_stats.py 4KB
basic_types.py 3KB
test_calc.py 3KB
test_create_catalog.py 3KB
test_evaluations.py 3KB
test_adaptiveHistogram.py 3KB
file.py 2KB
test_ingv_rcmt_reader_csv.py 2KB
test_regions.py 2KB
test_JmaCsvCatalog.py 2KB
test_time_utilities.py 2KB
datasets.py 2KB
log.py 1KB
setup.py 1KB
__init__.py 1KB
__init__.py 793B
test_file_system.py 506B
constants.py 370B
scaling_relationships.py 370B
exceptions.py 284B
test_basic_types_utils.py 283B
__init__.py 0B
__init__.py 0B
catalogs.rst 16KB
evaluations.rst 13KB
core_concepts.rst 6KB
api_reference.rst 6KB
regions.rst 5KB
forecasts.rst 5KB
index.rst 3KB
installing.rst 3KB
glossary.rst 2KB
csep.core.catalogs.AbstractBaseCatalog.rst 2KB
developer_notes.rst 2KB
csep.core.catalogs.UCERF3Catalog.rst 2KB
csep.core.catalogs.CSEPCatalog.rst 1KB
publications.rst 1KB
csep.core.forecasts.GriddedForecast.rst 1KB
csep.core.forecasts.CatalogForecast.rst 729B
csep.core.regions.CartesianGrid2D.rst 706B
roadmap.rst 420B
csep.utils.basic_types.AdaptiveHistogram.rst 417B
csep.core.regions.Polygon.rst 386B
csep.core.catalogs.CSEPCatalog.get_cumulative_number_of_events.rst 233B
csep.core.poisson_evaluations.conditional_likelihood_test.rst 218B
csep.core.forecasts.GriddedForecast.get_magnitude_index.rst 208B
csep.core.catalogs.CSEPCatalog.spatial_magnitude_counts.rst 208B
csep.utils.stats.poisson_joint_log_likelihood_ndarray.rst 208B
csep.core.forecasts.GriddedForecast.scale_to_test_date.rst 207B
csep.core.forecasts.GriddedForecast.target_event_rates.rst 205B
csep.core.forecasts.CatalogForecast.get_expected_rates.rst 205B
csep.utils.plots.plot_cumulative_events_versus_time.rst 202B
共 270 条
- 1
- 2
- 3
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于STM32F103C8T6、LCD1602、MCP3004(SPI接口)多通道ADC转换proteus仿真设计
- 38350.jpg
- MySQL开发教程-从入门到实践.zip
- LTE的小区搜索MATLAB仿真程序
- 斯沃数控仿真软件7.2版数控加工中心车床铣床编程仿真模拟教程斯沃系统手册OKUMA数控铣床操作手册
- 红外车辆检测数据集VOC+YOLO格式13979张类别.7z
- 基于Java的安卓圆形布局视图设计源码
- DFSDFSDFSDFSDFSDFSD
- 基于Python+UIE的舆论情感分析Web系统
- 基于FREERTOS、LCD1602、MCP3202(SPI接口)2通道ADC采集proteus仿真设计
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功