Skip to content
Merged
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
5 changes: 4 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,10 @@
// File "/src/data/create_products.py", line 997, in _plot_var AttributeError: 'NoneType' object has no attribute 'get_index'
//"args": ["-v", "1", "--mission", "2010.257.00", "--noinput", "--no_cleanup" ],
// File "/src/data/create_products.py", line 806, ValueError: max() iterable argument is empty
"args": ["-v", "1", "--mission", "2013.079.00", "--noinput", "--no_cleanup" ],
//"args": ["-v", "1", "--mission", "2013.079.00", "--noinput", "--no_cleanup" ],
// Add --add_seconds argument for 2025.316.02 mission when procss_missions is used
"args": ["-v", "1", "--noinput", "--start_year", "2025", "--end_year", "2025", "--start_yd", "316", "--num_cores", "1", "--no_cleanup"]


},
{
Expand Down
9 changes: 7 additions & 2 deletions src/data/logs2netcdfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,13 @@ def correct_times(self, log_data, add_seconds: int = 0):

def write_variables(self, log_data, netcdf_filename):
log_data = self._correct_dup_short_names(log_data)
if self.mission == "2025.316.02" and self.add_seconds:
# So far only this mission is known to suffer from GPS Week Rollover bug
if self.mission == "2025.316.02":
# Hard code add_seconds value for mission 2025.316.02, don't rely on user input
self.add_seconds = 1024 * 7 * 24 * 3600
self.logger.info(
"Overriding add_seconds to 1024*7*24*3600 = %d for mission 2025.316.02",
self.add_seconds,
)
log_data = self.correct_times(log_data, self.add_seconds)
self.nc_file.createDimension(TIME, len(log_data[0].data))
for variable in log_data:
Expand Down