source: trunk/src/y_site_location.pro @ 174

Last change on this file since 174 was 107, checked in by pinsard, 12 years ago

first diag on pkb tools for timeseries

  • Property svn:keywords set to URL
File size: 1.8 KB
RevLine 
[43]1;+
2;
[44]3; ===================
4; y_site_location.pro
5; ===================
[43]6;
[44]7; .. function:: y_site_location(site)
8;
9; DESCRITPION
[43]10; ===========
11;
[46]12;    :param site: ++
[43]13;
14; EXAMPLES
15; ========
16;
17; ::
[46]18;
[44]19;   IDL> site=++
20;   IDL> result=y_site_location(site)
[43]21;
[44]22; SEE ALSO
23; ========
[43]24;
[46]25; :func:`x_site_location`
26;
27; :ref:`fig1_no_obs_map.pro`
28; :ref:`net_flux_validation_scatter_2000_2007.pro`
29; :ref:`fig16_timeseries_nino3.pro`
[44]30; :ref:`fig2_timeline_diagram.pro`
[46]31; :ref:`air_validation_scatter_2000_2009_v50.pro`
32; :ref:`q2m_validation_scatter_2000_2009_v50.pro`
33; :ref:`sst_validation_scatter_2000_2009_v50.pro`
34; :ref:`ws_validation_scatter_2000_2009_v50.pro`
35; :ref:`air_validation_scatter_2000_2009_basin.pro`
36; :ref:`q2m_validation_scatter_2000_2009_basin.pro`
37; :ref:`sst_validation_scatter_2000_2009_basin.pro`
38; :ref:`ws_validation_scatter_2000_2009_basin.pro`
39; :ref:`lhf_validation_scatter_2000_2009.pro`
40; :ref:`shf_validation_scatter_2000_2009.pro`
41; :ref:`lwr_validation_scatter_2000_2007.pro`
42; :ref:`swr_validation_scatter_2000_2007.pro`
[44]43;
44; TODO
45; ====
46;
47; coding rules
[46]48;
[43]49; EVOLUTIONS
50; ==========
51;
52; $Id$
53;
[85]54; $URL$
55;
[44]56; - fplod 20110412T083358Z aedon.locean-ipsl.upmc.fr (Darwin)
[46]57;
[44]58;   * creation from fig2_timeline_diagram.pro
[43]59;
60;-
[41]61function y_site_location, site
[44]62n1=strpos(site, 'e')
[41]63if (n1 gt -1) then begin
64    n=strpos(site, 's')
65    if (n gt -1) then begin
66        y=strmid(site, n+1, n1-n-1)
67    endif else begin
68        n=strpos(site, 'n')
69        y=strmid(site, n+1, n1-n-1)
70    endelse
71endif else begin
72    n1=strpos(site, 'w')
73    n=strpos(site, 's')
74    if (n gt -1) then begin
75        y=strmid(site, n+1, n1-n-1)
76        y=180+(180-float(y))
77    endif else begin
78        n=strpos(site, 'n')
79        y=strmid(site, n+1, n1-n-1)
80        y=180+(180-float(y))
81   endelse
82endelse
83return,float(y)
84end
Note: See TracBrowser for help on using the repository browser.