C2SM-RCM / emiproc

Preprocessing of emissions: from any inventory to any model
BSD 3-Clause "New" or "Revised" License
4 stars 9 forks source link

Convert temporal profiles #53

Open lionel42 opened 3 months ago

lionel42 commented 3 months ago

@lionel42

Goal is to convert MounthsProfiles to Day of year profiles or Dayofyear to hourofyear.

This function should be quite modular, allowing different inputs

def convert_profile(profile: Composite | TemporalProfile | Inventory, target_profile: type[TemporalProfile] ) -> Composite|Temporal|Inventory: