Last change
on this file since 5306 was
524,
checked in by lmdzadmin, 20 years ago
|
Initial revision
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
912 bytes
|
Rev | Line | |
---|
[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | SUBROUTINE coordij(lon,lat,ilon,jlat) |
---|
| 5 | |
---|
| 6 | c======================================================================= |
---|
| 7 | c |
---|
| 8 | c calcul des coordonnees i et j de la maille scalaire dans |
---|
| 9 | c laquelle se trouve le point (lon,lat) en radian |
---|
| 10 | c |
---|
| 11 | c======================================================================= |
---|
| 12 | |
---|
| 13 | IMPLICIT NONE |
---|
| 14 | REAL lon,lat |
---|
| 15 | INTEGER ilon,jlat |
---|
| 16 | INTEGER i,j |
---|
| 17 | |
---|
| 18 | #include "dimensions.h" |
---|
| 19 | #include "paramet.h" |
---|
| 20 | #include "comconst.h" |
---|
| 21 | #include "comgeom.h" |
---|
| 22 | #include "serre.h" |
---|
| 23 | |
---|
| 24 | real zlon,zlat |
---|
| 25 | |
---|
| 26 | zlon=lon*pi/180. |
---|
| 27 | zlat=lat*pi/180. |
---|
| 28 | |
---|
| 29 | DO i=1,iim+1 |
---|
| 30 | IF (rlonu(i).GT.zlon) THEN |
---|
| 31 | ilon=i |
---|
| 32 | GOTO 10 |
---|
| 33 | ENDIF |
---|
| 34 | ENDDO |
---|
| 35 | 10 CONTINUE |
---|
| 36 | |
---|
| 37 | j=0 |
---|
| 38 | DO j=1,jjm |
---|
| 39 | IF(rlatv(j).LT.zlat) THEN |
---|
| 40 | jlat=j |
---|
| 41 | GOTO 20 |
---|
| 42 | ENDIF |
---|
| 43 | ENDDO |
---|
| 44 | 20 CONTINUE |
---|
| 45 | IF(j.EQ.0) j=jjm+1 |
---|
| 46 | |
---|
| 47 | RETURN |
---|
| 48 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.