Repository navigation
Fix problems seen in production - #215
Merged
Merged
Conversation
A corrupt universals_longitude sample (~1e27 degrees) in a triton log propagated through nudged_longitude into the 1S file as 8 bad seconds. In create_products._grid_dims() the mean longitude, and so the UTM zone, became enormous and pyproj raised CRSError, which aborted all plots for the deployment in lrauv_deployment_plots.py. combine.py: add Combine_NetCDF._physical_coordinate_qc(), run at the start of _initial_coordinate_qc() for every log. It removes samples outside -180..180 longitude and -90..90 latitude from the universals and nal9602 position variables by reusing _range_qc_combined_nc(), and logs a warning with the counts. Instruments with no out-of-range values are left untouched. The regional check for the two special logs is unchanged. create_products.py: in _grid_dims(), treat positions outside the valid range as missing (with a warning) so they cannot corrupt the UTM zone or distance along track, and return the existing empty result if no valid longitude remains. Add tests for both. Existing 1S files built from affected logs (e.g. triton 20261104T095000) need reprocessing. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
lrauv_deployment_plots.py --last_n_days N selected deployments only
when their YYYYMMDD_YYYYMMDD date range overlapped the window. When a
log in an older deployment was reprocessed (e.g. daphne 20261001_20261005
on 2026-11-25), the deployment was never considered, so its freshness
check never ran and its deployment-level plots stayed out of date.
_dlist_list() now also returns a deployment that ended before the
window if any of its *_{FREQ}.nc files was modified since the window
start, via the new _nc_modified_since(). plot_deployment()'s existing
freshness check still decides whether anything needs replotting. Such
deployments are looked for in the start year and the year before.
Add TestDlistList covering overlapping, recently modified, stale,
no-nc, previous-year, future and missing-dlist deployments.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.