irfu / irfu-matlab

Matlab routines to work with space data, particularly with MMS and Cluster/CAA data. Also some general plasma routines.
56 stars 46 forks source link

Regarding LMN coordinates #81

Closed neetasha closed 2 years ago

neetasha commented 2 years ago

Step 1: Latest code?

Step 2: Describe your environment

Step 3: Describe the problem

I am using mms FPI data. I want to convert GSE/GSM coordinates into LMN coordinate using irfu-matlab. Will you please guide me through this issue of converting XYZ into LMN. Thanks in advance. Neetasha Arya.

danbgraham commented 2 years ago

Hi Neetasha,

Which FPI data are you using? Are you referring to distribution functions, or vector or tensor particle moments?

Regards, Daniel

neetasha commented 2 years ago

I am using particle moments from FPI . Also For Magnetic field and Electric field using FGM and EDP . please see the attached files. B(nT).csv V_i.csv

danbgraham commented 2 years ago

You can use the function irf_newxyz.m to rotate vector data into a new coordinate system. You just need to specify the vectors of the LMN coordinate system.

neetasha commented 2 years ago

Its working now. Thanks a lot.