-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffd89ab
commit dd71032
Showing
4 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import h5py | ||
import pandas as pd | ||
import numpy as np | ||
|
||
def get_all_data(file_path): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import pandas as pd | ||
from matplotlib import pyplot as plt | ||
|
||
from sphere_animation.animation import plot_sphere | ||
from sphere_animation.utils import get_all_data | ||
|
||
if __name__ == '__main__': | ||
file_path = 'files/...' | ||
central_longitude = 104.280606 # Долгота | ||
central_latitude = 52.289588 # Широта | ||
|
||
data = get_all_data(file_path) | ||
all_data = [(group, pd.DataFrame(dataset_data)) for group, dataset_data in data.items() if '/data/' in group] | ||
plot_sphere(central_longitude, central_latitude, all_data[0][1]) | ||
plt.show() |