Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 8a43a3f

Browse files
committed
rename geotiff_play -> parseGeoTIFF.py, clean up README
1 parent 02f0ebc commit 8a43a3f

13 files changed

+38
-60
lines changed

EIO_fetch_geotiff_example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The `--bounds` option accepts latitude and longitude coordinates (more precisely
1717

1818
$ eio clip -o Rome-30m-DEM.tif --bounds 12.35 41.8 12.65 42
1919

20-
In the preceeding example, `12.35` is the western longitude bound, `41.8` is the southern latitude bound, `12.65` is the eastern most longitude bound, and `42` is the northernmost latitude bound of the rectangular area of the desired geoTIFF file.
20+
In the preceeding example, `12.35` is the western longitude bound, `41.8` is the southern latitude bound, `12.65` is the eastern most longitude bound, and `42` is the northernmost latitude bound of the rectangular area of the desired GeoTIFF file.
2121

2222
To clean up stale temporary files and fix the cache in the event of a server error use:
2323

@@ -33,4 +33,4 @@ The excellent elevation data set is generated by a technique known as [Synthetic
3333
The dataset for the elevation API backing the `eio clip` was generated by the (Space) [Shuttle Radar Topography Mission](https://en.wikipedia.org/wiki/Shuttle_Radar_Topography_Mission#Highest_Resolution_Global_Release) conducted in the year 2000. In 2015 a high resolution global [digital elevation model](https://en.wikipedia.org/wiki/Digital_elevation_model), derived from the SRTM dataset, covering most of the world was released to the public without restriction. This DEM derived from the SRTM mission has a high resolution of 1-arc second (approx 30 meters). [Studies](https://www.sciencedirect.com/science/article/pii/S2090447917300084) have shown the vertical accuracy of the datapoints are very good, with error being observed to be within +/- 10 meters, despite the +/- 16 meters figure which was published in the SRTM data specification
3434

3535
## Improvement
36-
OpenAthena can accept DEM geoTIFF files of higher resolution or accuracy than the SRTM dataset, if provided by the user. Newer synthetic aperature radar datasets and LIDAR datasests are likely availible to those with significant resources
36+
OpenAthena can accept DEM GeoTIFF files of higher resolution or accuracy than the SRTM dataset, if provided by the user. Newer synthetic aperature radar datasets and LIDAR datasests are likely availible to those with significant resources

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@ This software is in pre-alpha and results are not guaranteed to be accurate. Use
9393

9494
[Python3](https://www.python.org/) (and the included pip package manager) must be installed first
9595

96-
All you need to do is run `pip3 install gdal matplotlib mgrs`, then run `playground/geotiff_play.py` with python3:
96+
All you need to do is run `pip3 install gdal matplotlib mgrs`, then run `src/parseGeoTIFF.py` with python3:
9797
```bash
9898
pip3 install gdal matplotlib mgrs
9999
# if this fails, instead install the GDAL package with your package manager (i.e. apt, yum, brew, pacman, etc.)
100100
git clone https://github.com/mkrupczak3/OpenAthena.git
101-
cd OpenAthena/playground
102-
python3 geotiff_play.py
101+
cd OpenAthena/src
102+
python3 parseGeoTIFF.py
103103
```
104104

105105
"pip3" and "python3" may just be called "pip" and "python" depending on the configuration of your system
@@ -110,16 +110,16 @@ This software is in pre-alpha and results are not guaranteed to be accurate. Use
110110

111111
### parseImage.py
112112

113-
[parseImage.py](./playground/parseImage.py) can perform automatic extraction and use of EXIF/XMP sensor information from drone photos. This allows for the automatic extraction and use of data including the aircraft camera's lat/lon, altitude, azimuth, and angle of declenation (theta). OpenAthena (if provided [terrain elevation data](./EIO_fetch_geotiff_example.md)) will extract and use these values automaticaly to find the location on the ground in the exact center of the image
113+
[parseImage.py](./src/parseImage.py) can perform automatic extraction and use of EXIF/XMP sensor information from drone photos. This allows for the automatic extraction and use of data including the aircraft camera's lat/lon, altitude, azimuth, and angle of declenation (theta). OpenAthena (if provided [terrain elevation data](./EIO_fetch_geotiff_example.md)) will extract and use these values automaticaly to find the location on the ground in the exact center of the image
114114

115115
[![image of command line on MacOS, command python3 parseImage.py bartow.tif, output and prompting user for drone image filename](./assets/parseImage_interactive_example2.png)](drone_sensor_data_blurb.md)
116116

117117

118118
More info [**here**](drone_sensor_data_blurb.md)
119119

120-
### geotiff_play.py
120+
### parseGeoTIFF.py
121121

122-
Run python geotiff_play.py (while in the playground directory) for a demonstration of [geoTIFF](https://en.wikipedia.org/wiki/GeoTIFF) [DEM](https://en.wikipedia.org/wiki/Digital_elevation_model) parsing. The file `Rome-30m-DEM.tif` is provided in the `playground` directory as an example. A DEM covering a customized area can be [easily obtained](./EIO_fetch_geotiff_example.md) using the python `elevation` API
122+
Run python parseGeoTIFF.py (while in the src directory) for a demonstration of [GeoTIFF](https://en.wikipedia.org/wiki/GeoTIFF) [DEM](https://en.wikipedia.org/wiki/Digital_elevation_model) parsing. The file `Rome-30m-DEM.tif` is provided in the `src` directory as an example. A DEM covering a customized area can be [easily obtained](./EIO_fetch_geotiff_example.md) using the python `elevation` API
123123

124124

125125
(counterintuitively, the x and y axis are backwards in the standard notation of a position via [latitude , longitude])
@@ -128,8 +128,8 @@ Run python geotiff_play.py (while in the playground directory) for a demonstrati
128128

129129

130130
```
131-
user@mypc:~/projects/OpenAthena/playground$
132-
python geotiff_play.py
131+
user@mypc:~/projects/OpenAthena/src$
132+
python parseGeoTIFF.py
133133
```
134134
![render of terrain around Rome](./assets/render_cli_screenshot.png)
135135

@@ -142,10 +142,10 @@ Then, exit the picture window that appears. You will now be prompted in the comm
142142
getTarget.py searches along the constructed line (emmitted from the camera center) for a terrain match
143143

144144

145-
To start, `cd` into the `playground` directory, then run getTarget.py:
145+
To start, `cd` into the `src` directory, then run getTarget.py:
146146

147147
```bash
148-
you@yourcomputer playground % python3 getTarget.py
148+
you@yourcomputer src % python3 getTarget.py
149149
```
150150

151151
You should then see the following prompt:
@@ -156,7 +156,7 @@ Which GeoTiff file would you like to read?
156156
Enter the GeoTIFF filename:
157157
```
158158
159-
You can clip [your own geoTIFF file](./playground/EIO_fetch_geotiff_example.md) from the [elevation API command line](http://elevation.bopen.eu/en/stable/quickstart.html#command-line-usage), or just use the provided example file `Rome-30m-DEM.tif` which contains the elevation data of the city of Rome, Italy and its outlying area
159+
You can clip [your own GeoTIFF file](./EIO_fetch_geotiff_example.md) from the [elevation API command line](http://elevation.bopen.eu/en/stable/quickstart.html#command-line-usage), or just use the provided example file `Rome-30m-DEM.tif` which contains the elevation data of the city of Rome, Italy and its outlying area
160160
161161
162162
```bash
@@ -221,6 +221,8 @@ Target (lat, lon): 33.8352826, -84.5219971
221221
Google Maps: https://maps.google.com/?q=33.835283,-84.521997
222222

223223
NATO MGRS: 16SGC2930646654
224+
MGRS 10m: 33TUG03953105
225+
MGRS 100m: 33TUG039310
224226

225227
```
226228

@@ -246,7 +248,7 @@ The values should be tested for correctness and not totally relied upon in the c
246248
`Google Maps:` a link to the previous lat/lon on Google Maps. Each rounded to 6 decimal places
247249

248250

249-
`NATO MGRS: ` represents the target location in the [NATO Military Grid Reference System (MGRS)](https://en.wikipedia.org/wiki/Military_Grid_Reference_System), which is simmilar to [UTM](https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system). This coordinate system does not include the altitude of the Target
251+
`NATO MGRS:` represents the target location in the [NATO Military Grid Reference System (MGRS)](https://en.wikipedia.org/wiki/Military_Grid_Reference_System), which is simmilar to [UTM](https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system). This coordinate system does not include the altitude of the Target
250252

251253

252254
The program `getTarget.py` will then exit
-8.89 KB
Loading
-152 KB
Loading
-88.1 KB
Loading

assets/render_cli_screenshot.png

1.45 MB
Loading

drone_sensor_data_blurb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The consumer models of some drones do not display their position, altitude, came
44

55
### parseImage.py
66

7-
[parseImage.py](./playground/parseImage.py) has an experimental feature for automatic extraction and use of EXIF/XMP sensor information from drone photos
7+
[parseImage.py](./src/parseImage.py) has an experimental feature for automatic extraction and use of EXIF/XMP sensor information from drone photos
88

99
parseImage.py can be run in an **interactive** mode, or **headless** mode based on how many arguments are given after `python parseImage.py`. **Interactive** is designed for use by humans with one or more images, **headless** is designed for use by automation with one or more images. The output of **headless** mode is subject to change in future versions
1010

@@ -27,7 +27,7 @@ python parseImage.py bartow.tif
2727

2828
![image of command line on MacOS, command python3 parseImage.py bartow.tif, output and prompting user for drone image filename](./assets/parseImage_interactive_example2.png)
2929

30-
Enter the full file path of the drone image if it is not in the `playground` directory. Otherwise, just input the image filename and press **RETURN**
30+
Enter the full file path of the drone image if it is not in the `src` directory. Otherwise, just input the image filename and press **RETURN**
3131

3232
Multiple images can be processed at once in **interactive** mode. When you're finished inputing images, type **`done`** to begin processing
3333

playground/old_geotiff_play.py

Lines changed: 0 additions & 32 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)