FE-Project
|
Module common / Coordinate conversion with cubed-sphere projection. More...
Data Types | |
interface | cubedspherecoordcnv_cs2localorthvec_alpha |
interface | cubedspherecoordcnv_localorth2csvec_alpha |
Functions/Subroutines | |
subroutine, public | cubedspherecoordcnv_cs2lonlatpos (panelid, alpha, beta, gam, np, lon, lat) |
Calculate longitude and latitude coordinates from local coordinates using the central angles in an equiangular gnomonic cubed-sphere projection. | |
subroutine, public | cubedspherecoordcnv_cs2lonlatvec (panelid, alpha, beta, gam, np, vecalpha, vecbeta, veclon, veclat, lat) |
Covert the components of a vector in local coordinates with an equiangular gnomonic cubed-sphere projection to those in longitude and latitude coordinates. | |
subroutine, public | cubedspherecoordcnv_lonlat2cspos (panelid, lon, lat, np, alpha, beta) |
Calculate local coordinates using the central angles in an equiangular gnomonic cubed-sphere projection from longitude and latitude coordinates. | |
subroutine, public | cubedspherecoordcnv_lonlat2csvec (panelid, alpha, beta, gam, np, veclon, veclat, vecalpha, vecbeta, lat) |
Covert the components of a vector in longitude and latitude coordinates to those in local coordinates with an equiangular gnomonic cubed-sphere projection. | |
subroutine, public | cubedspherecoordcnv_cs2cartpos (panelid, alpha, beta, gam, np, x, y, z) |
Calculate Cartesian coordinates from local coordinates using the central angles in an equiangular gnomonic cubed-sphere projection. | |
subroutine, public | cubedspherecoordcnv_cart2csvec (panelid, alpha, beta, gam, np, vec_x, vec_y, vec_z, vecalpha, vecbeta) |
Covert the components of a vector in local coordinates with an equiangular gnomonic cubed-sphere projection to those in the Cartesian coordinates. | |
subroutine, public | cubedspherecoordcnv_getmetric (alpha, beta, np, radius, g_ij, gij, gsqrt) |
Calculate the metrics associated with an equiangular gnomonic cubed-sphere projection to those in longitude and latitude coordinates. |
Module common / Coordinate conversion with cubed-sphere projection.
subroutine, public scale_cubedsphere_coord_cnv::cubedspherecoordcnv_cs2lonlatpos | ( | integer, intent(in) | panelid, |
real(rp), dimension(np), intent(in) | alpha, | ||
real(rp), dimension (np), intent(in) | beta, | ||
real(rp), dimension(np), intent(in) | gam, | ||
integer, intent(in) | np, | ||
real(rp), dimension(np), intent(out) | lon, | ||
real(rp), dimension(np), intent(out) | lat ) |
Calculate longitude and latitude coordinates from local coordinates using the central angles in an equiangular gnomonic cubed-sphere projection.
[in] | panelid | Panel ID of cubed-sphere coordinates |
[in] | np | Array size |
[in] | alpha | Local coordinate using the central angles [rad] |
[in] | beta | Local coordinate using the central angles [rad] |
[in] | gam | A factor of r/a |
[out] | lon | Longitude coordinate [rad] |
[out] | lat | Latitude coordinate [rad] |
Definition at line 85 of file scale_cubedsphere_coord_cnv.F90.
References cubedspherecoordcnv_cs2cartpos(), and scale_geographic_coord_cnv::geographiccoordcnv_orth_to_geo_pos().
Referenced by scale_mesh_cubedspheredom2d::meshcubedspheredom2d_setuplocaldom(), scale_mesh_cubedspheredom3d::meshcubedspheredom3d_init(), mod_mkinit_util::mkinitutil_calc_cosinebell_global(), and mod_mkinit_util::mkinitutil_galerkinprojection_global().
subroutine, public scale_cubedsphere_coord_cnv::cubedspherecoordcnv_cs2lonlatvec | ( | integer, intent(in) | panelid, |
real(rp), dimension(np), intent(in) | alpha, | ||
real(rp), dimension (np), intent(in) | beta, | ||
real(rp), dimension(np), intent(in) | gam, | ||
integer, intent(in) | np, | ||
real(dp), dimension(np), intent(in) | vecalpha, | ||
real(dp), dimension (np), intent(in) | vecbeta, | ||
real(rp), dimension(np), intent(out) | veclon, | ||
real(rp), dimension(np), intent(out) | veclat, | ||
real(rp), dimension(np), intent(in), optional | lat ) |
Covert the components of a vector in local coordinates with an equiangular gnomonic cubed-sphere projection to those in longitude and latitude coordinates.
[in] | panelid | Panel ID of cubed-sphere coordinates |
[in] | np | Array size |
[in] | alpha | Local coordinate using the central angles [rad] |
[in] | beta | Local coordinate using the central angles [rad] |
[in] | gam | A factor of RPlanet / r |
[in] | vecalpha | A component of vector in the alpha-coordinate |
[in] | vecbeta | A component of vector in the beta-coordinate |
[out] | veclon | A component of vector in the longitude-coordinate |
[out] | veclat | A component of vector in the latitude-coordinate |
[in] | lat | latitude [rad] |
Definition at line 150 of file scale_cubedsphere_coord_cnv.F90.
Referenced by scale_atm_phy_tb_dgm_globalsmg::atm_phy_tb_dgm_globalsmg_cal_grad(), and mod_atmos_mesh_gm::atmosmeshgm_init().
subroutine, public scale_cubedsphere_coord_cnv::cubedspherecoordcnv_lonlat2cspos | ( | integer, intent(in) | panelid, |
real(rp), dimension(np), intent(in) | lon, | ||
real(rp), dimension(np), intent(in) | lat, | ||
integer, intent(in) | np, | ||
real(rp), dimension(np), intent(out) | alpha, | ||
real(rp), dimension (np), intent(out) | beta ) |
Calculate local coordinates using the central angles in an equiangular gnomonic cubed-sphere projection from longitude and latitude coordinates.
[in] | panelid | Panel ID of cubed-sphere coordinates |
[in] | np | Array size |
[in] | lon | Longitude coordinate [rad] |
[in] | lat | Latitude coordinate [rad] |
[out] | alpha | Local coordinate using the central angles [rad] |
[out] | beta | Local coordinate using the central angles [rad] |
Definition at line 241 of file scale_cubedsphere_coord_cnv.F90.
Referenced by scale_meshutil_cubedsphere2d::meshutilcubedsphere2d_getpanelid().
subroutine, public scale_cubedsphere_coord_cnv::cubedspherecoordcnv_lonlat2csvec | ( | integer, intent(in) | panelid, |
real(rp), dimension(np), intent(in) | alpha, | ||
real(rp), dimension (np), intent(in) | beta, | ||
real(rp), dimension(np), intent(in) | gam, | ||
integer, intent(in) | np, | ||
real(dp), dimension(np), intent(in) | veclon, | ||
real(dp), dimension(np), intent(in) | veclat, | ||
real(dp), dimension(np), intent(out) | vecalpha, | ||
real(dp), dimension (np), intent(out) | vecbeta, | ||
real(rp), dimension(np), intent(in), optional | lat ) |
Covert the components of a vector in longitude and latitude coordinates to those in local coordinates with an equiangular gnomonic cubed-sphere projection.
[in] | panelid | Panel ID of cubed-sphere coordinates |
[in] | np | Array size |
[in] | alpha | Local coordinate using the central angles [rad] |
[in] | beta | Local coordinate using the central angles [rad] |
[in] | gam | A factor of RPlanet / r |
[in] | veclon | A component of vector in the longitude-coordinate |
[in] | veclat | A component of vector in the latitude-coordinate |
[out] | vecalpha | A component of vector in the alpha-coordinate |
[out] | vecbeta | A component of vector in the beta-coordinate |
[in] | lat | latitude [rad] |
Definition at line 314 of file scale_cubedsphere_coord_cnv.F90.
subroutine, public scale_cubedsphere_coord_cnv::cubedspherecoordcnv_cs2cartpos | ( | integer, intent(in) | panelid, |
real(rp), dimension(np), intent(in) | alpha, | ||
real(rp), dimension (np), intent(in) | beta, | ||
real(rp), dimension(np), intent(in) | gam, | ||
integer, intent(in) | np, | ||
real(rp), dimension(np), intent(out) | x, | ||
real(rp), dimension(np), intent(out) | y, | ||
real(rp), dimension(np), intent(out) | z ) |
Calculate Cartesian coordinates from local coordinates using the central angles in an equiangular gnomonic cubed-sphere projection.
[in] | panelid | Panel ID of cubed-sphere coordinates |
[in] | np | Array size |
[in] | alpha | Local coordinate using the central angles [rad] |
[in] | beta | Local coordinate using the central angles [rad] |
[in] | gam | A factor of r/a |
[out] | x | x-coordinate in the Cartesian coordinate |
[out] | y | y-coordinate in the Cartesian coordinate |
[out] | z | z-coordinate in the Cartesian coordinate |
Definition at line 406 of file scale_cubedsphere_coord_cnv.F90.
Referenced by cubedspherecoordcnv_cs2lonlatpos().
subroutine, public scale_cubedsphere_coord_cnv::cubedspherecoordcnv_cart2csvec | ( | integer, intent(in) | panelid, |
real(rp), dimension(np), intent(in) | alpha, | ||
real(rp), dimension (np), intent(in) | beta, | ||
real(rp), dimension(np), intent(in) | gam, | ||
integer, intent(in) | np, | ||
real(dp), dimension(np), intent(in) | vec_x, | ||
real(dp), dimension(np), intent(in) | vec_y, | ||
real(dp), dimension(np), intent(in) | vec_z, | ||
real(rp), dimension(np), intent(out) | vecalpha, | ||
real(rp), dimension (np), intent(out) | vecbeta ) |
Covert the components of a vector in local coordinates with an equiangular gnomonic cubed-sphere projection to those in the Cartesian coordinates.
[in] | panelid | Panel ID of cubed-sphere coordinates |
[in] | np | Array size |
[in] | alpha | Local coordinate using the central angles [rad] |
[in] | beta | Local coordinate using the central angles [rad] |
[in] | gam | A factor of RPlanet / r |
[in] | vec_x | A component of vector in the x-coordinate with the Cartesian coordinate |
[in] | vec_y | A component of vector in the y-coordinate with the Cartesian coordinate |
[in] | vec_z | A component of vector in the z-coordinate with the Cartesian coordinate |
[out] | vecalpha | A component of vector in the alpha-coordinate |
[out] | vecbeta | A component of vector in the beta-coordinate |
Definition at line 497 of file scale_cubedsphere_coord_cnv.F90.
subroutine, public scale_cubedsphere_coord_cnv::cubedspherecoordcnv_getmetric | ( | real(rp), dimension(np), intent(in) | alpha, |
real(rp), dimension (np), intent(in) | beta, | ||
integer, intent(in) | np, | ||
real(rp), intent(in) | radius, | ||
real(rp), dimension(np,2,2), intent(out) | g_ij, | ||
real(rp), dimension (np,2,2), intent(out) | gij, | ||
real(rp), dimension(np), intent(out) | gsqrt ) |
Calculate the metrics associated with an equiangular gnomonic cubed-sphere projection to those in longitude and latitude coordinates.
[in] | np | Array size |
[in] | alpha | Local coordinate using the central angles [rad] |
[in] | beta | Local coordinate using the central angles [rad] |
[in] | radius | Planetary radius |
[out] | g_ij | Horizontal covariant metric tensor |
[out] | gij | Horizontal contravariant metric tensor |
[out] | gsqrt | Horizontal Jacobian |
Definition at line 735 of file scale_cubedsphere_coord_cnv.F90.
Referenced by scale_mesh_cubedspheredom2d::meshcubedspheredom2d_setuplocaldom(), and scale_mesh_cubedspheredom3d::meshcubedspheredom3d_init().