[20498] | 1 | Index: ../trunk-jpl/src/m/plot/radarpower.m
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/src/m/plot/radarpower.m (revision 20489)
|
---|
| 4 | +++ ../trunk-jpl/src/m/plot/radarpower.m (revision 20490)
|
---|
| 5 | @@ -169,18 +169,16 @@
|
---|
| 6 | if (~exist(options,'overlay_xlim') | ~exist(options,'overlay_xlim')| ~exist(options,'overlay_xposting')| ~exist(options,'overlay_yposting')),
|
---|
| 7 | error('radarpower error message: please provide overlay_xlim, overlay_ylim, overlay_xposting and overlay_yposting options together with overlay_image option');
|
---|
| 8 | end
|
---|
| 9 | - overlay_image=getfieldvalue(options,'overlay_image')
|
---|
| 10 | - overlay_xlim=getfieldvalue(options,'overlay_xlim')
|
---|
| 11 | - x0
|
---|
| 12 | - x1
|
---|
| 13 | - overlay_ylim=getfieldvalue(options,'overlay_ylim')
|
---|
| 14 | - overlay_xposting=getfieldvalue(options,'overlay_xposting')
|
---|
| 15 | - overlay_yposting=getfieldvalue(options,'overlay_yposting')
|
---|
| 16 | + overlay_image=getfieldvalue(options,'overlay_image');
|
---|
| 17 | + overlay_xlim=getfieldvalue(options,'overlay_xlim');
|
---|
| 18 | + overlay_ylim=getfieldvalue(options,'overlay_ylim');
|
---|
| 19 | + overlay_xposting=getfieldvalue(options,'overlay_xposting');
|
---|
| 20 | + overlay_yposting=getfieldvalue(options,'overlay_yposting');
|
---|
| 21 |
|
---|
| 22 | - sizex=floor((x1-x0)/overlay_xposting)
|
---|
| 23 | - sizey=floor((y1-y0)/overlay_yposting)
|
---|
| 24 | - topleftx=floor((x0-overlay_xlim(1))/overlay_xposting) % x min
|
---|
| 25 | - toplefty=floor((overlay_ylim(2)-y1)/overlay_yposting) % y max
|
---|
| 26 | + sizex=floor((x1-x0)/overlay_xposting);
|
---|
| 27 | + sizey=floor((y1-y0)/overlay_yposting);
|
---|
| 28 | + topleftx=floor((x0-overlay_xlim(1))/overlay_xposting); % x min
|
---|
| 29 | + toplefty=floor((overlay_ylim(2)-y1)/overlay_yposting); % y max
|
---|
| 30 |
|
---|
| 31 | %Read and crop file
|
---|
| 32 | disp('Warning: expecting coordinates in polar stereographic (Std Latitude: 70ºN Meridian: 45º)');
|
---|