Skip to content

Conversation

@fluxtransport
Copy link

No description provided.

@fluxtransport
Copy link
Author

fluxtransport commented Mar 25, 2020

Note: The training data has lgt = [5.5, .... 7.4], 21 elements instead of 18. This is not compatible with AIA_Resp.npy in the current repository.

@fluxtransport
Copy link
Author

Reading genx files requires sunpy.

@PaulJWright PaulJWright self-assigned this Mar 25, 2020
@PaulJWright
Copy link
Owner

PaulJWright commented Mar 30, 2020

Are you able to move the files to an additional_examples folder or the similar, and update/reset your repo to the master at PaulJWright/DeepEM?

@fluxtransport
Copy link
Author

Hi @PaulJWright do you mean the notebook and/or the genx files?

@PaulJWright
Copy link
Owner

Hi @PaulJWright do you mean the notebook and/or the genx files?

Just the notebook, really! I would prefer not overwriting the HelioML version.

Cheers,
Paul

@fluxtransport
Copy link
Author

I don't even need you to approve the merge. However, I'd like us to use the genx files as a starting point.

So really this is the part that is important:

import glob
from sunpy.io.special import read_genx
aia_files = glob.glob('./DeepEM_Data/*_2014-03-29T1[89]*genx')
aia_files = sorted(aia_files)
print(aia_files)

k = 0
for f in aia_files:
dump = read_genx(f)
if k == 0:
X = np.zeros((len(aia_files), dump['IMG'].shape[0], dump['IMG'].shape[1], dump['IMG'].shape[2]))
y = np.zeros((len(aia_files), dump['EMCUBE'].shape[0], dump['EMCUBE'].shape[1], dump['EMCUBE'].shape[2]))
status = np.zeros((len(aia_files), dump['STATUS'].shape[0], dump['STATUS'].shape[1]))
lgtaxis = dump['LGTAXIS']
nlgT = lgtaxis.shape[0]

X[k] = dump['IMG']
y[k] = dump['EMCUBE']
status[k] = dump['STATUS']
k = k+1

Scale the inputs and outputs

X = img_scale(X)
y = em_scale(y)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants