analysator
Python based package for analyzing vlsv files produced by Vlasiator
Science Score: 57.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 2 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.7%) to scientific vocabulary
Repository
Python based package for analyzing vlsv files produced by Vlasiator
Basic Info
- Host: GitHub
- Owner: fmihpc
- License: gpl-2.0
- Language: Python
- Default Branch: master
- Homepage: http://fmihpc.github.io/analysator/
- Size: 16.7 MB
Statistics
- Stars: 7
- Watchers: 15
- Forks: 36
- Open Issues: 41
- Releases: 3
Metadata Files
README.md
Analysator is a set of Python tools and scripts used to read and analyze Vlasiator output files (VLSV). Vlasiator and its related tools are developed at University of Helsinki, and are open source.
Installation:
Analysator is now a package!
The packaged analysator is (should be!) backwards-compatible with previous analysator versions: export PYTHONPATH=[path-to-analysator-repo] installation as before is still supported. import pytools will import analysator onto the pytools name, and emits a deprecation warning.
1. Via git and pip
Clone the analysator repository:
bash git clone https://github.com/fmihpc/analysator.gitInstall via
pipfrom the cloned path, sopipwill handle dependencies automatically. Using the editable flag is recommended for getting updates viagit pull origin:
bash
pip install --editable ./analysator
Nb. you are giving pip the root folder of your cloned repository, not some package on PyPi. --editable will have your Python environment point at your Analysator repository. You can run this command from within a virtual environment, which is recommended.
Here's a full example of setting up a virtual environment with analysator:
bash
git clone https://github.com/fmihpc/analysator.git
python -m venv my_analysating_environment
source my_analysating_environment/bin/activate
pip install --editable ./analysator
Updating
With --editable, you can update via git pull as usual in your cloned analysator repo:
bash
cd ./analysator
git pull origin
If --editable flag is not available, regular pip install should work, but in that case using export PYTHONPATH=[path-to-analysator] is recommended if you wish to contribute to Analysator (and who wouldn't!).
VTK
For installing the correct VTK depencies, especially BVTKnodes support, use either of
bash
pip install --editable ./analysator[vtk]
bash
pip install --editable ./analysator[bvtk]
respectively.
2. Via git and PYTHONPATH
This requires you to handle dependency installation manually (as before, or see the shortcut below).
Clone the analysator repository:
bash git clone https://github.com/fmihpc/analysator.gitAdd to your
.bashrcor similarbash export PYTHONPATH=[path-to-analysator]
Contained example for Linux installation to user $HOME folder and .bashrc:
bash
cd
git clone https://github.com/fmihpc/analysator.git
echo "export PYTHONPATH=$PYTHONPATH:$HOME/analysator" >> $HOME/.bashrc
Updating
You can update via git pull as usual in your cloned analysator repo:
bash
cd ./analysator
git pull origin
Dependencies shortcut
See requirements.txt - pip install -r ./analysator/requirements.txt will install all of them.
Using Analysator:
```python import analysator as pt # Import Analysator
Navigating functions:
pt.calculations.pitchangles? #press [Enter] pt.vlsvfile.VlsvReader? #press [Enter] pt.plot.plotcolormap? #press [Enter] pt.plot.plot_vdf? #press [Enter] ```
```bash
For non-interactive mode (also when no X is available):
set the environment variable PTNONINTERACTIVE to any value before launching
python/ipython. If in interactive mode, experimental non-blocking
windows via matplotlib.pyplot.ion() are in use.
export PTNONINTERACTIVE=1
For selecting a backend manually (if Agg or TkAgg is not available)
export PTBACKEND=Qt5Agg
For disabling full LaTeX formatted output (if texlive is not installed)
export PTNOLATEX=1 ```
Outputs
For setting the default output directory (default: $HOME/Plots)
export PTOUTPUTDIR=/proj/USERNAME/Plots/
If using a jupyter notebook on the UH hub system, you can activate interactive plot windows with %matplotlib ipympl or %matplotlib notebook before importing pytools
Examples and instructions for batch scripting (on CSC's system) are found in
examples/generate_panel.py and examples/generate_movie.sh
Analysator is using logging. It is controlled by setting the enviroment variable ANALYSATORLOGLEVEL Supported: DEBUG, INFO (default), WARNING, ERROR, CRITICAL
For example, disable INFO prints via:
bash
export ANALYSATOR_LOG_LEVEL='WARNING'
About
For more information visit the wiki: https://github.com/fmihpc/analysator/wiki
Analysator reference: https://fmihpc.github.io/analysator/
For citations, use the DOI https://doi.org/10.5281/zenodo.4462514 or the ready-made button the the right in GitHub!
Owner
- Name: FMI HPC tools and space weather models
- Login: fmihpc
- Kind: organization
- Location: FMI & University of Helsinki
- Website: www.fmi.fi
- Repositories: 16
- Profile: https://github.com/fmihpc
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Battarbee" given-names: "Markus" orcid: "https://orcid.org/0000-0001-7055-551X" - family-names: "Alho" given-names: "Markku" orcid: "https://orcid.org/0000-0001-9762-6795" - family-names: "Pfau-Kempf" given-names: "Yann" orcid: "https://orcid.org/0000-0001-5793-7070" - family-names: "Ganse" given-names: "Urs" orcid: "https://orcid.org/0000-0003-0872-1761" - family-names: "Grandin" given-names: "Maxime" orcid: "https://orcid.org/0000-0002-6373-9756" - family-names: "Kotipalo" given-names: "Leo" orcid: "https://orcid.org/0009-0001-5298-0747" - family-names: "Papadakis" given-names: "Konstantinos" orcid: "https://orcid.org/0000-0002-3307-6015" - family-names: "Jarvinen" given-names: "Riku" orcid: "https://orcid.org/0000-0002-4246-2954" - family-names: "Pänkäläinen" given-names: "Lauri" orcid: "https://orcid.org/0009-0003-1804-5952" - family-names: "Suni" given-names: "Jonas" orcid: "https://orcid.org/0000-0002-3369-4761" - family-names: "von Alfthan" given-names: "Sebastian" - family-names: "Tarvus" given-names: "Vertti" orcid: "https://orcid.org/0000-0001-7350-1509" - family-names: "Zaitsev" given-names: "Ivan" orcid: "https://orcid.org/0000-0002-0640-0123" - family-names: "Tao" given-names: "Shi" orcid: "https://orcid.org/0009-0000-6143-0109" - family-names: "Horaites" given-names: "Konstantinos" orcid: "https://orcid.org/0000-0002-0759-2964" - family-names: "Turc" given-names: "Lucile" orcid: "https://orcid.org/0000-0002-7576-3251" - family-names: "Tesema" given-names: "Fasil Kebede" orcid: "https://orcid.org/0000-0002-5978-6955" - family-names: "Zhou" given-names: "Hongyang" orcid: "https://orcid.org/0000-0003-4571-4501" - family-names: "Honkonen" given-names: "Ilja" orcid: "https://orcid.org/0000-0002-9542-5866" - family-names: "Brito" given-names: "Thiago" orcid: "https://orcid.org/0000-0002-2531-5848" - family-names: "Lalagüe" given-names: "Arnaud" orcid: "https://orcid.org/0009-0001-1958-366X" - family-names: "Siljamo" given-names: "Sameli" - family-names: "Reimi" given-names: "Johanna" title: "Analysator" version: 0.9.6 doi: 10.5281/zenodo.4462514 date-released: 2024-11-26 url: "https://github.com/fmihpc/analysator"
GitHub Events
Total
- Create event: 4
- Issues event: 10
- Release event: 1
- Watch event: 1
- Issue comment event: 16
- Push event: 87
- Pull request event: 75
- Gollum event: 3
- Pull request review event: 29
- Pull request review comment event: 41
- Fork event: 4
Last Year
- Create event: 4
- Issues event: 10
- Release event: 1
- Watch event: 1
- Issue comment event: 16
- Push event: 87
- Pull request event: 75
- Gollum event: 3
- Pull request review event: 29
- Pull request review comment event: 41
- Fork event: 4
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 22
- Total pull requests: 101
- Average time to close issues: over 3 years
- Average time to close pull requests: 3 months
- Total issue authors: 3
- Total pull request authors: 19
- Average comments per issue: 1.27
- Average comments per pull request: 0.66
- Merged pull requests: 68
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 9
- Pull requests: 51
- Average time to close issues: 2 days
- Average time to close pull requests: 2 days
- Issue authors: 1
- Pull request authors: 10
- Average comments per issue: 0.11
- Average comments per pull request: 0.18
- Merged pull requests: 34
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- alhom (16)
- kostahoraites (3)
- ykempf (3)
Pull Request Authors
- alhom (62)
- kostahoraites (8)
- ykempf (5)
- JonasSuni (5)
- ursg (4)
- lturc (2)
- mattia-l (2)
- lkotipal (2)
- taoshi-117 (1)
- vetarvus (1)
- jreimi (1)
- plauri (1)
- markusbattarbee (1)
- ivanzait (1)
- kstppd (1)