{"action":"created","issue":{"url":"https://api.github.com/repos/ua-snap/dvm-dos-tem/issues/118","repository_url":"https://api.github.com/repos/ua-snap/dvm-dos-tem","labels_url":"https://api.github.com/repos/ua-snap/dvm-dos-tem/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/ua-snap/dvm-dos-tem/issues/118/comments","events_url":"https://api.github.com/repos/ua-snap/dvm-dos-tem/issues/118/events","html_url":"https://github.com/ua-snap/dvm-dos-tem/issues/118","id":103380974,"number":118,"title":"Fix input generation for x,y less than 10.","user":{"login":"rarutter","id":6707880,"avatar_url":"https://avatars.githubusercontent.com/u/6707880?v=3","gravatar_id":"","url":"https://api.github.com/users/rarutter","html_url":"https://github.com/rarutter","followers_url":"https://api.github.com/users/rarutter/followers","following_url":"https://api.github.com/users/rarutter/following{/other_user}","gists_url":"https://api.github.com/users/rarutter/gists{/gist_id}","starred_url":"https://api.github.com/users/rarutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rarutter/subscriptions","organizations_url":"https://api.github.com/users/rarutter/orgs","repos_url":"https://api.github.com/users/rarutter/repos","events_url":"https://api.github.com/users/rarutter/events{/privacy}","received_events_url":"https://api.github.com/users/rarutter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-08-26T22:39:38Z","updated_at":"2016-08-22T20:43:57Z","closed_at":null,"body":"Currently the input generation script (create_region_input.py) fails for all squares where x and y are less than 10.\r\n\r\nExample command:\r\n```\r\n./create_region_input.py --outdir . --tifs /vagrant/ --xsize 5 --ysize 5 --which proj_climate\r\n```\r\nExample error:\r\n```\r\n File \"./scripts/create_region_input.py\", line 559, in <module>\r\n   main(start_year, years, xo, yo, xs, ys, tif_dir, out_dir, files=which_files)\r\n File \"./scripts/create_region_input.py\", line 450, in main\r\n   fill_climate_file(1901+start_year, years, xo, yo, xs, ys, out_dir, of_name, sp_ref_file, in_tair_base, in_prec_base, in_rsds_base, in_vapo_base)\r\n File \"./scripts/create_region_input.py\", line 300, in fill_climate_file\r\n   tmpfile, smaller_tmpfile\r\n File \"/Users/tobeycarman/.pyenv/versions/2.7.8/Python.framework/Versions/2.7/lib/python2.7/subprocess.py\", line 540, in check_call\r\n   raise CalledProcessError(retcode, cmd)\r\nsubprocess.CalledProcessError: Command '['gdal_translate', '-of', 'netCDF', '-co', 'WRITE_LONLAT=YES', '-srcwin', '915', '292', '5', '5', '/tmp/temporary-file-with-spatial-info.nc', '/tmp/smaller-temporary-file-with-spatial-info.nc']' returned non-zero exit status -8\r\n```"},"comment":{"url":"https://api.github.com/repos/ua-snap/dvm-dos-tem/issues/comments/241544066","html_url":"https://github.com/ua-snap/dvm-dos-tem/issues/118#issuecomment-241544066","issue_url":"https://api.github.com/repos/ua-snap/dvm-dos-tem/issues/118","id":241544066,"user":{"login":"tobeycarman","id":838735,"avatar_url":"https://avatars.githubusercontent.com/u/838735?v=3","gravatar_id":"","url":"https://api.github.com/users/tobeycarman","html_url":"https://github.com/tobeycarman","followers_url":"https://api.github.com/users/tobeycarman/followers","following_url":"https://api.github.com/users/tobeycarman/following{/other_user}","gists_url":"https://api.github.com/users/tobeycarman/gists{/gist_id}","starred_url":"https://api.github.com/users/tobeycarman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobeycarman/subscriptions","organizations_url":"https://api.github.com/users/tobeycarman/orgs","repos_url":"https://api.github.com/users/tobeycarman/repos","events_url":"https://api.github.com/users/tobeycarman/events{/privacy}","received_events_url":"https://api.github.com/users/tobeycarman/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T20:43:57Z","updated_at":"2016-08-22T20:43:57Z","body":"Did some more experimenting, and it seems that only the y (latitude) dimension needs to be >= 10:\r\n\r\n    $ ./scripts/create_region_input.py --years 1 --which all --tifs ../snap-data/ --xsize 1 --ysize 10\r\n\r\nI am able t run the above command, but this fails:\r\n\r\n    $ ./scripts/create_region_input.py --years 1 --which all --tifs ../snap-data/ --xsize 10 --ysize 9\r\n\r\nMaybe this has something to do with the projections, GDAL, and high latitude? Something about the shape of the input tifs and GDAL having a hard time picking <10 contiguous pixels in the Latitude dimension in order to come up with the same shape for an output file?"}}
{"actor":{"display_login":"tobeycarman"}}