Skip to content

Commit

Permalink
Deployed ac8b7b4 with MkDocs version: 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 17, 2025
0 parents commit c5c87e6
Show file tree
Hide file tree
Showing 83 changed files with 56,095 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
1,442 changes: 1,442 additions & 0 deletions 404.html

Large diffs are not rendered by default.

1,496 changes: 1,496 additions & 0 deletions GoogleEarth/GE/index.html

Large diffs are not rendered by default.

1,589 changes: 1,589 additions & 0 deletions Programming/PyQGIS/PyQGIS_resources/index.html

Large diffs are not rendered by default.

1,932 changes: 1,932 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_coordinates/index.html

Large diffs are not rendered by default.

1,656 changes: 1,656 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_temperatures/index.html

Large diffs are not rendered by default.

1,587 changes: 1,587 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_topic10/index.html

Large diffs are not rendered by default.

1,674 changes: 1,674 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_topic11/index.html

Large diffs are not rendered by default.

1,518 changes: 1,518 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_topic12/index.html

Large diffs are not rendered by default.

1,704 changes: 1,704 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_topic2/index.html

Large diffs are not rendered by default.

1,610 changes: 1,610 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_topic3/index.html

Large diffs are not rendered by default.

1,703 changes: 1,703 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_topic4/index.html

Large diffs are not rendered by default.

1,677 changes: 1,677 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_topic5/index.html

Large diffs are not rendered by default.

1,613 changes: 1,613 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_topic6/index.html

Large diffs are not rendered by default.

1,608 changes: 1,608 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_topic7/index.html

Large diffs are not rendered by default.

1,550 changes: 1,550 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_topic8/index.html

Large diffs are not rendered by default.

1,609 changes: 1,609 additions & 0 deletions Programming/PyQGIS/PyQGIS_topics/PyQGIS_topic9/index.html

Large diffs are not rendered by default.

1,648 changes: 1,648 additions & 0 deletions Programming/PyQGIS/explanations/PyQGIS_slashes/index.html

Large diffs are not rendered by default.

1,578 changes: 1,578 additions & 0 deletions Programming/PyQGIS/explanations/QVariant/index.html

Large diffs are not rendered by default.

1,579 changes: 1,579 additions & 0 deletions Programming/PyQGIS/explanations/ogr_library/index.html

Large diffs are not rendered by default.

1,575 changes: 1,575 additions & 0 deletions Programming/Python_for_geographers/intro/index.html

Large diffs are not rendered by default.

243 changes: 243 additions & 0 deletions Programming/Python_for_geographers/notebooks/01_variables.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,243 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# ცვლადები"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Strings"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"A string is a sequence of letters, numbers, and punctuation marks - or commonly known as **text**\n",
"\n",
"In Python you can create a string by typing letters between single or double quotation marks."
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"San Francisco California\n"
]
}
],
"source": [
"city = 'San Francisco'\n",
"state = 'California'\n",
"print(city, state)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"ename": "",
"evalue": "",
"output_type": "error",
"traceback": [
"\u001b[1;31mFailed to start the Kernel. \n",
"\u001b[1;31mView Jupyter <a href='command:jupyter.viewOutput'>log</a> for further details."
]
}
],
"source": [
"print(city +' '+state)"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"San Francisco,California\n"
]
}
],
"source": [
"print(city + ',' + state)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Numbers\n",
"\n",
"Python can handle several types of numbers, but the two most common are:\n",
"\n",
"- **int**, which represents integer values like 100, and\n",
"- **float**, which represents numbers that have a fraction part, like 0.5\n"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"population = 881549\n",
"latitude = 37.7739\n",
"longitude = -121.5687"
]
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'float'>\n"
]
}
],
"source": [
"print(type(latitude))"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'float'>\n"
]
}
],
"source": [
"print(type(latitude))"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"284.6832\n"
]
}
],
"source": [
"elevation_feet = 934\n",
"elevation_meters = elevation_feet * 0.3048\n",
"print(elevation_meters)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"18800.362550650458\n"
]
}
],
"source": [
"area_sqmi = 46.89\n",
"density = population / area_sqmi\n",
"print(density)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Exercise\n",
"\n",
"We have a variable named `distance_km` below with the value `4135` - indicating the straight-line distance between San Francisco and New York in Kilometers. Create another variable called `distance_mi` and store the distance value in miles.\n",
"\n",
"- Hint1: 1 mile = 1.60934 kilometers\n",
"\n",
"Add the code in the cell below and run it. The output should be 2569.37"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"2569.376266046951\n"
]
}
],
"source": [
"distance_km = 4135\n",
"distance_mi = distance_km / 1.60934\n",
"print(distance_mi)\n",
"# Remove this line and add code here"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"----"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.9 (XPython)",
"language": "python",
"name": "xpython"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.11"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Loading

0 comments on commit c5c87e6

Please sign in to comment.