This pull request modifieds the field_plot binary and MapStereographic function (in tfunc.c) to support user-controlled horizontal and vertical shifting of the plotting region. This is particularly useful for radars where the default options, or some combination of -latmin / -lat / -lon, aren't quite sufficient.
For example, this is the default for Iceland East (ICE) in magnetic coordinates:
If we want to zoom in a little better, one could set -latmin 60 -lat 85 -lon 65:
Finally, with the new -xshift option one can actually center the radar FOV, eg -latmin 60 -lat 85 -lon 65 -xshift -0.35:
These new -xshift and -yshift options can be used with any field_plot figure in the (default) stereographic projection; orthographic projections will be unchanged.
This pull request modifieds the
field_plot
binary andMapStereographic
function (intfunc.c
) to support user-controlled horizontal and vertical shifting of the plotting region. This is particularly useful for radars where the default options, or some combination of-latmin
/-lat
/-lon
, aren't quite sufficient.For example, this is the default for Iceland East (ICE) in magnetic coordinates:
If we want to zoom in a little better, one could set
-latmin 60 -lat 85 -lon 65
:Finally, with the new
-xshift
option one can actually center the radar FOV, eg-latmin 60 -lat 85 -lon 65 -xshift -0.35
:These new
-xshift
and-yshift
options can be used with anyfield_plot
figure in the (default) stereographic projection; orthographic projections will be unchanged.