Skip to content

Commit ef74d09

Browse files
committed
quick fix migrate payload to archive downloading
1 parent e73995a commit ef74d09

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ simple command example for downloading :
6161
```
6262
python ./bin/glouton -s 2018-01-20T00:51:54 -e 2018-01-21T00:51:54 -n 28654
6363
```
64-
command example if you just want the payload files :
64+
command example if you just want the archive files :
6565
```
66-
python ./bin/glouton -s 2018-01-20T00:51:54 -e 2018-01-21T00:51:54 -n 28654 --payload
66+
python ./bin/glouton -s 2018-01-20T00:51:54 -e 2018-01-21T00:51:54 -n 28654 --archive
6767
```
6868
command example if you want all data type from specific transmitter type, mode and uuid and apply module processing on waterfall :
6969
```
@@ -81,7 +81,7 @@ Actual features :
8181
-------
8282
* download data from satnogs db
8383
* waterfall downloading
84-
* payload downloading
84+
* archive downloading (formerly payload downloading)
8585
* filters :
8686
* satnogs network
8787
* norad id

bin/glouton

+9-9
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ if __name__ == "__main__":
5656
help='the working directory')
5757
parser.add_argument('--auto', '-a', dest='auto',
5858
help='download new sat data automatically (not implemented yet!)')
59-
parser.add_argument('--payload', '-p', dest='download_payload', default=False, action="store_true",
60-
help='download payload data')
59+
parser.add_argument('--archive', '-p', dest='download_archive', default=False, action="store_true",
60+
help='download archive data')
6161
parser.add_argument('--waterfall', '-f', dest='download_waterfall', default=False, action="store_true",
6262
help='download waterfall data')
6363
parser.add_argument('--demoddata', '-d', dest='download_demoddata', default=False, action="store_true",
6464
help='download demod data')
6565
parser.add_argument('--demod-module', dest='demoddata_modules', default=None,
6666
help='list of the modules to use while downloading demoddata(s) separated by a ,')
67-
parser.add_argument('--payload-module', dest='payload_modules', default=None,
68-
help='list of the modules to use while downloading payload(s) separated by a ,')
67+
parser.add_argument('--archive-module', dest='archive_modules', default=None,
68+
help='list of the modules to use while downloading archive(s) separated by a ,')
6969
parser.add_argument('--waterfall-module', dest='waterfall_modules', default=None,
7070
help='list of the modules to use while downloading waterfall(s) separated by a ,')
7171
parser.add_argument('--last', dest='last', action='store_true',
@@ -97,12 +97,12 @@ if __name__ == "__main__":
9797
end_date = datetime.strptime(
9898
args.end_date, '%Y-%m-%dT%H:%M:%S')
9999

100-
payload_modules = None
100+
archive_modules = None
101101
demoddata_modules = None
102102
waterfall_modules = None
103103
frame_modules = None
104-
if args.payload_modules is not None:
105-
payload_modules = args.payload_modules.split(',')
104+
if args.archive_modules is not None:
105+
archive_modules = args.archive_modules.split(',')
106106
if args.demoddata_modules is not None:
107107
demoddata_modules = args.demoddata_modules.split(',')
108108
if args.waterfall_modules is not None:
@@ -115,10 +115,10 @@ if __name__ == "__main__":
115115
end_date,
116116
args.status,
117117
args.working_dir,
118-
args.download_payload,
118+
args.download_archive,
119119
args.download_waterfall,
120120
args.download_demoddata,
121-
payload_modules,
121+
archive_modules,
122122
demoddata_modules,
123123
waterfall_modules,
124124
args.user_id,

glouton/commands/download/payloadDownloadCommand.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
class PayloadDownloadCommand(DownloadObservationCommand):
1010
def __init__(self, params, observation, modules_commands):
1111
DownloadObservationCommand.__init__(self, params, observation, modules_commands)
12-
self.__json_id = "payload"
12+
self.__json_id = "archive_url"
1313

1414
def download(self):
1515
url = self.observation[self.__json_id]
1616
if not url:
17-
logger.Info('no payload found for the observation ' + str(self.observation['id']) + ' of ' + self.observation['start'])
17+
logger.Info('no archive found for the observation ' + str(self.observation['id']) + ' of ' + self.observation['start'])
1818
return
1919

2020
fileHelper.create_dir_if_not_exist(self.full_path)

glouton/repositories/payload/payloadRepo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self, working_dir, modules):
1919

2020
def register_command(self, observation, start_date, end_date):
2121
cmd_parameters = DownloadCommandParams(
22-
self.__working_dir, self.__create_dir_name('payload', start_date, end_date), self.__modules)
22+
self.__working_dir, self.__create_dir_name('archive', start_date, end_date), self.__modules)
2323
waterfallDownloadCommand = PayloadDownloadCommand(
2424
cmd_parameters, observation, self.__payload_modules_commands)
2525
self.__payload_commands.put(waterfallDownloadCommand)

glouton/services/module/moduleService.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def loadDemoddataModules(self):
1818
return self.__loadModule(self.__cmd.demoddata_modules)
1919

2020
def loadPayloadModules(self):
21-
logger.Info('Payload module(s) loading :')
21+
logger.Info('Archive module(s) loading :')
2222
self.__cmd.payload_modules = self.__getModulesFromConfig(
2323
self.__cmd.payload_modules, 'PAYLOAD')
2424
self.__cmd.payload_modules = self.__getModulesFromConfig(

0 commit comments

Comments
 (0)