Skip to content

Commit

Permalink
Switch example shpfile for cropped region
Browse files Browse the repository at this point in the history
  • Loading branch information
elliott-spire committed May 14, 2020
1 parent f211fa1 commit 0fc4755
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Load the shapefile area
driver = ogr.GetDriverByName('ESRI Shapefile')
shpfile = driver.Open('shpfile/france.shp')
shpfile = driver.Open('shpfile/italy.shp')
AREA = shpfile.GetLayer()

# Check if point is inside of shapefile area
Expand Down Expand Up @@ -55,8 +55,8 @@ def parse_data(filepath):
# Retrieve flight level values
flightlevels = df.index.get_level_values('lv_AMSL0')
# Filter to a specific flight level:
# FL100 = 10000 feet = 3048 meters
df = df.loc[(flightlevels == 3048)]
# FL450 = 45000 feet = 13716 meters
df = df.loc[(flightlevels == 13716)]
# Get longitude values from index
lons = df.index.get_level_values('lon_0')
# Map longitude range from (0 to 360) into (-180 to 180)
Expand Down Expand Up @@ -98,10 +98,10 @@ def plot_data(data):
c=color,
s=10,
cmap='Spectral_r',
edgecolors='gray',
# edgecolors='gray',
linewidths=0.1
)
plt.title('Clear-Air Turbulence % at FL100')
plt.title('Clear-Air Turbulence % at FL450')
plt.colorbar()
plt.show()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Load the shapefile area
driver = ogr.GetDriverByName('ESRI Shapefile')
shpfile = driver.Open('shpfile/france.shp')
shpfile = driver.Open('shpfile/italy.shp')
AREA = shpfile.GetLayer()

# Check if point is inside of shapefile area
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# Load the shapefile area
driver = ogr.GetDriverByName('ESRI Shapefile')
shpfile = driver.Open('shpfile/france.shp')
shpfile = driver.Open('shpfile/italy.shp')
AREA = shpfile.GetLayer()

# Check if point is inside of shapefile area
Expand Down Expand Up @@ -100,7 +100,7 @@ def plot_data(data):
c=color,
s=10,
cmap='coolwarm',
edgecolors='gray',
# edgecolors='gray',
linewidths=0.1
)
plt.title('Temperature (C) at 20 hPa')
Expand Down

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
Binary file not shown.
Binary file not shown.

0 comments on commit 0fc4755

Please sign in to comment.