Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Map work with WISPR Data #3501

Merged
merged 16 commits into from
Nov 21, 2019
Merged

Make Map work with WISPR Data #3501

merged 16 commits into from
Nov 21, 2019

Conversation

Cadair
Copy link
Member

@Cadair Cadair commented Nov 13, 2019

Fixes #3496

This makes the following changes:

  • Change GenericMap.wcs to use the raw FITS header, this is so we can get the extra parameters from the FITS headers for the unusual projections in WISPR data. This is a large change in approach, although I am reasonably confident it shouldn't break anything.
  • Fix IRIS so that the above change dosen't completely destroy it.
  • Fix some parfive incompatibility issues in vso.py

requires #3497 to actually make WISPR data load.

@ghost
Copy link

ghost commented Nov 13, 2019

Thanks for the pull request @Cadair! Everything looks great!

@pep8speaks
Copy link

pep8speaks commented Nov 13, 2019

Hello @Cadair! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 205:101: E501 line too long (108 > 100 characters)

Line 271:9: E303 too many blank lines (2)

Line 103:101: E501 line too long (110 > 100 characters)

Comment last updated at 2019-11-21 21:52:08 UTC

sunpy/map/sources/iris.py Outdated Show resolved Hide resolved
@Cadair Cadair added this to the 1.1 milestone Nov 13, 2019
@wafels
Copy link
Member

wafels commented Nov 13, 2019

This

https://github.com/sunpy/sunpy/blob/master/sunpy/map/tests/test_mapbase.py#L101

looks off. Should this be

assert all(wcs.wcs.cdelt == [aia171_test_map.scale.axis1.value, aia171_test_map.scale.axis2.value])

?

@nabobalis
Copy link
Contributor

nabobalis commented Nov 16, 2019

I think before we can merge this:

  • Add WISPR test file
  • Create tests to make sure we can open it
  • Fix the tests

nabobalis
nabobalis previously approved these changes Nov 16, 2019
@nabobalis
Copy link
Contributor

This

https://github.com/sunpy/sunpy/blob/master/sunpy/map/tests/test_mapbase.py#L101

looks off. Should this be

assert all(wcs.wcs.cdelt == [aia171_test_map.scale.axis1.value, aia171_test_map.scale.axis2.value])

?

Changed it.

sunpy/map/mapbase.py Outdated Show resolved Hide resolved
@Cadair Cadair self-assigned this Nov 20, 2019
sunpy/map/sources/rhessi.py Outdated Show resolved Hide resolved
@Cadair Cadair requested review from a team and nabobalis November 21, 2019 18:44
for hist in hists:
fits_header.add_history(hist)
elif k != '':
if len(k) > 8:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol?

else:
# For some horrific reason, we save a list to the wavelnth key in
# sources/rhessi.py. This is the least invasive fix for that stupidity.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL

@Cadair Cadair requested review from a team and removed request for a team November 21, 2019 20:39
sunpy/io/fits.py Show resolved Hide resolved
sunpy/io/tests/test_fits.py Show resolved Hide resolved
sunpy/net/vso/vso.py Show resolved Hide resolved
changelog/3501.feature.rst Outdated Show resolved Hide resolved
@Cadair Cadair merged commit 56eef12 into sunpy:master Nov 21, 2019
@Cadair Cadair deleted the fix_wispr branch November 21, 2019 22:20
This was referenced Nov 22, 2019
@dstansby dstansby mentioned this pull request Oct 7, 2021
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.

PSP WISPR data doesn't work out of the box with SunPy
5 participants