Borodog
11-09-2006, 08:39 PM
Or another mathemagician.
Presume you have a regular spherical coordinate grid of points located on a surface of constant radius, i.e. a regular grid of points along intersecting lines of fixed longitude and lattitude. Coordinates are then theta_i,j (polar coordinate) and phi_i,j (azimuthal coordinate). Take i to be the polar index and j to be the azimuthal index.
Each lattice point is then one corner of a rectilinear zone within the grid. Associated with each zone is a known value of, for example, the average density within the zone. Presume some thickness, and the area and density in the zone would allow one to calculate the total mass of each grid zone.
Now consider another spherical coordinate grid, rotated relative to the first (by 90 degrees of polar angle), but otherwise identically constructed. What I need is a way to conservatively map the densities from the first grid onto the second. By conservatively I mean that the second grid must have exactly the same total mass as the first.
I cannot do something as simple as, for example, simply interpolating the density at the new grid points from the nearest neighbors on the old grid, integrate, and renormalize, because the point is not actually to do the entire grid, but only certain zones. In other words, I need to construct a subset of zones in the second grid that have the exact mass of the same region on the first grid, even though the lines of constant coordinates of the two grids are crisscrossing each other in (essentially) arbitrary ways.
Here is an example of what I'm talking about. The colored rectangular grid is in one set of spherical coordinates. The colors indicate different densities within each zone. The theta,phi coordinates of each vertex are specified.
The smaller grid of 6 zones is from a different spherical coordinate grid. The coordinates of all its vertices are also known. I need to "slice up" the density from the same region of the first grid and transfer it into the 6-zone piece of the second grid, exactly conservatively.
http://i27.photobucket.com/albums/c153/Borodog/grid.gif
Any help with an algorithm to do with would be greatly appreciated.
Presume you have a regular spherical coordinate grid of points located on a surface of constant radius, i.e. a regular grid of points along intersecting lines of fixed longitude and lattitude. Coordinates are then theta_i,j (polar coordinate) and phi_i,j (azimuthal coordinate). Take i to be the polar index and j to be the azimuthal index.
Each lattice point is then one corner of a rectilinear zone within the grid. Associated with each zone is a known value of, for example, the average density within the zone. Presume some thickness, and the area and density in the zone would allow one to calculate the total mass of each grid zone.
Now consider another spherical coordinate grid, rotated relative to the first (by 90 degrees of polar angle), but otherwise identically constructed. What I need is a way to conservatively map the densities from the first grid onto the second. By conservatively I mean that the second grid must have exactly the same total mass as the first.
I cannot do something as simple as, for example, simply interpolating the density at the new grid points from the nearest neighbors on the old grid, integrate, and renormalize, because the point is not actually to do the entire grid, but only certain zones. In other words, I need to construct a subset of zones in the second grid that have the exact mass of the same region on the first grid, even though the lines of constant coordinates of the two grids are crisscrossing each other in (essentially) arbitrary ways.
Here is an example of what I'm talking about. The colored rectangular grid is in one set of spherical coordinates. The colors indicate different densities within each zone. The theta,phi coordinates of each vertex are specified.
The smaller grid of 6 zones is from a different spherical coordinate grid. The coordinates of all its vertices are also known. I need to "slice up" the density from the same region of the first grid and transfer it into the 6-zone piece of the second grid, exactly conservatively.
http://i27.photobucket.com/albums/c153/Borodog/grid.gif
Any help with an algorithm to do with would be greatly appreciated.