openclimatefix / ocf_datapipes

OCF's DataPipe based dataloader for training and inference
MIT License
13 stars 11 forks source link

convert trig datetime transform to standalone #116

Closed thomasarmstrong98 closed 1 year ago

thomasarmstrong98 commented 1 year ago

Pull Request

Description

First PR so let me know what if I've missed any steps etc!

Changed the cosine/sine decomposition of datetime values to standalone function now, so it can be used without the tiling. In addition added the minutes/60 to the daily decomposition for more granularity - this can be reverted as to not alter the _create_time_image function from original.

Fixes #

How Has This Been Tested?

Tested the old _create_time_image with new (with no minutes added) which matched.

Checklist: