Open fxgiraldo opened 5 years ago
cross ref: #179
One thing we should consider is using types to convey semantic meaning:
struct XYZCoord{T}
x::T
y::T
z::T
end
struct LatLongAltCoord{T}
latitude::T
longitude::T
altitude::T
end
format
to be defined in PlanetParameters
(and have a more descriptive name, e.g., AngleUnits)
Just wanted to pass it by everyone to see if this is the sort of map that you all need to go from Cartesian to Spherical. You can find the code here: https://github.com/fxgiraldo/CLIMA/blob/5b181c1e7802cc9107cd0f2c533e373a65f72548/src/DGmethods/test/Advection/advection_sphere.jl#L33-L67
The code here runs advection on the full 3D sphere. It is the first test of CLIMA on the sphere.
Before committing it to CLIMA, we would like feedback on the following:
where should these type of functions go (e.g., a MOD_Utilities is what we do in NUMA)?
Is this what you need? Do you need a specific (prime) meridian so that we can adjust this as needed?
Here is what the snippet of code looks like: