File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 17431743 "# 1. Which is the time frequency of the data?\n",
17441744 "# The values of a DataArray are numpy.arrays.\n",
17451745 "# The nummpy.ediff1d computes the different between elements in an array\n",
1746- "diff_time_ns = np.ediff1d(tc_syn["time"])\n",
1746+ "diff_time_ns = np.ediff1d(tc_syn[\ "time\ "])\n",
17471747 "diff_time_h = diff_time_ns.astype(int)/1000/1000/1000/60/60\n",
17481748 "print('Mean time frequency in hours:', diff_time_h.mean())\n",
17491749 "print('Std time frequency in hours:', diff_time_h.std())\n",
17501750 "print()\n",
17511751 "\n",
17521752 "# 2. Compute the maximum sustained wind for each day.\n",
1753- "print('Daily max sustained wind:', tc_syn["max_sustained_wind"].groupby('time.day').max())"
1753+ "print('Daily max sustained wind:', tc_syn[\ "max_sustained_wind\ "].groupby('time.day').max())"
17541754 ]
17551755 },
17561756 {
You can’t perform that action at this time.
0 commit comments