Back to OASIS4 home

Routine
psmile_transform_extent_cyclic(grid_type, extent, transformed, tr_codes, n_trans, ierror)
The routine  transforms the extent "extent" of a grid of grid type "grid_type" into the common coordinate system and subdivides the extent corresponding to the cyclic behaviour of grid type "grid_type"

grid_type, extent = in
transformed, tr_codes, n_trans, ierror = out

The routine assumes that :
- longitude range is within interval (-3*180:3*180)
- latitude  range is within interval (-3* 90:3* 90)
and maps the data into the range (-180:180, -90:90)

When all the grids on all the components will be in the same common space, it will be possible to search for intersections.

get in entry the extent of the grid "extent" in the 3 directions of space.
return an array "transformed"
into the range (-180:180, -90:90).