https://github.com/weber-s/pypmf
Positive Matrix Factorization handler
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 3 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.6%) to scientific vocabulary
Keywords
Repository
Positive Matrix Factorization handler
Basic Info
Statistics
- Stars: 11
- Watchers: 1
- Forks: 5
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Positive Matrix Factorization in python
Handle PMF output from various format in handy pandas DataFrame and do lot of stuf with them.
Currently, only data from the EPA PMF5 is handle, from xlsx or sql database output.
History
This project started because I needed to run several PMF for my PhD and also needed to run some computation on these results. The raw output of the EPA PMF5 software is a bit messy and hard to understand at a first glance, and copy/pasting xlsx file is not my taste... So I ended developping this tools for handling the tasks of maping the xlsx output to nice python objects, on which I can easily run some computation.
Since I needed to plot the results afterward, I also added some plot utilities in this package. It then has build in support for ploting :
- chemical profile (both absolute and normalized)
- species repartition among factor
- timeserie contribution (for all species and profiles)
- uncertainties plots (Bootstrap and DISP)
- seasonal contribution
- contribution of sources to polluted and normal days
- And a lot more!
Examples
The documentation has a lot of examples and figures, but here is a short summary:
```python from pyPMF.PMF import PMF
pmf = PMF(site="GRE-fr", reader="xlsx", BDIR="./")
Read various output
pmf.read.readbaseprofiles() pmf.read.readbasecontributions() pmf.read.readconstrainedprofiles() pmf.read.readconstrainedcontributions()
... or simply :
pmf.read.read_all()
The pmf has now different attributes associated
pmf.profiles # name of the different factors pmf.species # name of the different species pmf.dfcontribc # contribution dataframe of factors pmf.dfprofilec # chemical profile of factors
... and lot more
plot the results
pmf.plot.plotstackedprofiles()
or use some utilities
pmf.tocubicmeter(specie="Cu") # Contribution timeserie of the different factors to the Cu pmf.torelativemass()
... and lot more
```
Owner
- Name: Samuël Weber/GwendalD
- Login: weber-s
- Kind: user
- Company: Webu
- Website: webu.coop
- Repositories: 42
- Profile: https://github.com/weber-s
GitHub Events
Total
- Watch event: 2
Last Year
- Watch event: 2
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Samuel | s****r@u****r | 31 |
| Samuel | s****r@w****p | 4 |
| Samuel | s****r@g****g | 3 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 8 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- Babel *
- Jinja2 *
- MarkupSafe *
- Pygments *
- Sphinx *
- attrs *
- certifi *
- chardet *
- docutils *
- future *
- idna *
- imagesize *
- packaging *
- pyparsing *
- pytz *
- requests *
- six *
- snowballstemmer *
- sphinx-rtd-theme *
- sphinxcontrib-applehelp *
- sphinxcontrib-devhelp *
- sphinxcontrib-htmlhelp *
- sphinxcontrib-jsmath *
- sphinxcontrib-qthelp *
- sphinxcontrib-serializinghtml *
- urllib3 *
- Sphinx *
- recommonmark *
- sphinx-rtd-theme *
- alabaster ==0.7.12
- attrs ==19.1.0
- babel ==2.7.0
- certifi ==2019.6.16
- chardet ==3.0.4
- commonmark ==0.9.0
- docutils ==0.15.2
- future ==0.17.1
- idna ==2.8
- imagesize ==1.1.0
- jinja2 ==2.10.1
- markupsafe ==1.1.1
- packaging ==19.1
- pygments ==2.4.2
- pyparsing ==2.4.2
- pytz ==2019.2
- recommonmark ==0.5.0
- requests ==2.22.0
- six ==1.12.0
- snowballstemmer ==1.9.0
- sphinx ==2.1.2
- sphinx-rtd-theme ==0.4.3
- sphinxcontrib-applehelp ==1.0.1
- sphinxcontrib-devhelp ==1.0.1
- sphinxcontrib-htmlhelp ==1.0.2
- sphinxcontrib-jsmath ==1.0.1
- sphinxcontrib-qthelp ==1.0.2
- sphinxcontrib-serializinghtml ==1.1.3
- urllib3 ==1.25.3
- matplotlib *
- numpy *
- pandas *
- seaborn *
- xlrd <2
- matplotlib *
- pandas *
- seaborn *
- xlrd <2