Skip to content

MODE Object CSI vs Object Area CSI in METviewer #2496

Discussion options

You must be logged in to vote

I went poking around the METviewer source code and found the following equations for computing OBJCSI and OBJACSI.

While OBJCSI correctly counts the number of rows and OBJACSI correctly sums the object areas, they do not match the definition listed in the documentation!

calcOBJCSI=function(d){
  return ( nrow(d[ d$fcst_flag == 1 & d$matched_flag == 0, ]) /
  ( nrow(d[ d$simple_flag == 1 & d$matched_flag == 1, ]) + 2 *
  nrow(d[ d$simple_flag == 1 & d$matched_flag == 0, ]) ) ) ;
}

calcOBJACSI=function(d){
  return ( sum( d[ d$simple_flag == 1 & d$matched_flag == 1, ]$area ) /
  (sum( d[ d$simple_flag == 1 & d$matched_flag == 1, ]$area ) + 2 *
  sum( d[ d$simple_flag == 1 & d$matched_flag …

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
7 replies
@CPKalb
Comment options

CPKalb Feb 9, 2024
Collaborator

@JohnHalleyGotway
Comment options

@JohnHalleyGotway
Comment options

Answer selected by CPKalb
@CPKalb
Comment options

CPKalb Feb 9, 2024
Collaborator

@bikegeek
Comment options

@TatianaBurek
Comment options

@CPKalb
Comment options

CPKalb Feb 15, 2024
Collaborator

Comment options

You must be logged in to vote
1 reply
@CPKalb
Comment options

CPKalb Feb 15, 2024
Collaborator

Comment options

You must be logged in to vote
1 reply
@CPKalb
Comment options

CPKalb Feb 15, 2024
Collaborator

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MET: Object Verification Object-based feature Verification
4 participants