@@ -53,9 +53,8 @@ def _parse_args():
5353 'instrument': 'mag',
5454 'data_level': 'l0',
5555 'descriptor': 'sci',
56- 'version': 'v00-01',
57- 'start_date': '20231212',
58- 'end_date': '20231212'
56+ 'version': 'v001',
57+ 'start_date': '20231212'
5958 }]"
6059 --upload-to-sdc
6160
@@ -70,15 +69,13 @@ def _parse_args():
7069 '"imap_cli --instrument "mag" '
7170 '--data-level "l1a"'
7271 ' --start-date "20231212"'
73- '--end-date "20231212"'
74- '--version "v00-01"'
72+ '--version "v001"'
7573 '--dependency "['
7674 ' {"instrument": "mag",'
7775 ' "data_level": "l0"' ,
7876 ' "descriptor": "sci"' ,
79- ' "version": "v00-01 "' ,
77+ ' "version": "v001 "' ,
8078 ' "start_date": "20231212"' ,
81- ' "end_date": "20231212"' ,
8279 '}]" --upload-to-sdc"' ,
8380 )
8481 instrument_help = (
@@ -94,9 +91,8 @@ def _parse_args():
9491 "Example: '[{'instrument': 'mag',"
9592 "'data_level': 'l0',"
9693 "'descriptor': 'sci',"
97- "'version': 'v00-01',"
98- "'start_date': '20231212',"
99- "'end_date': '20231212'}]"
94+ "'version': 'v001',"
95+ "'start_date': '20231212'}]"
10096 )
10197
10298 parser = argparse .ArgumentParser (prog = "imap_cli" , description = description )
@@ -123,7 +119,7 @@ def _parse_args():
123119 "--version" ,
124120 type = str ,
125121 required = True ,
126- help = "Version of the data. Format: vxx-xx " ,
122+ help = "Version of the data. Format: vXXX " ,
127123 )
128124 parser .add_argument (
129125 "--dependency" ,
@@ -154,7 +150,7 @@ def _validate_args(args):
154150 if args .instrument not in imap_data_access .VALID_INSTRUMENTS :
155151 raise ValueError (
156152 f"{ args .instrument } is not in the supported instrument list: "
157- f"{ imap_processing . INSTRUMENTS } "
153+ f"{ imap_data_access . VALID_INSTRUMENTS } "
158154 )
159155 if args .data_level not in imap_processing .PROCESSING_LEVELS [args .instrument ]:
160156 raise ValueError (
@@ -178,15 +174,14 @@ class ProcessInstrument(ABC):
178174 'data_level': 'l0',
179175 'descriptor': 'sci',
180176 'version': 'v00-01',
181- 'start_date': '20231212',
182- 'end_date': '20231212'
177+ 'start_date': '20231212'
183178 }]"
184179 start_date : str
185180 The start date for the output data. Format: YYYYMMDD
186181 end_date : str
187182 The end date for the output data. Format: YYYYMMDD
188183 version : str
189- The version of the data. Format: vxx-xx
184+ The version of the data. Format: vXXX
190185 upload_to_sdc : bool
191186 A flag indicating whether to upload the output file to the SDC.
192187 """
@@ -317,10 +312,10 @@ def process(self):
317312 f"{ file_paths } . Expected only one dependency."
318313 )
319314 filename_norm = imap_data_access .ScienceFilePath .generate_from_inputs (
320- "mag" , "l1a" , "raw-norm" , self .start_date , self .end_date , self . version
315+ "mag" , "l1a" , "raw-norm" , self .start_date , self .version
321316 ).construct_path ()
322317 filename_burst = imap_data_access .ScienceFilePath .generate_from_inputs (
323- "mag" , "l1a" , "raw-burst" , self .start_date , self .end_date , self . version
318+ "mag" , "l1a" , "raw-burst" , self .start_date , self .version
324319 ).construct_path ()
325320 mag_l1a (file_paths [0 ], filename_norm , filename_burst )
326321
@@ -349,7 +344,7 @@ class Swe(ProcessInstrument):
349344 def process (self ):
350345 """Perform SWE specific processing."""
351346 # self.file_path example:
352- # imap/swe/l1a/2023/09/imap_swe_l1a_sci_20230927_20230927_v01-00 .cdf
347+ # imap/swe/l1a/2023/09/imap_swe_l1a_sci_20230927_v001 .cdf
353348 dependencies = self .download_dependencies ()
354349 print (f"Processing SWE { self .data_level } " )
355350
@@ -364,7 +359,6 @@ def process(self):
364359 "l1a" ,
365360 data ["descriptor" ],
366361 self .start_date ,
367- self .end_date ,
368362 self .version ,
369363 )
370364
@@ -385,7 +379,7 @@ def process(self):
385379 # TODO: Update this descriptor
386380 descriptor = "test"
387381 file = imap_data_access .ScienceFilePath .generate_from_inputs (
388- "swe" , "l1b" , descriptor , self .start_date , self .end_date , self . version
382+ "swe" , "l1b" , descriptor , self .start_date , self .version
389383 )
390384
391385 cdf_file_path = write_cdf (
0 commit comments