EGRET icon indicating copy to clipboard operation
EGRET copied to clipboard

duplicated values

Open kimiakarimi opened this issue 2 years ago • 1 comments

Hello,

My question is regarding multiple observations from a single day. I believe the removeDuplicates function only removes identical samples from a single day but how does the regression handles if there are two or more non-similar observation from one day?

kimiakarimi avatar Apr 21 '22 21:04 kimiakarimi

You are correct about how removeDuplicates work. The regression uses all of the data in the Sample data frame no matter how many samples happen on the same day. The weights on each sample are computed without regard to the number of samples on that day. I hope that answers your question.

One could argue for other ways of doing this but the coding was designed assuming that the sampling is not highly frequent (e.g. say less than 50 samples per year), but it works for any frequency.

Bob Hirsch

From: kimiakarimi @.> Date: Thursday, April 21, 2022 at 5:46 PM To: USGS-R/EGRET @.> Cc: Subscribed @.***> Subject: [EXTERNAL] [USGS-R/EGRET] duplicated values (Issue #342)

This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.

Hello,

My question is regarding multiple observations from a single day. I believe the removeDuplicates function only removes identical samples from a single day but how does the regression handles if there are two or more non-similar observation from one day?

— Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FUSGS-R%2FEGRET%2Fissues%2F342&data=05%7C01%7Crhirsch%40usgs.gov%7Cf5e6a27d8a534d9d778b08da23e06e5a%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C637861744090698859%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=33f8F7Uxpo34z10xNEnM5Cy0f2wqqWw9QczfV7ygJgk%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAI53UM2TT6AZ4ZV5HMNMYDVGHEEHANCNFSM5UAQBNJA&data=05%7C01%7Crhirsch%40usgs.gov%7Cf5e6a27d8a534d9d778b08da23e06e5a%7C0693b5ba4b184d7b9341f32f400a5494%7C0%7C0%7C637861744090698859%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=oB7yNl1uB5dFBj%2BeF1XcvyTmueXrW6qG13Xh6xrU8FM%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.***>

rmhirsch49 avatar Apr 21 '22 23:04 rmhirsch49