Comments (4)
I've added a minor fix to the function which calculates the pitch angle distribution so it should work with fast mode data. This is added to the devel branch.
Some points about the command lines used:
(1) The function e64 recalculates the particle distribution 64 energy channel resolution and half the time resolution. It will only work when there are two energy tables used. This means it will only work for burst mode data in the early phase of the mission. It will not work for fast mode data and in general is not needed for most analyses.
(2) When calculating the pitch angle the B field must be in the same coordinate system as the particle distribution function (dmpa coordinates for B).
E.g.,
ic = 1;
Tint = irf.tint('2017-06-17T20:20:00.00Z/2017-06-17T20:30:00.00Z');
c_eval('ePDist = mms.get_data(''PDe_fpi_fast_l2'',Tint,?);',ic);
c_eval('Bxyz=mms.get_data(''B_dmpa_fgm_srvy_l2'',Tint,?);',ic);
ePDistpitch = ePDist.pitchangles(Bxyz,24).deflux;
irf_spectrogram(ePDistpitch.specrec('pitchangle'))
from irfu-matlab.
Thanks a lot, it is very helpful for me. this command line
"ePDistpitch = ePDist.pitchangles(Bxyz,24).deflux;" can work very well, and we can get the variable which is named as "ePDistpitch";
However, when i want to plot, such a mistake has occurred. I used this command line:
eint1 = [3e1 3e2];
irf_spectrogram(h,ePDistpitch.elim(eint1).specrec('pa'),'log','donotfitcolorbarlabel');
Then matlab shows that"
wrong use ismember>ismemberR2012a (line 212)
wrong ismember (line 148)
[lia,locb] = ismemberR2012a(A,B,logical(flaginds(1)));
wrong PDist/elim (line 2229)
[esteptable,~] =
ismember(energy,PD.ancillary.energy1,'rows');
wrong PDist/subsref (line 123)
[varargout{1:nargout}] = builtin('subsref',obj,idx);
I think that it is due to the "ePDist.ancillary" is empty, so could you help me to solve it?
Actually, I just want to plot the ion pitch angel distribution during about 1 hour interval, so I have to use fast-mode data. Could you show me a example about how to do it ?
from irfu-matlab.
We've made a revision that should correct this now. Please try again with the latest version.
Regarding, an example of plotting fast mode data, you can use the latest version of Example_MMS_particle_PAD.m. For the initial loading of variables you can replace brst with fast (for FPI and EDP products) and brst with srvy (for FGM products). The analyses and plotting should now work fine with both fast and brst data.
from irfu-matlab.
Thanks a lot ,it can work well now.
from irfu-matlab.
Related Issues (20)
- SolO IRFU quicklooks: Value must be a 1x2 vector of numeric type HOT 2
- SolO IRFU quicklooks: Unrecognized function or variable 'timet_ici'. HOT 2
- SolO IRFU quicklooks: Matrix dimensions must agree HOT 3
- SolO IRFU quickloooks: solo.read_TNR(): No handling of non-existent TNR CDFs HOT 1
- How to do MVA of magnetic field using IRF HOT 1
- Issue with using "Example_MMS_particle_DEFlux.m" HOT 2
- Issue with using "get_hiresdistributions" HOT 6
- Whamp (matlab): No solution found for array of wavevectors
- How to check the results of "scpot2ne"? HOT 4
- Issue with running the "Example_MMS_Polarizationanalysis.m" code in Matlab HOT 4
- mms.get_data returns wrong HPCA moments HOT 2
- solo_local_file_db HOT 3
- problem in accessing mms data using irf-matlab (devel-branch) HOT 2
- SolO IRFU quicklooks failed due to SPICE-related error HOT 2
- SolO IRFU quicklooks crash: Value must be a 1x2 vector... HOT 5
- SolO IRFU quicklooks crash: exception.message=Value must be a 1x2 vector of numeric type ... HOT 1
- SolO IRFU quicklooks: Bad filenames HOT 1
- SolO IRFU quicklooks: Data length must be larger than 15 samples HOT 1
- SolO IRFU quicklooks: "Index exceeds the number of array elements (3).", crashes HOT 4
- SolO IRFU quicklooks: "Matrix dimensions must agree.", crashes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irfu-matlab.