NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3fb04.f File Reference

Latitude, longitude to grid coordinates. More...

Go to the source code of this file.

Functions/Subroutines

subroutine w3fb04 (alat, along, xmeshl, orient, xi, xj)
 Converts the coordinates of a location on earth from the natural coordinate system of latitude/longitude to the grid (i,j) coordinate system overlaid on a polar stereographic map pro- jection true at 60 degrees n or s latitude.
 

Detailed Description

Latitude, longitude to grid coordinates.

Author
James McDonell
Date
1986-07-17

Definition in file w3fb04.f.

Function/Subroutine Documentation

◆ w3fb04()

subroutine w3fb04 (   alat,
  along,
  xmeshl,
  orient,
  xi,
  xj 
)

Converts the coordinates of a location on earth from the natural coordinate system of latitude/longitude to the grid (i,j) coordinate system overlaid on a polar stereographic map pro- jection true at 60 degrees n or s latitude.

w3fb04() is the reverse of w3fb05().

Program history log:

  • James McDonell 1986-07-17
  • Ralph Jones 1988-06-07 Clean up code, take out goto, use then, else.
  • Ralph Jones 1989-11-02 Change to cray cft77 fortran.
Parameters
[in]ALATLatitude in degrees (<0 if sh).
[in]ALONGWest longitude in degrees.
[in]XMESHLMesh length of grid in km at 60 deg lat(<0 if sh) (190.5 lfm grid, 381.0 nh pe grid,-381.0 sh pe grid).
[in]ORIENTOrientation west longitude of the grid (105.0 lfm grid, 80.0 nh pe grid, 260.0 sh pe grid).
[out]XII of the point relative to north or south pole.
[out]XJJ of the point relative to north or south pole.
Note
All parameters in the calling statement must be real. the range of allowable latitudes is from a pole to 30 degrees into the opposite hemisphere. The grid used in this subroutine has its origin (i=0,j=0) at the pole in either hemisphere, so if the user's grid has its origin at a point other than the pole, a translation is needed to get i and j. The gridlines of i=constant are parallel to a longitude designated by the user. the earth's radius is taken to be 6371.2 km.
This code is not vectorized. To vectorize take it and the subroutine it calls and put them in line.
Author
James McDonell
Date
1986-07-17

Definition at line 39 of file w3fb04.f.