Test complete, requirements complete and README
This commit is contained in:
parent
b087889716
commit
221f580315
|
@ -194,8 +194,8 @@ def ProcessAllImage(ssp,model,Colorpalete,ExportDirectory,DataDirectory):
|
||||||
now=time.time()
|
now=time.time()
|
||||||
print(cc,(start-now)/cc,(start-now)/cc*(Total-cc))
|
print(cc,(start-now)/cc,(start-now)/cc*(Total-cc))
|
||||||
|
|
||||||
ssp=("ssp245","ssp370",)#"ssp585",
|
ssp=("ssp245","ssp370"),#"ssp585",
|
||||||
model=("BCC-CSM2-MR","CanESM5",)#"CanESM5","CESM2","EC-Earth3","IPSL-CM6A-LR","MIROC6","MRI-ESM2-0",,"NorESM2-MM"
|
model=("BCC-CSM2-MR","CESM2")#"CanESM5","EC-Earth3","IPSL-CM6A-LR","MIROC6","MRI-ESM2-0","NorESM2-MM"
|
||||||
Colorpalete=["RdYlBu",'Spectral','ocean',"coolwarm"]
|
Colorpalete=["RdYlBu",'Spectral','ocean',"coolwarm"]
|
||||||
ExportDirectory="images/"
|
ExportDirectory="images/"
|
||||||
DataDirectory="maps/"
|
DataDirectory="maps/"
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
# NetcdfToPng
|
||||||
|
|
||||||
|
Script to extract png file since Netcdf, It aplicate a color palete.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install the requirements.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```python
|
||||||
|
ssp=("ssp245","ssp370"),#"ssp585",
|
||||||
|
model=("BCC-CSM2-MR","CESM2")#"CanESM5","EC-Earth3","IPSL-CM6A-LR","MIROC6","MRI-ESM2-0","NorESM2-MM"
|
||||||
|
Colorpalete=["RdYlBu",'Spectral','ocean',"coolwarm"]
|
||||||
|
ExportDirectory="images/"
|
||||||
|
DataDirectory="maps/"
|
||||||
|
ProcessAllImage(ssp,model,Colorpalete,ExportDirectory,DataDirectory)
|
|
@ -0,0 +1,25 @@
|
||||||
|
affine==2.3.1
|
||||||
|
attrs==21.4.0
|
||||||
|
certifi==2022.5.18.1
|
||||||
|
cftime==1.6.0
|
||||||
|
click==8.1.3
|
||||||
|
click-plugins==1.1.1
|
||||||
|
cligj==0.7.2
|
||||||
|
cycler==0.11.0
|
||||||
|
fonttools==4.33.3
|
||||||
|
kiwisolver==1.4.2
|
||||||
|
matplotlib==3.5.2
|
||||||
|
netCDF4==1.5.8
|
||||||
|
numpy==1.22.4
|
||||||
|
packaging==21.3
|
||||||
|
pandas==1.4.2
|
||||||
|
Pillow==9.1.1
|
||||||
|
pyparsing==3.0.9
|
||||||
|
pyproj==3.3.1
|
||||||
|
python-dateutil==2.8.2
|
||||||
|
pytz==2022.1
|
||||||
|
rasterio==1.2.10
|
||||||
|
rioxarray==0.11.1
|
||||||
|
six==1.16.0
|
||||||
|
snuggs==1.4.7
|
||||||
|
xarray==2022.3.0
|
Loading…
Reference in New Issue