Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LOFAR Station Client
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LOFAR2.0
LOFAR Station Client
Merge requests
!25
L2SS-1114
: Add some improvements in how to use the HDF file reader
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Merged
L2SS-1114
: Add some improvements in how to use the HDF file reader
L2SS-1114-hdf5_reader_wrapper_improvement
into
main
Overview
1
Commits
2
Pipelines
2
Changes
4
Merged
Hannes Feldt
requested to merge
L2SS-1114-hdf5_reader_wrapper_improvement
into
main
2 years ago
Overview
1
Commits
2
Pipelines
2
Changes
4
Expand
Closes
L2SS-1114
0
0
Merge request reports
Compare
main
version 1
028dfc73
2 years ago
main (base)
and
latest version
latest version
1d32b0e4
2 commits,
2 years ago
version 1
028dfc73
1 commit,
2 years ago
4 files
+
26
−
39
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
lofar_station_client/file_access/README.md
+
3
−
8
Options
@@ -66,14 +66,9 @@ these attributes. Therefor `attribute` allows to specify another member in the c
## Read a HDF file
A file can be read using
the
`Hdf5FileReader`
class
:
A file can be read using
`read_hdf5`
:
```
python
with
read_hdf5
(
'
file_name.h5
'
)
as
f
:
dat
a
=
f
.
read
(
Data
)
with
read_hdf5
(
'
file_name.h5
'
,
Data
)
as
data
:
a
=
data
.
first_attr
```
It should always be used in a
`with`
block to make sure the HDF5 file handles are cleand up properly.
Currently, the data object read from the file is only usable within the
`with`
block since the data is lazily loaded.
If needed eager loading could be added in the future.
Loading