SuperDARN / pydarn

Python library for visualizing SuperDARN Data
GNU Lesser General Public License v3.0
31 stars 11 forks source link

FIX: lowlat default value in maps set to 30 #378

Closed carleyjmartin closed 5 months ago

carleyjmartin commented 5 months ago

Scope

This PR amends the lowlat default in calculate_potentials to 30 (which is the default from projections) from 60.

issue: #376

Approval

Number of approvals: 1, 1 liner

Test

matplotlib version: 3.8.2 Note testers: please indicate what version of matplotlib you are using

import pydarn
map_file='data/maps/20220101.n.map'
map_data = pydarn.SuperDARNRead(map_file).read_map()
pydarn.Maps.plot_mapdata(map_data,record=521, 
            parameter=pydarn.MapParams.FITTED_VELOCITY,
            lowlat=50, contour_fill=True, reference_vector=250,
            color_vectors=False, coastline=True)
plt.show()

Try different and no lowlat kw values - make sure that the contours fill the selected area you have chosen to plot.

Doreban commented 5 months ago

Ran the provided code using matplotlib version 3.8.3.

I tried different lowlat values, from 0 through 80, as well as not setting the lowlat parameter, and the output plots looked well formatted and scaled.

Here are two example plots, one using lowlat=55 and one not setting the lowlat parameter (so it should be the new default of 30).

pydarn_map_lowlat_55

pydarn_map_lowlat_default

Looks to be working correctly.