SCALE-RM
|
module Map projection More...
Data Types | |
interface | lonlat2xy_s |
interface | mapfactor_s |
interface | rotcoef_s |
Functions/Subroutines | |
subroutine, public | mapprojection_setup (DOMAIN_CENTER_X, DOMAIN_CENTER_Y) |
Setup. More... | |
subroutine | mapprojection_xy2lonlat_0d (x, y, lon, lat) |
(x,y) -> (lon,lat) More... | |
subroutine, public | mapprojection_mapfactor (IA, IS, IE, JA, JS, JE, lat, m1, m2) |
(x,y) -> (lon,lat) More... | |
subroutine, public | mapprojection_rotcoef (IA, IS, IE, JA, JS, JE, lon, lat, rotc) |
u(lat,lon) = cos u(x,y) - sin v(x,y) v(lat,lon) = sin u(x,y) + cos v(x,y) More... | |
subroutine, public | mapprojection_get_attributes (mapping, false_easting, false_northing, longitude_of_central_meridian, longitude_of_projection_origin, latitude_of_projection_origin, straight_vertical_longitude_from_pole, standard_parallel) |
Get mapping attributes. More... | |
Variables | |
real(rp), public | mapprojection_basepoint_lon = 135.221_RP |
real(rp), public | mapprojection_basepoint_lat = 34.653_RP |
procedure(xy2lonlat_s), pointer | xy2lonlat => NULL() |
module Map projection
name | type | default value | comment |
---|---|---|---|
MAPPROJECTION_BASEPOINT_LON | real(RP) | 135.221_RP | position of base point (domain center) in real world [deg] |
MAPPROJECTION_BASEPOINT_LAT | real(RP) | 34.653_RP | position of base point (domain center) in real world [deg] |
MAPPROJECTION_BASEPOINT_X | real(DP) | position of base point in the model [m] | |
MAPPROJECTION_BASEPOINT_Y | real(DP) | position of base point in the model [m] | |
MAPPROJECTION_TYPE | character(len=H_SHORT) | 'NONE' | map projection type |
MAPPROJECTION_ROTATION | real(DP) | 0.0_DP | rotation factor |
MAPPROJECTION_LC_LAT1 | real(DP) | 30.0_DP | standard latitude1 for L.C. projection [deg] |
MAPPROJECTION_LC_LAT2 | real(DP) | 60.0_DP | standard latitude2 for L.C. projection [deg] |
MAPPROJECTION_PS_LAT | real(DP) | standard latitude1 for P.S. projection [deg] | |
MAPPROJECTION_M_LAT | real(DP) | 0.0_DP | standard latitude1 for Mer. projection [deg] |
MAPPROJECTION_EC_LAT | real(DP) | 0.0_DP | standard latitude1 for E.C. projection [deg] |
subroutine, public scale_mapprojection::mapprojection_setup | ( | real(rp), intent(in) | DOMAIN_CENTER_X, |
real(rp), intent(in) | DOMAIN_CENTER_Y | ||
) |
Setup.
[in] | domain_center_x | center position of global domain [m]: x |
[in] | domain_center_y | center position of global domain [m]: y |
Definition at line 167 of file scale_mapprojection.F90.
References scale_const::const_d2r, scale_const::const_pi, scale_const::const_radius, scale_const::const_undef, scale_io::io_fid_conf, mapprojection_basepoint_lat, mapprojection_basepoint_lon, scale_prc::prc_abort(), and xy2lonlat.
Referenced by scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_setup().
subroutine scale_mapprojection::mapprojection_xy2lonlat_0d | ( | real(rp), intent(in) | x, |
real(rp), intent(in) | y, | ||
real(rp), intent(out) | lon, | ||
real(rp), intent(out) | lat | ||
) |
subroutine, public scale_mapprojection::mapprojection_mapfactor | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension(ia,ja), intent(in) | lat, | ||
real(rp), dimension (ia,ja), intent(out) | m1, | ||
real(rp), dimension (ia,ja), intent(out) | m2 | ||
) |
(x,y) -> (lon,lat)
Definition at line 397 of file scale_mapprojection.F90.
Referenced by scale_atmos_grid_cartesc_metric::atmos_grid_cartesc_metric_setup().
subroutine, public scale_mapprojection::mapprojection_rotcoef | ( | integer, intent(in) | IA, |
integer, intent(in) | IS, | ||
integer, intent(in) | IE, | ||
integer, intent(in) | JA, | ||
integer, intent(in) | JS, | ||
integer, intent(in) | JE, | ||
real(rp), dimension(ia,ja), intent(in) | lon, | ||
real(rp), dimension(ia,ja), intent(in) | lat, | ||
real(rp), dimension(ia,ja,2), intent(out) | rotc | ||
) |
u(lat,lon) = cos u(x,y) - sin v(x,y) v(lat,lon) = sin u(x,y) + cos v(x,y)
[out] | rotc | rotc(:,:,1)->cos, rotc(:,:,2)->sin |
Definition at line 429 of file scale_mapprojection.F90.
Referenced by scale_atmos_grid_cartesc_metric::atmos_grid_cartesc_metric_rotcoef().
subroutine, public scale_mapprojection::mapprojection_get_attributes | ( | character(len=*), intent(out) | mapping, |
real(dp), intent(out), optional | false_easting, | ||
real(dp), intent(out), optional | false_northing, | ||
real(dp), intent(out), optional | longitude_of_central_meridian, | ||
real(dp), intent(out), optional | longitude_of_projection_origin, | ||
real(dp), intent(out), optional | latitude_of_projection_origin, | ||
real(dp), intent(out), optional | straight_vertical_longitude_from_pole, | ||
real(dp), dimension(2), intent(out), optional | standard_parallel | ||
) |
Get mapping attributes.
Definition at line 461 of file scale_mapprojection.F90.
References mapprojection_basepoint_lat, mapprojection_basepoint_lon, and scale_prc::prc_abort().
Referenced by scale_file_cartesc::file_cartesc_def_var(), scale_file_history_cartesc::file_history_cartesc_set_pres(), scale_file_history_cartesc::file_history_cartesc_truncate_3d(), and scale_file_cartesc::set_dimension_informations().
real(rp), public scale_mapprojection::mapprojection_basepoint_lon = 135.221_RP |
Definition at line 46 of file scale_mapprojection.F90.
Referenced by scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_update_z(), mapprojection_get_attributes(), mapprojection_setup(), and mod_urban_driver::urban_driver_calc_tendency().
real(rp), public scale_mapprojection::mapprojection_basepoint_lat = 34.653_RP |
Definition at line 47 of file scale_mapprojection.F90.
Referenced by scale_atmos_grid_cartesc_real::atmos_grid_cartesc_real_update_z(), mapprojection_get_attributes(), mapprojection_setup(), and mod_urban_driver::urban_driver_calc_tendency().
procedure(xy2lonlat_s), pointer scale_mapprojection::xy2lonlat => NULL() |
Definition at line 157 of file scale_mapprojection.F90.
Referenced by mapprojection_setup(), and mapprojection_xy2lonlat_0d().