Posts

Showing posts from May, 2024

M2 - Python Fundamentals

Image
  Screenshot of Successful Script Result Description of Script The screenshot displays the successful results of my Python script execution. The output includes: 1. Printing Last Name: The name "Klinkhamer" is printed as the last name from the list of names. 2. Dice Game Results: The results of a simulated dice game for multiple players. Each player's roll result is displayed along with whether they won, tied, or lost. For example: Tom rolls a 0 out of 6 and loses. Phillip rolls a 13 out of 14 and wins. Mary rolls a 4 out of 8 and gets a tie. 3. Random Integer List Generation: A list of 20 randomly generated integers between 0 and 10 is shown:  [7, 1, 6, 3, 1, 9, 0, 10, 0, 0, 9, 10, 8, 9, 10, 8, 8, 6, 0, 2, 6] 4. Removing an Unlucky Number: The unlucky number 3 is identified and removed from the list. The list after removing the unlucky number 3 is updated and displayed:  [7, 1, 6, 1, 9, 0, 10, 0, 0, 9, 10, 8, 9, 10, 8, 8, 6, 0, 2, 6] This output demonstrates the successf

M1 - Python Environments & Flowcharts

Image
  Python Module 1 Recap: From Scripts to Flowcharts and Zen Principles Converting 3 Radians to Degrees To convert 3 radians to degrees, we use a simple formula: degrees = radians * 180 / pi Below is the flowchart illustrating the conversion process: Running the calculations in IDLE gives us:  ≈ 171.887 Interpretation of the Zen of Python The "Zen of Python" showcases the philosophy and guiding principles of Python programming. It emphasizes simplicity, readability, and clarity in code. In other words, “Zen of Python” promotes straightforward and elegant solutions over complicated ones. By valuing explicitness over implicitness, the basis of Python encourages clear and understandable code. Moreover, The principles highlight the importance of practicality and avoiding unnecessary complexity— why use 4 lines of code when 1 will do the same thing? This mentality helps to balance between purity and practicality. Overall, the “Zen of Python” advocates for writing code that is easy

Understanding Choropleth Maps and the Pitfalls of Misrepresentation

Image
 Choropleth Maps: Insights and Misuse Choropleth maps simplify complex data by coloring regions like states or counties based on variables such as population density or election results. While these maps can make regional comparisons straightforward and reveal geographic trends, they also have significant potential for misuse or misinterpretation. Understanding Choropleth Maps Choropleth maps are effective for visualizing data across geographic areas. They fill regions with varying shades or colors, highlighting differences and helping to compare regions. This visualization helps identify patterns effectively. Common Pitfalls in Choropleth Maps Manipulation or misinterpretation of choropleth maps can occur in several ways: Data Classification and Cut-Points: The selection of categories and cut-points can drastically alter perceptions. As Mark Monmonier notes in "Lying with Maps," classification schemes such as equal intervals or quantiles can hide or exaggerate real data tr

M7: Google Earth

Image
  Exploring Southern Florida with Google Earth Introduction and Overview Our latest cartography lab allowed us to explore the features of Google Earth Pro. We transformed GIS data into a comprehensive, interactive map of Southern Florida. The objective? To enhance our understanding of geographical visualization and storytelling through advanced tools. Our Map We created a KMZ file showcasing Southern Florida's population density. The map uses dots to indicate population sizes, layered over a detailed backdrop that includes water bodies and county boundaries. Each county is equipped with interactive pop-up details. The entire map is anchored by a visible legend that helps decode the visual data. The Process The journey to our final map involved several key steps. Initially, our ArcGIS maps were converted into KML files using ArcGIS Pro. This ensured accurate data representation when imported into Google Earth. Adding an image overlay for the legend and meticulously organizing the la