-
Notifications
You must be signed in to change notification settings - Fork 386
Description
When using gridded data in non-cartesian projections with rectangular borders I run into some problems when selecting the region of interest. The current mechanism is to specify lower left and upper right corner of the region of interest when using -R...r
. This creates some difficulties in higher latitudes when using it with projections like Lambert conic conformal -JL
as illustrated in this crude mockup:
Explanation:
- the green stars are the lower left and upper richt corner as given in
-R...r
- the blue outline is the (crude) representation of the projection
-JL
with the blue dashed lines representing the center of the projection - the black frame is the plotted area
- the red fill shows areas without gridded data if same -R...r is used for
select
/grdimage
/etc
Problems:
- it is hard to get a plot centered on the projection center
- it usually requires several iterations to get a region definition large enough to fill the plot area with gridded data. Not very convenient with large files.
Feature request, open for debate:
- add a behavior similar to
-R
withoutr
where one specifies the northern and southern most latitudes and can use one of the following longitude specifications:- longitudes at mid-latitude taken from projection center in
-J
, proposed-R...rm
for mid (see example 1 below) - max longitudes on plot, only a point in the corner, proposed
-R...rx
for max (see example 2 below) - min longitudes visible visible on longest latitude on plot, there are some more but these must be on the plot, proposed
-R...rn
for min (see example 3 below)
- longitudes at mid-latitude taken from projection center in
- have GMT calculate the parameters for the "expanded" projection in the background for use with
select
/grdimage
/etc to cover the red areas.
Example 1:
The longitudes are referenced to the latitude of the projection center.
Example 2:
The longitudes are the min longitudes to be present on the plot.
Example 3:
The longitudes are the max longitudes displayed on the longest line of latitude.
In all cases the parameters for the "expanded" projection are calculated in the background.
While making this feature request it came to my mind that this could be seen as two different requests. One for the different ways to define the region and one for the calculation of the expanded projection parameters in the background. Please advise if I should split them.