{"action":"created","issue":{"url":"https://api.github.com/repos/StrikeNP/trac_test/issues/595","repository_url":"https://api.github.com/repos/StrikeNP/trac_test","labels_url":"https://api.github.com/repos/StrikeNP/trac_test/issues/595/labels{/name}","comments_url":"https://api.github.com/repos/StrikeNP/trac_test/issues/595/comments","events_url":"https://api.github.com/repos/StrikeNP/trac_test/issues/595/events","html_url":"https://github.com/StrikeNP/trac_test/issues/595","id":332197829,"node_id":"MDU6SXNzdWUzMzIxOTc4Mjk=","number":595,"title":"SILHS: Let microphysics alter covariances (Trac #595)","user":{"login":"StrikeNP","id":2577059,"node_id":"MDQ6VXNlcjI1NzcwNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/2577059?v=4","gravatar_id":"","url":"https://api.github.com/users/StrikeNP","html_url":"https://github.com/StrikeNP","followers_url":"https://api.github.com/users/StrikeNP/followers","following_url":"https://api.github.com/users/StrikeNP/following{/other_user}","gists_url":"https://api.github.com/users/StrikeNP/gists{/gist_id}","starred_url":"https://api.github.com/users/StrikeNP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StrikeNP/subscriptions","organizations_url":"https://api.github.com/users/StrikeNP/orgs","repos_url":"https://api.github.com/users/StrikeNP/repos","events_url":"https://api.github.com/users/StrikeNP/events{/privacy}","received_events_url":"https://api.github.com/users/StrikeNP/received_events","type":"User","site_admin":false},"labels":[{"id":963997231,"node_id":"MDU6TGFiZWw5NjM5OTcyMzE=","url":"https://api.github.com/repos/StrikeNP/trac_test/labels/Migrated%20from%20Trac","name":"Migrated from Trac","color":"FFFFFF","default":false},{"id":963997516,"node_id":"MDU6TGFiZWw5NjM5OTc1MTY=","url":"https://api.github.com/repos/StrikeNP/trac_test/labels/clubb_src","name":"clubb_src","color":"FFFFFF","default":false},{"id":963997043,"node_id":"MDU6TGFiZWw5NjM5OTcwNDM=","url":"https://api.github.com/repos/StrikeNP/trac_test/labels/enhancement","name":"enhancement","color":"a2eeef","default":true},{"id":964088819,"node_id":"MDU6TGFiZWw5NjQwODg4MTk=","url":"https://api.github.com/repos/StrikeNP/trac_test/labels/storer@uwm.edu","name":"storer@uwm.edu","color":"FFFFFF","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/StrikeNP/trac_test/milestones/8","html_url":"https://github.com/StrikeNP/trac_test/milestone/8","labels_url":"https://api.github.com/repos/StrikeNP/trac_test/milestones/8/labels","id":3423184,"node_id":"MDk6TWlsZXN0b25lMzQyMzE4NA==","number":8,"title":"Improve SILHS","description":null,"creator":{"login":"StrikeNP","id":2577059,"node_id":"MDQ6VXNlcjI1NzcwNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/2577059?v=4","gravatar_id":"","url":"https://api.github.com/users/StrikeNP","html_url":"https://github.com/StrikeNP","followers_url":"https://api.github.com/users/StrikeNP/followers","following_url":"https://api.github.com/users/StrikeNP/following{/other_user}","gists_url":"https://api.github.com/users/StrikeNP/gists{/gist_id}","starred_url":"https://api.github.com/users/StrikeNP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StrikeNP/subscriptions","organizations_url":"https://api.github.com/users/StrikeNP/orgs","repos_url":"https://api.github.com/users/StrikeNP/repos","events_url":"https://api.github.com/users/StrikeNP/events{/privacy}","received_events_url":"https://api.github.com/users/StrikeNP/received_events","type":"User","site_admin":false},"open_issues":42,"closed_issues":39,"state":"open","created_at":"2018-06-13T20:03:15Z","updated_at":"2018-06-15T12:07:55Z","due_on":null,"closed_at":null},"comments":25,"created_at":"2018-06-13T23:15:05Z","updated_at":"2018-06-15T14:56:00Z","closed_at":null,"author_association":"OWNER","body":"\nIn nature, microphysics forms cold pools which then alter the subgrid variability.  To mimic this in CLUBB, the microphysics should alter the covariances wpthlp, wprtp, rtp2, thlp2, and rtpthlp.  In ticket:392, Brian handled these terms analytically.  In this ticket, we'll handle the terms using Latin hypercube.\n\nWe need to create a function, sample_covar, that computes a covariance given a set of weighted sample points.  We can call it once for each of wpthlp, wprtp, rtp2, thlp2, and rtpthlp.  The formula we want to compute is listed in http://en.wikipedia.org/wiki/Variance.\n\nIn subroutine est_single_column_tndcy, we'll call the function before the loop over the sample points that calls microphys_sub, and once after the loop with updated values of the sample points (e.g. thlm+thlm_mc*dt, etc.).  \n\nLet's write a design spec.\n\nAttachments:\n\n[r6437-ticket595.diff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/r6437-ticket595.diff)\n[testwronglevels.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/testwronglevels.maff)\n[r6439.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/r6439.maff)\n[newbudgets.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/newbudgets.maff)\n[reposbudgets.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/reposbudgets.maff)\n[testrtp2clipping-morr.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/testrtp2clipping-morr.maff)\n[testrtp2clipping-silhs.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/testrtp2clipping-silhs.maff)\n[budgets-morr.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/budgets-morr.maff)\n[budgets-silhs.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/budgets-silhs.maff)\n[budgets-morr-clip_false.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/budgets-morr-clip_false.maff)\n[budgets-silhs-clip_false.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/budgets-silhs-clip_false.maff)\n[timesdt.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/timesdt.maff)\n[timesdtinflag.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/timesdtinflag.maff)\n[r6472-testvarcovarwithflags.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/r6472-testvarcovarwithflags.maff)\n[budgetwithtrueandflags.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/budgetwithtrueandflags.maff)\n[r6472-varcovar-sampletest.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/r6472-varcovar-sampletest.maff)\n[budget-256.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/budget-256.maff)\n[r6472-varcovar-cloudweighting.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/r6472-varcovar-cloudweighting.maff)\n[testallcovarcorr.maff](https://github.com/larson-group/trac_attachment_archive/blob/master/clubb/testallcovarcorr.maff)\n\nMigrated from http://carson.math.uwm.edu/trac/clubb/ticket/595\n```json\n{\n    \"status\": \"closed\", \n    \"changetime\": \"2014-11-14T23:31:56\", \n    \"description\": \"\\nIn nature, microphysics forms cold pools which then alter the subgrid variability.  To mimic this in CLUBB, the microphysics should alter the covariances wpthlp, wprtp, rtp2, thlp2, and rtpthlp.  In ticket:392, Brian handled these terms analytically.  In this ticket, we'll handle the terms using Latin hypercube.\\n\\nWe need to create a function, sample_covar, that computes a covariance given a set of weighted sample points.  We can call it once for each of wpthlp, wprtp, rtp2, thlp2, and rtpthlp.  The formula we want to compute is listed in http://en.wikipedia.org/wiki/Variance.\\n\\nIn subroutine est_single_column_tndcy, we'll call the function before the loop over the sample points that calls microphys_sub, and once after the loop with updated values of the sample points (e.g. thlm+thlm_mc*dt, etc.).  \\n\\nLet's write a design spec.\", \n    \"reporter\": \"vlarson@uwm.edu\", \n    \"cc\": \"vlarson@uwm.edu, dschanen@uwm.edu, raut@uwm.edu\", \n    \"resolution\": \"Verified by V. Larson\", \n    \"_ts\": \"1416007916916958\", \n    \"component\": \"clubb_src\", \n    \"summary\": \"SILHS: Let microphysics alter covariances\", \n    \"priority\": \"major\", \n    \"keywords\": \"\", \n    \"time\": \"2013-07-29T21:03:10\", \n    \"milestone\": \"Improve SILHS\", \n    \"owner\": \"storer@uwm.edu\", \n    \"type\": \"enhancement\"\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/StrikeNP/trac_test/issues/comments/397647954","html_url":"https://github.com/StrikeNP/trac_test/issues/595#issuecomment-397647954","issue_url":"https://api.github.com/repos/StrikeNP/trac_test/issues/595","id":397647954,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzY0Nzk1NA==","user":{"login":"StrikeNP","id":2577059,"node_id":"MDQ6VXNlcjI1NzcwNTk=","avatar_url":"https://avatars0.githubusercontent.com/u/2577059?v=4","gravatar_id":"","url":"https://api.github.com/users/StrikeNP","html_url":"https://github.com/StrikeNP","followers_url":"https://api.github.com/users/StrikeNP/followers","following_url":"https://api.github.com/users/StrikeNP/following{/other_user}","gists_url":"https://api.github.com/users/StrikeNP/gists{/gist_id}","starred_url":"https://api.github.com/users/StrikeNP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StrikeNP/subscriptions","organizations_url":"https://api.github.com/users/StrikeNP/orgs","repos_url":"https://api.github.com/users/StrikeNP/repos","events_url":"https://api.github.com/users/StrikeNP/events{/privacy}","received_events_url":"https://api.github.com/users/StrikeNP/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T14:56:00Z","updated_at":"2018-06-15T14:56:00Z","author_association":"OWNER","body":"**Trac update on 2013/08/16 at 02:38**\n**vlarson@uwm.edu commented:**\n\nReplying to [comment:10 storer@…]:\n> The thlp2 budget was missing the hole filling term, thlp2_pd, which apparently is just typically zero/small and so went unnoticed.  I made the change in r6477 - the thlp2 budget balances now.\n\nNice job.  Do we need to add these terms for any other cases?\n\n"}}
{"actor":{"display_login":"StrikeNP"}}