SkillAgentSearch skills...

ConvertSPEI

This program converts Standardised Precipitation-Evapotranspiration Index (SPEI) data from the netcdf format to csv and Excel formats.

Install / Use

/learn @uthpalaherath/ConvertSPEI
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

convertSPEI

This program converts time series Standardised Precipitation-Evapotranspiration Index (SPEI) data from the netcdf format to a csv format which could be read by a program such as Excel. The SPEI data is available at https://spei.csic.es/index.html. </br> Although parallelized, for large datasets the conversion might take a while. The column headers are Time, Latitude, Longitude and SPEI value in that order.

Installation

pip install convertSPEI

* Packages in PyPI are not case sensitive.

Once installed, use the -h flag to see a list of options.

convertSPEI.py -h

Usage

convertSPEI.py -np 20 -inp spei01.nc -out spei01_converted.csv

where, </br>

  • np : the number of processors
  • inp : input file name
  • out : output file name

Note: </br>

If Memory Error occurs, reduce the number of processors to provide more memory per core for the conversion.

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated10mo ago
Forks1

Languages

Python

Security Score

87/100

Audited on May 11, 2025

No findings