Skip to content

Commit

Permalink
reorder batchkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
AUdaltsova authored Aug 6, 2024
1 parent ed424ad commit c48bcd3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ocf_datapipes/batch/batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,6 @@ class BatchKey(Enum):
gsp_x_osgb_fourier = auto()
gsp_time_utc_fourier = auto() # (batch_size, time, n_fourier_features)

# -------------- TIME -------------------------------------------
# Sine and cosine of date of year and time of day at every timestep.
# shape = (batch_size, n_timesteps)
# This is calculated for wind only inside datapipes.
wind_date_sin = auto()
wind_date_cos = auto()
wind_time_sin = auto()
wind_time_cos = auto()

# -------------- SUN --------------------------------------------
# Solar position at every timestep. shape = (batch_size, n_timesteps)
# The solar position data comes from two alternative sources: either the Sun pre-prepared
Expand Down Expand Up @@ -208,6 +199,15 @@ class BatchKey(Enum):
wind_solar_azimuth = auto()
wind_solar_elevation = auto()

# -------------- TIME -------------------------------------------
# Sine and cosine of date of year and time of day at every timestep.
# shape = (batch_size, n_timesteps)
# This is calculated for wind only inside datapipes.
wind_date_sin = auto()
wind_date_cos = auto()
wind_time_sin = auto()
wind_time_cos = auto()


class NWPBatchKey(Enum):
"""The names of the different elements of each NWP batch.
Expand Down

0 comments on commit c48bcd3

Please sign in to comment.