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

Issue with running the "Example_MMS_Polarizationanalysis.m" code in Matlab #86

Closed Krushna-100 closed 2 years ago

Krushna-100 commented 2 years ago

// TODO (you): please remove comments like this line and fill in this form as best you can, checking relevant boxes, etc.

Step 1: Latest code?

Step 2: Describe your environment

Step 3: Describe the problem

I am trying to plot the wave characteristics of plasma waves in Matlab using irfu-matlab packages. I found the code "Example_MMSPolarizationanalysis.m" useful, which is used to perform polarization analysis for for the burst mode Electric and Magnetic field data. I am eager to see what kind of results this code is giving. However, while running the code, I am getting an error message like "Reference to non-existent field 'gseR1'". I am unable to find this data from the CDA web.

Can anybody from the expert committee give any suggestions how to resolve the issue? Your early response will be highly appreciated.

Thanking you

With best regards Krushna Chandra Barik

Expected behavior

Actual behavior

Steps to reproduce:

// TODO (you): describe how to reproduce the problem. (Or if you prefer: you can fill in the "Relevant code" section below).




Relevant code:

    // TODO (you): insert code here to reproduce the problem.
    // (Or if you prefer: you can describe it in the "Steps to reproduce" section above).
thomas-nilsson-irfu commented 2 years ago

Dear @Krushna-100,

as for your issue. I would prefer if you could copy the entire error message you get since it could help track down where the issue comes from.

Anyhow, I suspect it is the loading of position which fails in your instance with the code https://github.com/irfu/irfu-matlab/blob/d0831c354372f4acc8a87ea7bf3a5ea657af4ebd/plots/mms/Example_MMS_Polarizationanalysis.m#L14-L15 (where R_gse is an alias we use in irfu-matlab for positional information in the GSE frame of reference).

The problem could be that you do not have the corresponding files located on your system, or perhaps not initialized the database correctly. Something similar occurred in issue #69, so please have a look there to see the discussion there can help.

With best regards,

Thomas Nilsson

Krushna-100 commented 2 years ago

Dear Thomas,

Thank you very much for your early response to my email. I will definitely go through issue #69 and let you know whether my problem has been resolved or not.

With best regards Krushna Chandra Barik

Krushna-100 commented 2 years ago

Dear Thomas,

Thank you very much for helping me out in finding the "R_gse" value from the CDA Web, which is resolved after looking through the issue #69 as you mentioned earlier.

However, I am getting new issue while running the code. The error message is

" Dot indexing is not supported for variables of this type.

Error in Example_MMS_Polarizationanalysis (line 25) B_SI=Bxyz.abs.data*1e-9; "

Will you please help me to sort out this issue?

Thanking you

With best regards Krushna Chandra Barik

Krushna-100 commented 2 years ago

Dear Thomas,

Thank you very much for your timely help. The issue that I have reported in my earlier email was sorted out. Now, I can produce very beautiful figures for the wave polarization properties using the irfu-matlab package, which is also my first ever plot using the same package.

Thank you so much once again for your kind support.

With best regards Krushna Chandra Barik