Fixed issue with animation
This commit is contained in:
parent
6f938c5b85
commit
3eb45ecc47
2 changed files with 5 additions and 6 deletions
|
@ -44,7 +44,7 @@ L0 = float(config['main']['L0'])
|
||||||
L1 = float(config['main']['L1'])
|
L1 = float(config['main']['L1'])
|
||||||
direction = float(config['main']['dir'])
|
direction = float(config['main']['dir'])
|
||||||
|
|
||||||
artha = artha.append(pd.DataFrame([
|
artha = pd.concat((artha, pd.DataFrame([
|
||||||
{
|
{
|
||||||
'lat': artha.lat.at[0] \
|
'lat': artha.lat.at[0] \
|
||||||
+ np.cos(direction*np.pi/180) * L0/earth_radius * 180/np.pi,
|
+ np.cos(direction*np.pi/180) * L0/earth_radius * 180/np.pi,
|
||||||
|
@ -59,7 +59,7 @@ artha = artha.append(pd.DataFrame([
|
||||||
- np.sin(direction*np.pi/180) * L1/earth_radius * 180/np.pi \
|
- np.sin(direction*np.pi/180) * L1/earth_radius * 180/np.pi \
|
||||||
/ np.cos(artha.lat.at[0] * np.pi/180),
|
/ np.cos(artha.lat.at[0] * np.pi/180),
|
||||||
},
|
},
|
||||||
], index=[-1, 1]))
|
], index=[-1, 1])))
|
||||||
|
|
||||||
# --- Interpolation
|
# --- Interpolation
|
||||||
log.info('Interpolating data')
|
log.info('Interpolating data')
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import re
|
import re
|
||||||
from multiprocessing.pool import ThreadPool
|
from multiprocessing.pool import ThreadPool
|
||||||
from pprint import pp
|
|
||||||
from time import time
|
from time import time
|
||||||
import logging
|
import logging
|
||||||
import configparser
|
import configparser
|
||||||
|
@ -93,11 +92,11 @@ def animate(config_path):
|
||||||
),
|
),
|
||||||
*[
|
*[
|
||||||
ax.fill(
|
ax.fill(
|
||||||
bloc.index,
|
a.index.values,
|
||||||
bloc,
|
a.values,
|
||||||
color='k',
|
color='k',
|
||||||
zorder=12
|
zorder=12
|
||||||
) for bloc in blocs.values()
|
) for a in blocs.values()
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Reference in a new issue