Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def constellation_configuration(dT , constellation_name):
# calculate and save the longitude, latitude and altitude information of different satellites according to shell
# and timeslot

# ensure the data/TLE_constellation/ directory exists
data_directory = "data/TLE_constellation/"
# This will create the directory if it does not exist
os.makedirs(data_directory, exist_ok=True)
# determine whether the .h5 file of the delay and satellite position data of the current constellation exists. If
# it exists, delete the file and create an empty .h5 file. If it does not exist, directly create an empty .h5 file.
file_path = "data/TLE_constellation/" + constellation_name + ".h5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def constellation_configuration(dT , constellation_name):
# convert string to int type
number_of_shells = int(constellation_configuration_information['constellation']['number_of_shells'])
shells = []
# ensure the data/XML_constellation/ directory exists
data_directory = "data/XML_constellation/"
# This will create the directory if it does not exist
os.makedirs(data_directory, exist_ok=True)
# determine whether the .h5 file of the delay and satellite position data of the current constellation exists. If
# it exists, delete the file and create an empty .h5 file. If it does not exist, directly create an empty .h5 file.
file_path = "data/XML_constellation/" + constellation_name + ".h5"
Expand Down