Rotated grid transform
This functions transforms a set of coordinates in regular lon/lat degrees, grid_in = [lon, lat], to a set of coordinates in rotated lon/lat degrees, grid_out = [lon', lat'], and vice versa:
[grid_out] = rotated_grid_transform(grid_in, option, SP_coor)
where option is the 'direction' of the transform (1: regular -> rotated and 2: rotated -> regular) and SP_coor are the coordinates of the South Pole in the rotated grid [SP_lon, SP_lat]
Example:
SP_coor = [18 -39.3];
grid_in = [[12; 12; 12],[55; 54; 53]];
[grid_out] = rotated_grid_transform(grid_in, 1, SP_coor)
grid_out =
-3.4476 4.4397
-3.5289 3.4430
-3.6100 2.4463
grid_in = grid_out;
[grid_out] = rotated_grid_transform(grid_in, 2, SP_coor)
grid_out =
12.0000 55.0000
12.0000 54.0000
12.0000 53.0000
Reference:
http://gis.stackexchange.com/questions/10808/lon-lat-transformation/14445
Zitieren als
Simon Funder (2025). Rotated grid transform (https://de.mathworks.com/matlabcentral/fileexchange/43435-rotated-grid-transform), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- Mathematics and Optimization > Mapping Toolbox > Coordinate Reference Systems >
- Radar > Mapping Toolbox > Coordinate Reference Systems >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.0.0 |
