xarray Extensions
Jua xarray Extensions
The Jua Python SDK extends the popular xarray library with weather-specific functionality to make working with meteorological data more intuitive and convenient.
Overview
Jua's xarray extensions provide:
Weather-specific data selection capabilities
Unit conversion utilities
Time handling enhancements
Point-based geographic selection
Enhanced type hints for better IDE support
These extensions are automatically applied when you use the SDK - no extra steps required.
Extended Functionality at a Glance
The SDK adds several powerful extensions to xarray:
Enhanced
sel()method with additional parameters:prediction_timedelta- Select by forecast lead timepoints- Select by geographic pointsSupport for proper North-to-South latitude slicing
New accessor methods via
.juaaccessor or direct methods:.to_celcius()- Convert temperature from Kelvin to Celsius.to_absolute_time()- Convert from lead times to absolute dates.select_point()- Select data at specific geographic locations
Variable access with Jua's
Variablesenum for type safety
Key Features
Extended Data Selection
Point-Based Selection
Unit Conversions
Time Handling
Type-Safe Variable Access
Best Practices
Use Variables enum for type-safe variable access
Use xarray's powerful data analysis capabilities - these extensions preserve all standard xarray functionality
Last updated