0% found this document useful (0 votes)
83 views

C - and - Python Code PDF

This email thread discusses C and Python code for calculating magnetic parameters from solar data. Soumitra Hazra provides the code files to Basodi Sunitha. Sunitha runs into issues with missing data files and asks questions about running the code. Soumitra provides suggestions on modifying the C code and accessing the required solar data files to run the analysis code successfully.

Uploaded by

soumitrahazra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views

C - and - Python Code PDF

This email thread discusses C and Python code for calculating magnetic parameters from solar data. Soumitra Hazra provides the code files to Basodi Sunitha. Sunitha runs into issues with missing data files and asks questions about running the code. Soumitra provides suggestions on modifying the C code and accessing the required solar data files to run the analysis code successfully.

Uploaded by

soumitrahazra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

3/25/2019 Gmail - C and Python code

Soumitra Hazra <soumitra.hazra@gmail.com>

C and Python code


9 messages

Soumitra Hazra <soumitra.hazra@gmail.com> Sat, Jun 17, 2017 at 4:36 PM


To: Basodi Sunitha <sunitha.basodi@gmail.com>

Here is the both C and Python code for calculation of magnetic parameters. Sorry for late.

--
Soumitra Hazra
Department of Physics and Astronomy
Georgia State University
Atlanta, GA 30303
Phone: +1-404 563 4410
email: soumitra.hazra@gmail.com

3 attachments
cal_Bobra_parameters.py
44K
sw_functions.c
53K
JSOC_20170527_144.zip
15876K

Soumitra Hazra <soumitra.hazra@gmail.com> Sat, Jun 17, 2017 at 4:38 PM


To: Basodi Sunitha <sunitha.basodi@gmail.com>

You have to modify C code to get the desired result. For python code, you have to just comment out the "PRINT
command.
[Quoted text hidden]

Basodi Sunitha <sunitha.basodi@gmail.com> Sun, Jun 18, 2017 at 11:22 PM


To: Soumitra Hazra <soumitra.hazra@gmail.com>

Thank you so much. I will look into the files and email you incase I need anything.

Thanks,
Sunitha

On Sat, Jun 17, 2017 at 10:36 AM, Soumitra Hazra <soumitra.hazra@gmail.com> wrote:
[Quoted text hidden]

Basodi Sunitha <sunitha.basodi@gmail.com> Tue, Jun 20, 2017 at 9:34 PM


To: Soumitra Hazra <soumitra.hazra@gmail.com>

Hi Soumitra,
I'm running your python code but it is missing the following file. Can you send it me:
'/home/soumitra/Flare_project/24_params_217_ts.csv'

I have a few questions related to the code. Do you have some to meet tomorrow?

Thanks,
Sunitha
[Quoted text hidden]

Basodi Sunitha <sunitha.basodi@gmail.com> Tue, Jun 20, 2017 at 9:48 PM


https://mail.google.com/mail/u/0?ik=604ea06763&view=pt&search=all&permthid=thread-f%3A1570462957312026863&simpl… 1/2
3/25/2019 Gmail - C and Python code
To: Soumitra Hazra <soumitra.hazra@gmail.com>

Hi,
Please ignore my above email. Im running the code and I see that in the data you have sent me, there are no
"_TAI.magnetogram.fits" files and therefore it is not generating any features. Can you please add
these data files and email me or share me the google drive folder?

I have a few questions related to the code. Do you have some to meet tomorrow?

Thanks,
Sunitha
[Quoted text hidden]

Soumitra Hazra <soumitra.hazra@gmail.com> Wed, Jun 21, 2017 at 8:03 AM


To: Basodi Sunitha <sunitha.basodi@gmail.com>

Sorry... I did not notice this fact that magnetogram file is missing in that folder. Please download the data from
dropbox which I shared with you.

Cheers,
Soumitra
[Quoted text hidden]

Basodi Sunitha <sunitha.basodi@gmail.com> Wed, Jun 21, 2017 at 3:05 PM


To: Soumitra Hazra <soumitra.hazra@gmail.com>

Ok, I will check. Thanks.


[Quoted text hidden]

Basodi Sunitha <sunitha.basodi@gmail.com> Fri, Jun 23, 2017 at 7:16 PM


To: Soumitra Hazra <soumitra.hazra@gmail.com>

Hi,
Can you tell me where did you get the c code from? Can you send me all other files along with that c file (may be the
whole folder instead of one .c file) ? There are few references missing. Or can you tell me where you have
downloaded the code from?

Thanks,
Sunitha
[Quoted text hidden]

Soumitra Hazra <soumitra.hazra@gmail.com> Fri, Jun 23, 2017 at 8:12 PM


To: Basodi Sunitha <sunitha.basodi@gmail.com>

The code is from JSOC site. I do not know how to use this code. To run the code, first, you have to set your code in a
way such that the code reads all hmi data files automatically. I do not know how they read the data files in C. You can
check this site. Probably you will get all other files inside the apps folder.

http://jsoc.stanford.edu/cvs/JSOC/proj/sharp/apps/sw_functions.c

Cheers,
Soumitra
[Quoted text hidden]

https://mail.google.com/mail/u/0?ik=604ea06763&view=pt&search=all&permthid=thread-f%3A1570462957312026863&simpl… 2/2

You might also like