Skip to content

Commit

Permalink
make call clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
jgieseler committed Nov 10, 2023
1 parent 214d09c commit b6871a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solarmach/pfss_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,12 +583,12 @@ def calculate_pfss_solution(gong_map, rss, coord_sys, nrho=35):
"""
if coord_sys.lower().startswith('sto') and gong_map.coordinate_system.axis1=='CRLN-CEA':
# Convert GONG map from default Carrington to Stonyhurst coordinate system
new_map_header = sunpy.map.header_helper.make_heliographic_header(gong_map.date, gong_map.observer_coordinate, shape=gong_map.data.shape, frame='stonyhurst', projection_code='CEA')
new_map_header = sunpy.map.header_helper.make_heliographic_header(date=gong_map.date, observer_coordinate=gong_map.observer_coordinate, shape=gong_map.data.shape, frame='stonyhurst', projection_code='CEA')
gong_map = gong_map.reproject_to(new_map_header)
elif coord_sys.lower().startswith('car') and gong_map.coordinate_system.axis1=='HGLN-CEA':
# Convert GONG map from Stonyhurst to Carrington coordinate system.
# This shouldn't be necessary, as Carrington is the default for GONG maps, but better be sure.
new_map_header = sunpy.map.header_helper.make_heliographic_header(gong_map.date, gong_map.observer_coordinate, shape=gong_map.data.shape, frame='carrington', projection_code='CEA')
new_map_header = sunpy.map.header_helper.make_heliographic_header(date=gong_map.date, observer_coordinate=gong_map.observer_coordinate, shape=gong_map.data.shape, frame='carrington', projection_code='CEA')
gong_map = gong_map.reproject_to(new_map_header)

# The pfss input object, assembled from a gong map, resolution (nrho) and source surface height (rss)
Expand Down

0 comments on commit b6871a2

Please sign in to comment.