Hi,I'd like to create these custom metrics for every run:- Average Form Power.- Average Form Power Ratio (=Average Form Power/Average Power)- Average Ground Contact Time- Average Leg Spring Stiffness- Average Leg Spring Stiffness/Athlete Weight- Average Vertical Oscillationbut I don't know Python or R......
Hi Ale,thanks for the reply.I read the link you have posted, no need for python or R but you have to know the right sintax for reading and averaging the values in the XData.
Can you write an example of the code (e.g for Average Form Power)?
Dan and Pepe,
Andrea
How can I incorporate the custom metrics that you have attached above to my profile?
When I do that, the program doesnt open and it generates an error.
{
# only calculate for runs containing power
relevant { isRun && Data contains "P"; }
# initialise aggregating variables
init { FPR <- 0; seconds <- 0; }
# Calculate the sum of each sample
sample {
FPR <- FPR + (XDATA("DEVELOPER","Form*Power", sparse) * RECINTSECS);
seconds <- seconds + RECINTSECS;
}
# calculate average value at end
value { FPR / seconds; }
count { seconds; }
}
Thank you
Joss
{
# only calculate for runs containing form power
relevant {isRun=1 && XDATA("DEVELOPER", "FORM*POWER", repeat); }
# calculate metric value at end
value { mean(xdata("DEVELOPER", "Form Power")); }
}
If anyone can improve on this, please let me know.
Thank you
Joss
--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/5abebbe5-c7af-4232-a9ba-0c3d3d4f1732n%40googlegroups.com.
{
# only calculate for rides containing power
relevant {isRun=1 && Data contains "P" && XDATA("DEVELOPER", "FORM*POWER", repeat); }
# calculate metric value at end
value { ((Form_Power)/Average_Power)*100; }
}
GC complains that ‘Form_Power is an unknown symbol’ and the test returns a zero.
So, I changed it to this and it works:
{
relevant {isRun && XDATA("DEVELOPER", "FORM*POWER", repeat); }
value { mean(xdata("DEVELOPER", "Form Power")/Average_Power ); }
}
There is a similar problem with your:
‘HorizontalPowerRatio’
'Horizontal Power'
'Stryd PowerGCT CIQ’
I do have the new Stryd and as for Impact Loading Rate, I have created this (see screenshot) which works and will upload it now:

I don’t think I have accumulated enough runs with it to report Lower Body Stress Score (LBSS), but I imagine it will be similar to ILR. When I start seeing that data, I will create a metric and upload it.
Thanks again. You saved me a lot of work and headaches!
Joss
To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/d9e65f20-ed31-4ea9-8ce5-76f7e79be29bn%40googlegroups.com.
The your syntax is the correct one, but if you define the symbol first (in the case Form_Power) , it just works. The order is important.
New next gen Stryd pod metrics are missing Lower Body Stress Score (LBSS) and Impact Loading Rate (ILR) . If you have a next gen pod, please share the metrics.Many thanksPepe
Ale thank you for the remark.I will change my shared usermetrics according.
--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/f5eadae7-6bb8-4f2f-855f-eef2a2874973n%40googlegroups.com.
On 13 Jan 2023, at 17:11, Ale Martinez <amtri...@gmail.com> wrote:I don't have the latest Stryd "Next Gen pod" so there may be some Stryd Fields missing.Extra fields are standard FIT fields, part of Running Dynamics profile in this case, Developer fields are typically defined by CIQ apps. I don't like the idea to have builtin metrics depending on specific CIQ apps, but 2 possible solutions are:
- Create custom metrics using developer fields similar to builtin RD ones.
- Create a small Python Data Processor mapping developer to extra and standard fields to be run after import so builtin RD metrics work
I can take a look at 2), but I would need sample Stryd files, ideally both from Garmin and Stryd PowerCenter for the same activity.
CIQ 'Vertical Oscillation' -> STANDARD RUNVERT
CIQ 'Power' -> DEVELOPER POWER-2
CIQ 'Cadence' -> DEVELOPER CADENCE-2
CIQ 'Ground Time' -> STANDARD RUNCONTACT
I added an example Python Data Processor to override Garmin with Stryd data: https://github.com/GoldenCheetah/GoldenCheetah/wiki/UG_Special-Topics_Custom-Data-Processors-in-Python#fix-garmin-stryd-power-and-cadence
--
_______________________________________________
Golden-Cheetah-Users mailing list
golden-che...@googlegroups.com
http://groups.google.com/group/golden-cheetah-users?hl=en
---
You received this message because you are subscribed to the Google Groups "golden-cheetah-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golden-cheetah-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golden-cheetah-users/0c56fd72-ba24-4940-a8cf-9d3888934012n%40googlegroups.com.