{"id":7591,"date":"2019-02-03T08:45:14","date_gmt":"2019-02-03T13:45:14","guid":{"rendered":"http:\/\/blog.espol.edu.ec\/ccpg1001\/?p=7591"},"modified":"2025-12-24T20:07:22","modified_gmt":"2025-12-25T01:07:22","slug":"s2eva2018tii_t4-hielo-y-especies-en-artico-programa","status":"publish","type":"post","link":"https:\/\/blog.espol.edu.ec\/algoritmos101\/fp-ejemplos\/fp-s2e20\/s2eva2018tii_t4-hielo-y-especies-en-artico-programa\/","title":{"rendered":"s2Eva2018TII_T4 Hielo y especies en \u00c1rtico-programa"},"content":{"rendered":"\n<p><em><strong>Ejercicio<\/strong><\/em>: <a href=\"https:\/\/blog.espol.edu.ec\/algoritmos101\/fp-evalua\/fp-2e20\/2eva2018tii_t4-hielo-y-especies-en-artico-programa\/\" data-type=\"post\" data-id=\"7528\">2Eva2018TII_T4 Hielo y especies en \u00c1rtico-programa<\/a><\/p>\n\n\n\n<p>Finalmente, se crea el programa que usa las funciones anteriores:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code alignwide\"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\n# CCPG1001-Fundamentos de programaci\u00f3n FIEC-ESPOL\n# 2Eva_IIT2018_T4 Hielo y especies en \u00c1rtico-programa\n\n# ----- NUMERAL 1 y 6----- \nmatrices = crearMatriz(narchivo)\nmhielo09 = matrices&#x5B;0]\nmhielo19 = matrices&#x5B;1]\nmanimales09 = matrices&#x5B;2]\nmanimales19 = matrices&#x5B;3]\n\n# ----- NUMERAL 7-----\nespecies19 = np.unique(manimales19)\nk = len(especies19)\ncomunes = &#x5B;]\nfor i in range(0,k,1):\n    animal = especies19&#x5B;i]\n    Q = cuadrantes(manimales09)\n    animal124 = np.concatenate(&#x5B;Q&#x5B;0],Q&#x5B;1],Q&#x5B;3]]) \n    if (animal in animal124) and not(animal in Q&#x5B;2]):\n        comunes.append(animal)\n        \n# ----- NUMERAL 8-----\nmigra3 = migracionEspecie(manimales09, manimales19,3)\nmigro3 = 0\nif (migra3&#x5B;0]!=migra3&#x5B;1]):\n    migro3 =1\n# ----- NUMERAL 9-----\n# TAREA\n\n# SALIDA\nprint(' ----- NUMERAL 1 y 6 ----- ')\nprint('hielo 2009')\nprint(mhielo09)\nprint('hielo 2019')\nprint(mhielo19)\nprint('animales 2009')\nprint(manimales09)\nprint('animales 2019')\nprint(manimales19)\n\nprint(' ----- NUMERAL 7 ----- ')\nprint('animales comunes: ')\nprint(comunes)\n\nprint(' ----- NUMERAL 8 ----- ')\nprint('migracion de 3:')\nprint(migra3)\nprint('migracion: ',migro3)\n\nprint(' ----- NUMERAL 9 ----- ')\nprint('Tarea...')\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Ejercicio: 2Eva2018TII_T4 Hielo y especies en \u00c1rtico-programa Finalmente, se crea el programa que usa las funciones anteriores:<\/p>\n","protected":false},"author":8043,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"wp-custom-template-entrada-fp-ejemplos","format":"standard","meta":{"footnotes":""},"categories":[136],"tags":[58,157],"class_list":["post-7591","post","type-post","status-publish","format-standard","hentry","category-fp-s2e20","tag-ejemplos-python","tag-fundamentos-programacion"],"_links":{"self":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/7591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/users\/8043"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/comments?post=7591"}],"version-history":[{"count":3,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/7591\/revisions"}],"predecessor-version":[{"id":19187,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/posts\/7591\/revisions\/19187"}],"wp:attachment":[{"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/media?parent=7591"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/categories?post=7591"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espol.edu.ec\/algoritmos101\/wp-json\/wp\/v2\/tags?post=7591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}