forked from OSOceanAcoustics/echopype
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality that directly writes variables to a temporary zarr …
…store (OSOceanAcoustics#774) * add initial code to grab the appropriate parsed data * establish initial structure to go from parsed to zarr * modify open_raw routines for EK60/80 so that we can load in zarr arrays directly into the EchoData object and the temp zarr directory persists until EchoData object is completely destroyed * change distribution of times to a red-robin like distribution * take first step towards generalizing the parsed_to_zarr module * generalize write_df_to_zarr so it can handle columns without arrays, begin documenting parsed_to_zarr, and add the padding of range_sample in get_np_chunk * finish cleaning up the code in parsed_to_zarr * improve chunking in parsed_to_zarr and change num_mb to max_mb * make a preliminary attempt at writing complex data * start the restructuring of parsed_to_zarr into a class * finish parsed to zarr reorganization for EK60 and EK80 * document and clean up the code associated with set_groups_ek60 * clean up parse_base and make it so that we do not store zarr variables twice * move get_power_dataarray and get_angle_dataarrays to set_groups_base, modify the inputs of these functions, and begin working on set_groups_ek80 for straight to zarr * obtain partially working version of Beam_group2 for EK80 * finish constructing ds_beam_power when zarr variables are present * add method to get complex data arrays from zarr in set_groups_base * generalize parsed_to_zarr so we can have column elements with multi-dimensional arrays * finish get_ds_complex_zarr in set_groups_ek80 * add open_raw zarr variables to api and create a routine that automatically determines if large variables should be written to a temporary zarr store * modify the condition for when we should write directly to a temporary zarr store * only store zarr varriables when we do not have receieve data, add structure for direct to zarr unit tests, run pre-commit on all files * change all occurances of parser2zarr to parsed2zarr * correct zarr typo in _append_channel_ping_data * correct kwarg in rectangularize_data * replace hardwired time dtype in parsed to zarr with times.dtype.str * add return docstrings and types to a couple of functions in parsed_to_zarr.py * add back the EK60 file description in the test_data readme * add pytest.mark.skip to unit test Co-authored-by: Don Setiawan <[email protected]> * remove xfail and add pass to unit test Co-authored-by: Don Setiawan <[email protected]> * remove pandas from requirements file * Add simple test for noaa file * remove the auto option in open_raw * remove Union typing import * add test_data/README.md lines back in * add spaces in test_data/README.md * remove optional typing for `offload_to_zarr` Co-authored-by: Don Setiawan <[email protected]> * remove auto description in notes and add beta statement in open_raw Co-authored-by: Don Setiawan <[email protected]>
- Loading branch information
Showing
17 changed files
with
1,987 additions
and
276 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.