diff --git a/LAGOmapa-sitios.py b/LAGOmapa-sitios.py index b70c1dfa591b54d0330ca313da0670fe63478dfb..9666d09313c67776f4e204d6e7f16dce2d003f2b 100644 --- a/LAGOmapa-sitios.py +++ b/LAGOmapa-sitios.py @@ -5,29 +5,29 @@ import matplotlib.image as mpimg import numpy as np def logo(): - print " \n\n\n " - print " ___ ___ ___ ___" - print " /\__\ /\ \ /\ \ /\ \ " - print " /:/ / /::\ \ /::\ \ /::\ \ " - print " /:/ / /:/\:\ \ /:/\:\ \ /:/\:\ \ " - print " /:/ / /::\~\:\ \ /:/ \:\ \ /:/ \:\ \ " - print " /:/__/ /:/\:\ \:\__\ /:/__/_\:\__\ /:/__/ \:\__\ " - print " \:\ \ \/__\:\/:/ / \:\ /\ \/__/ \:\ \ /:/ / " - print " \:\ \ \::/ / \:\ \:\__\ \:\ /:/ / " - print " \:\ \ /:/ / \:\/:/ / \:\/:/ / " - print " \:\__\ /:/ / \::/ / \::/ / " - print " \/__/ __ _\/__/__ _ _ __\/____ ___ _\/__/ " - print " | '_ ` _ \ / _` | '_ \| '_ \ / _ \ '__| " - print " | | | | | | (_| | |_) | |_) | __/ | " - print " |_| |_| |_|\__,_| .__/| .__/ \___|_| " - print " | | | | " - print " |_| |_| " + print (" \n\n\n ") + print (" ___ ___ ___ ___") + print (" /\__\ /\ \ /\ \ /\ \ ") + print (" /:/ / /::\ \ /::\ \ /::\ \ ") + print (" /:/ / /:/\:\ \ /:/\:\ \ /:/\:\ \ ") + print (" /:/ / /::\~\:\ \ /:/ \:\ \ /:/ \:\ \ ") + print (" /:/__/ /:/\:\ \:\__\ /:/__/_\:\__\ /:/__/ \:\__\ ") + print (" \:\ \ \/__\:\/:/ / \:\ /\ \/__/ \:\ \ /:/ / ") + print (" \:\ \ \::/ / \:\ \:\__\ \:\ /:/ / ") + print (" \:\ \ /:/ / \:\/:/ / \:\/:/ / ") + print (" \:\__\ /:/ / \::/ / \::/ / ") + print (" \/__/ __ _\/__/__ _ _ __\/____ ___ _\/__/ ") + print (" | '_ ` _ \ / _` | '_ \| '_ \ / _ \ '__| ") + print (" | | | | | | (_| | |_) | |_) | __/ | ") + print (" |_| |_| |_|\__,_| .__/| .__/ \___|_| ") + print (" | | | | ") + print (" |_| |_| ") return logo() -comand='python mapingLAGO/AutoMap.py ' +comand='python3 mapingLAGO/AutoMap.py ' comand2='python3 SitiosAlturas/plotalturas3.py ' for i in range(1, len(sys.argv)): @@ -37,9 +37,9 @@ for i in range(1, len(sys.argv)): -print "\n\n\ngenerando mapa..... " +print ("\n\n\ngenerando mapa..... ") os.system(comand) -print "\n\n\ngenerando curva de alturas... \n\n\n" +print ("\n\n\ngenerando curva de alturas... \n\n\n") os.system(comand2) fig = plt.figure() diff --git a/README.md b/README.md index fbbe8a3cd94feeccf14ba470503bb47f606f64c2..d7c95ff2364efa3c610508b06b628bc5948cdc9a 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Realiza un mapa de los sitios del proyecto [LAGO](http://lagoproject.net/) en en Desde la terminal correr: -``python LAGOmapa-sitios.py DATOS_DE_LOS_SITIOS.dat`` +``python3 LAGOmapa-sitios.py DATOS_DE_LOS_SITIOS.dat`` el formato del archivo DATOS_DE_LOS_SITIOS debe ser como el que se muestra en la cabecera del archivo ``DatosRC.dat``: Nombre, altura, Lat, Long, Status, R_U, R_C, R_L, diff --git a/SitiosAlturas/plotalturas3.py b/SitiosAlturas/plotalturas3.py index 23b0f8c2ab061b2610578c85ec768e34d5d6add2..2faf7a6e20ae5f9868a4bd83f0badbee9495072b 100644 --- a/SitiosAlturas/plotalturas3.py +++ b/SitiosAlturas/plotalturas3.py @@ -18,7 +18,7 @@ if ig==3: sys.exit("ERROR--IGNORANDO TODO!!!") ######################################################################### -os.system("python sorteador.py "+sys.argv[1]+" 2 > misdatos.dat") +os.system("python3 sorteador.py "+sys.argv[1]+" 2 > misdatos.dat") files=open('misdatos.dat') labels=[] @@ -105,13 +105,13 @@ for y in range(-80,30,10): if ignore[0]==0: #plot(xon,yon,lw=2.5,color='#0033CC',marker='^',ms=30,label='working') - scatter(xon,yon,marker='^',zorder=10,s=300,color='#0033CC',label='Up and running') + scatter([xon],[yon],marker='^',zorder=10,s=300,color='#0033CC',label='Up and running') if ignore[1]==0: #plot(xso,yso,lw=2.5,color='#CC0000',marker='s',ms=30,label='coming soon') - scatter(xso,yso,marker='s',zorder=10,s=300,color='#FF8C00',label='Deploying') + scatter([xso],[yso],marker='s',zorder=10,s=300,color='#FF8C00',label='Deploying') if ignore[2]==0: #plot(xuc,yuc,lw=2.5,color='#FFFF00',marker='o',ms=30,label='under consideration') - scatter(xuc,yuc,marker='o',zorder=10,s=300,color='#CC0000',label='Planned') + scatter([xuc],[yuc],marker='o',zorder=10,s=300,color='#CC0000',label='Planned') ###################################################################### diff --git a/lagoplano.png b/lagoplano.png index 5ac334ec989677c2e6dadbcef42f3503e507b7f5..ea48ec3253d117fa32f2e525bff3f65b52d0b337 100644 Binary files a/lagoplano.png and b/lagoplano.png differ diff --git a/mapingLAGO/AutoMap.py b/mapingLAGO/AutoMap.py index a4eea506f52d02a0fc7bf5bda7fdb5b2181eea07..ecd22f307c639e076a188558299624c942a90a7f 100644 --- a/mapingLAGO/AutoMap.py +++ b/mapingLAGO/AutoMap.py @@ -28,13 +28,13 @@ def estatus(x): elif x=='planned': status=('o','#CC0000') else: - print x + print (x) sys.exit("ERROR--ESTAUS DE SITIO NO VALIDO!!!") return status ################### ordena el archivo de datos por latitud####### -os.system('python sorteador.py '+sys.argv[1]+' 2 > misdatos.dat') +os.system('python3 sorteador.py '+sys.argv[1]+' 2 > misdatos.dat') files=open('misdatos.dat') diff --git a/sorteador.py b/sorteador.py index 2420e1118e3e44275f74a34459870471ce8bfb85..15d853229cbf85e96712b67075140f69caefc57f 100644 --- a/sorteador.py +++ b/sorteador.py @@ -13,4 +13,4 @@ for line in file: array=sorted(lats, key=lambda lat: lat[int(sys.argv[2])]) for i in range(0,len(array)): - print str(array[i][0])+','+str(array[i][1])+','+str(array[i][2])+','+str(array[i][3])+','+str(array[i][4])+','+str(array[i][5])+','+str(array[i][6])+','+str(array[i][7])+',' + print ( str(array[i][0])+','+str(array[i][1])+','+str(array[i][2])+','+str(array[i][3])+','+str(array[i][4])+','+str(array[i][5])+','+str(array[i][6])+','+str(array[i][7])+',' )