-
Notifications
You must be signed in to change notification settings - Fork 0
/
cuadros_geograficos_zc.m
74 lines (69 loc) · 1.64 KB
/
cuadros_geograficos_zc.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cuadro_zc.nombre={
'Río Loa Alto';
'Salar de Ascotan';
'Geyser del Tatio';
'Oasis de Atacama';
'Volcán Licancabur';
'Ayllus de San Pedro de Atacama';
'Salar de Atacama';
'Salar de Tara';
'Salar de aguas Calientes';
'Sistema de Lagunas Miscanti y Miñiques';
'Salar de Punta Negra';
'Salar de Pujsa';
'Laguna Lejía';
'Sistema Hidrológico Soncor'
};
%valores en wgs85
cuadro_zc.x={
[-68.85320,-68.09895]
[-68.26799,-67.85977]
[-68.08994,-67.81551]
[-68.30257,-68.15484]
[-67.78503,-67.60751]
[-68.65887,-68.02238]
[-69.06626,-68.88556]
[-68.97034,-68.86352]
[-70.60807,-70.36595]
[-70.58620,-70.44180]
[-70.63696,-70.48724]
[-70.09172,-69.93866]
[-69.56745,-69.49855]
[-68.40515,-68.18795]
[-68.67859,-68.53386]
};
cuadro_zc.y={
[-21.08443,-21.88897]
[-22.26893,-22.59543]
[-22.48025,-22.97415]
[-22.83610,-22.98443]
[-23.34728,-23.54745]
[-22.93933,-23.86970]
[-24.34012,-24.75150]
[-22.41437 ,-22.50059]
[-24.67875 ,-25.22364]
[-24.45511 ,-24.59138]
[-23.00353 ,-23.54435]
[-21.40138 ,-21.54488]
[-21.61380 ,-21.73473]
[-21.41117 ,-21.72944]
[-24.88029 ,-25.12285]
};
[n m]=size(cuadro_zc.x);
utmzone=19;
hemi='N';
for i=1:n
Lat=cuadro_zc.y{i}(1);
Lon=cuadro_zc.x{i}(1);
[x,y,utmzone,utmhemi] = wgs2utm(Lat,Lon,utmzone,hemi);
cuadro_zc.UTMx{i}(1)=x;
cuadro_zc.UTMy{i}(1)=y;
Lat=cuadro_zc.y{i}(2);
Lon=cuadro_zc.x{i}(2);
[x,y,utmzone,utmhemi] = wgs2utm(Lat,Lon,utmzone,hemi);
cuadro_zc.UTMx{i}(2)=x;
cuadro_zc.UTMy{i}(2)=y;
end
%pasar información de recuadros de zona de control a database
%diccionario METADATA LANDSAT:
%http://glovis.usgs.gov/ImgViewer/landsat_dictionary.html