{"ref":{"kind":"component","id":"align_monthly_currency","key":"sha256:94611b8f94894b664e2b1c161eee85fb3de124002c0e81ac36493878df3080d0"},"label":"Align monthly currency","description":"Align one fixed monthly currency schedule to the model calendar.","inputs":[{"label":"Schedule Start Month","name":"start_month","valueType":{"axes":[],"dtype":"str","unit":"calendar-month"}},{"label":"Values","name":"values","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}}],"outputs":[{"label":"Aligned","name":"aligned","valueType":{"axes":[{"extent":121,"name":"month","variable":true}],"dtype":"f64","unit":"$"}}],"dependencies":[],"libraries":["secondary"],"notes":{},"calculation":{"nodes":[{"id":"input-start_month","label":"Schedule Start Month","kind":"input"},{"id":"input-values","label":"Values","kind":"input"},{"id":"output-aligned","kind":"output","label":"Aligned","rule":"Shift(Values, Month offset(“2024-01”, Schedule Start Month))","sources":[{"node":"input-start_month"},{"node":"input-values"}],"calls":[{"function":"calendar_month_offset","label":"Calendar month offset","bindings":[{"name":"end","label":"End","value":"Schedule Start Month"},{"name":"start","label":"Start","value":"“2024-01”"}],"purpose":"Count the calendar months between the starting month and each ending month, including changes of year.","rule":"Month offset(“2024-01”, Schedule Start Month)"},{"function":"shift_monthly_currency","label":"Shift monthly currency","bindings":[{"name":"months","label":"Months","value":"Month offset(“2024-01”, Schedule Start Month)"},{"name":"values","label":"Values","value":"Values"}],"purpose":"Move the series by the specified number of periods and fill the newly empty periods with zero.","rule":"Shift(Values, Month offset(“2024-01”, Schedule Start Month))"}]}],"topics":[{"label":"Align monthly currency","results":["output-aligned"]}]},"usedBy":[{"kind":"recipe","id":"secondary_dated","key":"sha256:e0959da66177c09759df3ce796541bcba3b11e1550527e1fa5ab01774fdd805c"},{"kind":"recipe","id":"secondary","key":"sha256:66498892bb48f7b3beacc4888f44d52630de9a81a4f58b481a448a28525c7fdd"}]}
