Skip to content

Commit 447f6da

Browse files
committed
quotes bis
1 parent 2d98fcf commit 447f6da

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

doc/tutorial/climada_engine_Forecast.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@
255255
"\n",
256256
"### generate exposure\n",
257257
"# find out which hazard coord to consider\n",
258-
"CHE_borders = u_plot._get_borders(np.stack([exposure.gdf["latitude"].values,\n",
259-
" exposure.gdf["longitude"].values],\n",
258+
"CHE_borders = u_plot._get_borders(np.stack([exposure.gdf['latitude'].values,\n",
259+
" exposure.gdf['longitude'].values],\n",
260260
" axis=1)\n",
261261
" )\n",
262262
"centroid_selection = np.logical_and(np.logical_and(hazard.centroids.lat >= CHE_borders[2],\n",
@@ -390,4 +390,4 @@
390390
},
391391
"nbformat": 4,
392392
"nbformat_minor": 4
393-
}
393+
}

doc/tutorial/climada_engine_Impact.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"| event_id |list(int)| id (>0) of each hazard event (Hazard.event_id)|\n",
6969
"| event_name |(list(str))| name of each event (Hazard.event_name)|\n",
7070
"| date |np.array| date of events (Hazard.date)|\n",
71-
"| coord_exp |np.array| exposures coordinates [lat, lon] (in degrees) (Exposure.gdf["latitudes"], Exposure.gdf["longitude"])|\n",
71+
"| coord_exp |np.array| exposures coordinates [lat, lon] (in degrees) (Exposure.gdf['latitudes'], Exposure.gdf['longitude'])|\n",
7272
"| frequency |np.array| frequency of events (Hazard.frequency)|\n",
7373
"| frequency_unit |str| unit of event frequency, by default '1/year', i.e., annual (Hazard.frequency_unit)|\n",
7474
"| unit |str| value unit used (Exposure.value_unit)|\n",
@@ -1468,7 +1468,7 @@
14681468
"\n",
14691469
"# Set Hazard in Exposures points\n",
14701470
"# set centroids from exposures coordinates\n",
1471-
"centr_pnt = Centroids.from_lat_lon(exp_pnt.gdf["latitude"].values, exp_pnt.gdf["longitude"].values, exp_pnt.crs)\n",
1471+
"centr_pnt = Centroids.from_lat_lon(exp_pnt.gdf['latitude'].values, exp_pnt.gdf['longitude'].values, exp_pnt.crs)\n",
14721472
"# compute Hazard in that centroids\n",
14731473
"tr_pnt = TCTracks.from_ibtracs_netcdf(storm_id='2007314N10093')\n",
14741474
"tc_pnt = TropCyclone.from_tracks(tr_pnt, centroids=centr_pnt)\n",
@@ -1492,7 +1492,7 @@
14921492
"# Compute Impact\n",
14931493
"imp_pnt = ImpactCalc(exp_pnt, impf_pnt, tc_pnt).impact()\n",
14941494
"# nearest neighbor of exposures to centroids gives identity\n",
1495-
"print('Nearest neighbor hazard.centroids indexes for each exposure:', exp_pnt.gdf["centr_TC"].values)\n",
1495+
"print('Nearest neighbor hazard.centroids indexes for each exposure:', exp_pnt.gdf['centr_TC'].values)\n",
14961496
"imp_pnt.plot_scatter_eai_exposure(ignore_zero=False, buffer=0.05);"
14971497
]
14981498
},
@@ -1716,7 +1716,7 @@
17161716
"# Compute impact\n",
17171717
"imp_ras = ImpactCalc(exp_ras, impf_ras, haz_ras).impact(save_mat=False)\n",
17181718
"# nearest neighbor of exposures to centroids is not identity because litpop does not contain data outside the country polygon\n",
1719-
"print('\\n Nearest neighbor hazard.centroids indexes for each exposure:', exp_ras.gdf["centr_FL"].values)\n",
1719+
"print('\\n Nearest neighbor hazard.centroids indexes for each exposure:', exp_ras.gdf['centr_FL'].values)\n",
17201720
"imp_ras.plot_raster_eai_exposure();"
17211721
]
17221722
},
@@ -1967,7 +1967,7 @@
19671967
"\n",
19681968
"# compute sequence of hazards using TropCyclone video_intensity method\n",
19691969
"exp_sea = add_sea(exp_video, (100, 5))\n",
1970-
"centr_video = Centroids.from_lat_lon(exp_sea.gdf["latitude"].values, exp_sea.gdf["longitude"].values)\n",
1970+
"centr_video = Centroids.from_lat_lon(exp_sea.gdf['latitude'].values, exp_sea.gdf['longitude'].values)\n",
19711971
"centr_video.check()\n",
19721972
"\n",
19731973
"track_name = '2017242N16333'\n",

doc/tutorial/climada_entity_Exposures.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@
16391639
"# Example 3: plot_raster method\n",
16401640
"from climada.util.plot import add_cntry_names # use climada's plotting utilities\n",
16411641
"ax = exp.plot_raster(); # plot with same resolution as data\n",
1642-
"add_cntry_names(ax, [exp.gdf["longitude"].min(), exp.gdf["longitude"].max(), exp.gdf["latitude"].min(), exp.gdf["latitude"].max()])\n",
1642+
"add_cntry_names(ax, [exp.gdf['longitude'].min(), exp.gdf['longitude'].max(), exp.gdf['latitude'].min(), exp.gdf['latitude'].max()])\n",
16431643
"\n",
16441644
"# use keyword argument save_tiff='filepath.tiff' to save the corresponding raster in tiff format\n",
16451645
"# use keyword argument raster_res='desired number' to change resolution of the raster."

doc/tutorial/climada_entity_LitPop.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@
161161
" raise err\n",
162162
"exp.plot_scatter();\n",
163163
"\n",
164-
"# Note that `exp.gdf["region_id"]` is a number identifying each country:\n",
164+
"# Note that `exp.gdf['region_id']` is a number identifying each country:\n",
165165
"print('\\n Region IDs (`region_id`) in this exposure:')\n",
166-
"print(exp.gdf["region_id"].unique())"
166+
"print(exp.gdf['region_id'].unique())"
167167
]
168168
},
169169
{

doc/tutorial/climada_util_calibrate.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@
16891689
"# tracks.plot()\n",
16901690
"\n",
16911691
"# # Calculate windfield for the tracks\n",
1692-
"# centroids = Centroids.from_lat_lon(exposure.gdf["latitude"], exposure.gdf["longitude"])\n",
1692+
"# centroids = Centroids.from_lat_lon(exposure.gdf['latitude'], exposure.gdf['longitude'])\n",
16931693
"# hazard = TropCyclone.from_tracks(tracks, centroids)"
16941694
]
16951695
},

0 commit comments

Comments
 (0)