fierpy-0.0.4
توضیحات
Python implementation of the Forecasting Inundation Extents using REOF method
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fierpy-0.0.4 |
| نام | fierpy |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kel Markert |
| ایمیل نویسنده | kel.markert@gmail.com |
| آدرس صفحه اصلی | http://github.com/servir/fierpy |
| آدرس اینترنتی | https://pypi.org/project/fierpy/ |
| مجوز | MIT |
# fierpy
Python implementation of the Forecasting Inundation Extents using REOF method
Based off of the methods from [Chang et al., 2020](https://doi.org/10.1016/j.rse.2020.111732)
## Installation
```bash
$ conda create -n fier -c conda-forge python=3.8 netcdf4 qt pyqt rioxarray numpy scipy xarray pandas scikit-learn eofs geoglows
$ conda activate fier
$ pip install git+https://github.com/servir/fierpy.git
```
To Install in OpenSARlab:
```bash
$ conda create --prefix /home/jovyan/.local/envs/fier python=3.8 netcdf4 qt pyqt rioxarray numpy scipy xarray pandas scikit-learn eofs geoglows jupyter kernda
$ conda activate fier
$ pip install git+https://github.com/servir/fierpy.git
$ /home/jovyan/.local/envs/fier/bin/python -m ipykernel install --user --name fier
$ conda run -n fier kernda /home/jovyan/.local/share/jupyter/kernels/fier/kernel.json --env-dir /home/jovyan/.local/envs/fier -o
```
### Requirements
* numpy
* xarray
* pandas
* eofs
* geoglows
* scikit-learn
* rasterio
## Example use
```python
import xarray as xr
import fierpy
# read sentinel1 time series imagery
ds = xr.open_dataset("sentine1.nc")
# apply rotated eof process
reof_ds = fierpy.reof(ds.VV,n_modes=4)
# get streamflow data from GeoGLOWS
# select the days we have observations
lat,lon = 11.7122,104.9653
q = fierpy.get_streamflow(lat,lon)
q_sel = fierpy.match_dates(q,ds.time)
# apply polynomial to different modes to find best stats
fit_test = fierpy.find_fits(reof_ds,q_sel,ds)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| - | pandas |
| - | xarray |
| >=0.24 | scikit-learn |
| - | geoglows |
| - | eofs |
| - | netcdf4 |
| - | kernda |
| - | jupyter |
نحوه نصب
نصب پکیج whl fierpy-0.0.4:
pip install fierpy-0.0.4.whl
نصب پکیج tar.gz fierpy-0.0.4:
pip install fierpy-0.0.4.tar.gz