Loading Data¶
The OVRO-LWA Portal provides the open_dataset() function for loading data from
various sources.
Basic Usage¶
import ovro_lwa_portal as ovro
# Load from local zarr store
ds = ovro.open_dataset("/path/to/observation.zarr")
Once loaded, the dataset has a radport accessor providing over 40 analysis
methods.
Supported Data Sources¶
Local Files¶
Remote URLs¶
S3 (Amazon Web Services)¶
HTTPS¶
DOI-based Access¶
Chunking¶
Control memory usage with chunking:
# Automatic chunking (default)
ds = ovro.open_dataset("path/to/data.zarr", chunks="auto")
# Custom chunking
ds = ovro.open_dataset(
"path/to/data.zarr",
chunks={"time": 100, "frequency": 50}
)
# No chunking (caution: loads all data into memory)
ds = ovro.open_dataset("path/to/data.zarr", chunks=None)
Dataset Structure¶
OVRO-LWA datasets typically contain:
- Dimensions:
time,frequency,l,m(and optionallybeam) - Coordinates: Time stamps, frequency channels, sky coordinates
- Data Variables:
intensity,SKY,BEAM, etc. - Attributes: Observation metadata
Accessing the radport Accessor¶
After loading, use the .radport accessor for analysis:
ds = ovro.open_dataset("path/to/data.zarr")
# The radport accessor is now available
ds.radport.plot()
ds.radport.dynamic_spectrum()
ds.radport.find_peaks()
See the API Reference for all available methods.
Next Steps¶
- Learn about basic plotting
- Understand coordinate systems
- Explore visualization methods