Git Product home page Git Product logo

visanajulia's Introduction

SpaceAnalysis

License: MIT


NOTE

The package is under transition phase. If you are looking for SWMF-related functionalties, please refer to Batsrus.jl


This package provides the following functionalities for data analysis in space physics:

  • minimum variance analysis (MVA)
  • spectral analysis
  • moving box average for filtering magnetometer data
  • coordinate transformations

For more details, please check the document.

Prerequisites

Julia 1.6+

Installation

using Pkg
Pkg.add(PackageSpec(url="https://github.com/henry2004y/VisAnaJulia", rev="master"))

Usage

See the examples.

Author

Acknowledgments

  • All the nice guys who share their codes!

visanajulia's People

Contributors

henry2004y avatar github-actions[bot] avatar

Stargazers

Soumitra Hazra avatar layshua avatar  avatar Qusai Al Shidi avatar Steve Morley avatar Camilla Harris avatar  avatar

Watchers

James Cloos avatar  avatar Camilla Harris avatar

Forkers

yuanzhengwen

visanajulia's Issues

Exponentially moving box average (EMA)

For an exponentially moving box average of the vector data x with box length 'n' implementation, check movingaverages. It seems like we don't need this often in space local coordinate transformations, so I will remove it for now.

SWMF plotting scripts

There are still remaining scripts for plotting MHD-EPIC simulation outputs. They should be moved to a script folder under Batsrus.jl or somewhere else.

Precise control of colorbar position in Matplotlib is not an easy task. axis(“scaled”) or axis(“equal”) will cause issue with the present layout, such as overlapping, cutoff, or too much white spaces. Things are improving, but it takes time. The scripts for plotting PIC variables present some examples of controlling the layouts.

Parquet format output

I've learned that Parquet is in general better than CSV, so we can consider supporting this new format. It won't matter so much for small datasets, but will be worthwhile for large data.

Unregistered pkg dependence

Since this pkg is not registered itself, and it relies on other unregistered pkg (e.g. TestParticle.jl), the document generation in CI failed. Currently I don't know what is a proper way to fix this; maybe just register TestParticle.jl?

This issue keeps being annoying. EmpiricalModeDecomposition.jl is even worse, because I am not the author of that package, and I cannot decide whether it should be registered or not.

Plotting error in PC IDL outputs

Surprisingly, after fixing the matrix transpose issue with BATSRUS IDL outputs, the PC IDL output from FLEKS is still wrong.
I will try to fix it (again!).

The issue arises from the different input types of the contour function in Matplotlib. I used to have x,y,z all in matrix form: it works well. However, when I switched to x,y in vector form, the different in row/column-major between Python and Julia comes up and it is really tricky to remember the correct order. For some other plotting packages like Makie, only vector-like input for the positions are supported, which is why I made the decision to modify the APIs.

Structure of the package

Currently this package sits in a very odd situation: in the actual module, it contains only the plotting functions for BATSRUS; in the space folder, there are many standalone scripts for handling different space physics related tasks. Technically this should not even be called a package.

A while ago I decided to split the Batsrus data processing part completely into a standalone package Batsrus.jl. Now it is a good time to consider splitting the rest into more modularized parts. In the future I also want to add more data processing methods related to space physics, so it would be better to collect them into something like Space.jl. Meanwhile, the visualization of Batsrus data should belong to Batsrus.jl!

Dependence on unregisterd pkg

Currently Julia does not have a clear way of letting one unregistered package depend on another unregistered package without first adding the other package manually. See the issue for details.

Now that with the new structure and package separation, this is no longer an issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.