ArgoFloat handling of mono-cycle profile files#590
Open
gmaze wants to merge 18 commits into
Open
Conversation
- deprec lsprofiles - update describe_profiles - new ls_profiles_for - new ls_profiles - new open_profile
- fix bug whereby the default ascending direction was not set
- refactor toward: open_profile and open_profiles methods - more private place holder for perf. - better docstrings
update facade docstring
- improve typing - new lsp() as a profiles counter part to ls() - change column names in describe_profiles
3 tasks
- fix bug whereby argosplitpath could not handle path from the auxiliary folder
- New CYCLE_NUMBERS attribute - fix bug whereby ls_profiles() would not work for floats with cycle numbers not identical from the euroargofleet API and the netcdf files, this would lead to a wrong N_CYCLES attributes - N_CYCLES now depends on CYCLE_NUMBERS - CYCLE_NUMBERS is determined on the fly by looking at the GDAC folder 'profiles' content, not from API or netcdf content
- clean up 'open_profiles'
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.
This PR brings new methods to the ArgoFloat class to list, describe and open one or mono-cycle profile files.
Listing
auxappended at the end of the key (eg: '11aux' for 'aux/coriolis/2903797/profiles/R2903797_011_aux.nc').Open/load netcdf files
Opening one file
To load one single file, use keys from
af.ls_profiles():Opening (and processing) one or more files
To load one or more files, provide cycle number(s) as a list, and possibly other attributes for subsetting:
open_profiles()comes with additional arguments likeprogressand 'preprocess' and 'preprocess_opts' to apply some pre-processing function to each profile fileIt is also possible to apply a pre-processing function to each of the file and get this function results instead of the netcdf dataset of profiles: