{"action":"created","issue":{"url":"https://api.github.com/repos/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/issues/32","repository_url":"https://api.github.com/repos/Burke-Lauenroth-Lab/SoilWat_R_Wrapper","labels_url":"https://api.github.com/repos/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/issues/32/comments","events_url":"https://api.github.com/repos/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/issues/32/events","html_url":"https://github.com/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/pull/32","id":180907787,"number":32,"title":"NetCDF ClimateScenario extraction","user":{"login":"dschlaep","id":4205019,"avatar_url":"https://avatars.githubusercontent.com/u/4205019?v=3","gravatar_id":"","url":"https://api.github.com/users/dschlaep","html_url":"https://github.com/dschlaep","followers_url":"https://api.github.com/users/dschlaep/followers","following_url":"https://api.github.com/users/dschlaep/following{/other_user}","gists_url":"https://api.github.com/users/dschlaep/gists{/gist_id}","starred_url":"https://api.github.com/users/dschlaep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschlaep/subscriptions","organizations_url":"https://api.github.com/users/dschlaep/orgs","repos_url":"https://api.github.com/users/dschlaep/repos","events_url":"https://api.github.com/users/dschlaep/events{/privacy}","received_events_url":"https://api.github.com/users/dschlaep/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-04T14:24:23Z","updated_at":"2016-10-05T07:05:53Z","closed_at":"2016-10-05T07:04:46Z","pull_request":{"url":"https://api.github.com/repos/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/pulls/32","html_url":"https://github.com/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/pull/32","diff_url":"https://github.com/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/pull/32.diff","patch_url":"https://github.com/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/pull/32.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/issues/comments/251598460","html_url":"https://github.com/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/pull/32#issuecomment-251598460","issue_url":"https://api.github.com/repos/Burke-Lauenroth-Lab/SoilWat_R_Wrapper/issues/32","id":251598460,"user":{"login":"dschlaep","id":4205019,"avatar_url":"https://avatars.githubusercontent.com/u/4205019?v=3","gravatar_id":"","url":"https://api.github.com/users/dschlaep","html_url":"https://github.com/dschlaep","followers_url":"https://api.github.com/users/dschlaep/followers","following_url":"https://api.github.com/users/dschlaep/following{/other_user}","gists_url":"https://api.github.com/users/dschlaep/gists{/gist_id}","starred_url":"https://api.github.com/users/dschlaep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschlaep/subscriptions","organizations_url":"https://api.github.com/users/dschlaep/orgs","repos_url":"https://api.github.com/users/dschlaep/repos","events_url":"https://api.github.com/users/dschlaep/events{/privacy}","received_events_url":"https://api.github.com/users/dschlaep/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T07:05:53Z","updated_at":"2016-10-05T07:05:53Z","body":"## Allow for diverse sources of climate scenarios from netCDF\r\n\r\n###  This update required a re-organization of the folder structure used to store monthly climate scenario data:\r\n- all data files are stored in file.path(dir.ex.fut, “ClimateScenarios”)\r\n- each requested ‘dataset’ is entered in the variable ‘opt_climsc_extr’ of the structure 'project_source' with\r\n    - project = string out of c(\"CMIP3\", \"CMIP5\", \"GeoMIP\")\r\n    - source is the dataset name, e.g., \"BCSD_GDODCPUCLLNL_USA”, \"BCSD_GDODCPUCLLNL_Global”, \"BCSD_NEX_USA\"\r\n- folder structure is then file.path(dir.ex.fut, “ClimateScenarios”, project, source)\r\n\r\n### Adding a new dataset is then as simple as:\r\n1. adding a new folder ‘source’ within file.path(dir.ex.fut, “ClimateScenarios”) with the netCDF files\r\n2. specify ‘opt_climsc_extr’\r\n3. update the ‘clim_metas’ variable in part 3 fo the new dataset\r\n    - var_desc is a data.frame with columns\r\n    - tag: names of variables as used by the database\r\n    - fileVarTags: names of variables as used in the filenames\r\n    - unit_given: units of variables as used by the database\r\n    - unit_real: units of variables as they really are\r\n    - row.names: standardized names of variables\r\n    - sep_fname: separator in filename\r\n    - str_fname: structure of filename, i.e., identification of elements after being split by sep_fname\r\n4. update the search term to flag that the new datasource is also to be treated with the code relevant to extract data from netCDF files, i.e., variable ‘exinfo$which_netCDF’ in part 3\r\n\r\n### Important bug fixes for downscaling:\r\n- incorrect use of default arguments (probably many calls used values other than those intended!)\r\n- potentially incorrect calendar and/or time steps (unlikely with the previously used data)\r\n- incorrect switching to additive instead of multiplicative deltas for precipitation\r\n- more reliable unit conversion (unlikely a with the previously used data)\r\n- no more switching to non-requested method on failure\r\n\r\n### Tests\r\n- passes test projects 2 and 4"}}
{"actor":{"display_login":"dschlaep"}}