{"action":"created","issue":{"url":"https://api.github.com/repos/tri-state-epscor/wcwave_adaptors/issues/12","labels_url":"https://api.github.com/repos/tri-state-epscor/wcwave_adaptors/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/tri-state-epscor/wcwave_adaptors/issues/12/comments","events_url":"https://api.github.com/repos/tri-state-epscor/wcwave_adaptors/issues/12/events","html_url":"https://github.com/tri-state-epscor/wcwave_adaptors/issues/12","id":98441336,"number":12,"title":"Not able to insert nc files into vw","user":{"login":"lisapalathingal","id":6519992,"avatar_url":"https://avatars.githubusercontent.com/u/6519992?v=3","gravatar_id":"","url":"https://api.github.com/users/lisapalathingal","html_url":"https://github.com/lisapalathingal","followers_url":"https://api.github.com/users/lisapalathingal/followers","following_url":"https://api.github.com/users/lisapalathingal/following{/other_user}","gists_url":"https://api.github.com/users/lisapalathingal/gists{/gist_id}","starred_url":"https://api.github.com/users/lisapalathingal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisapalathingal/subscriptions","organizations_url":"https://api.github.com/users/lisapalathingal/orgs","repos_url":"https://api.github.com/users/lisapalathingal/repos","events_url":"https://api.github.com/users/lisapalathingal/events{/privacy}","received_events_url":"https://api.github.com/users/lisapalathingal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-31T17:55:02Z","updated_at":"2015-07-31T18:39:30Z","closed_at":null,"body":"Modify the code to upload files with extension other than 'tif' into VW."},"comment":{"url":"https://api.github.com/repos/tri-state-epscor/wcwave_adaptors/issues/comments/126779570","html_url":"https://github.com/tri-state-epscor/wcwave_adaptors/issues/12#issuecomment-126779570","issue_url":"https://api.github.com/repos/tri-state-epscor/wcwave_adaptors/issues/12","id":126779570,"user":{"login":"lisapalathingal","id":6519992,"avatar_url":"https://avatars.githubusercontent.com/u/6519992?v=3","gravatar_id":"","url":"https://api.github.com/users/lisapalathingal","html_url":"https://github.com/lisapalathingal","followers_url":"https://api.github.com/users/lisapalathingal/followers","following_url":"https://api.github.com/users/lisapalathingal/following{/other_user}","gists_url":"https://api.github.com/users/lisapalathingal/gists{/gist_id}","starred_url":"https://api.github.com/users/lisapalathingal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisapalathingal/subscriptions","organizations_url":"https://api.github.com/users/lisapalathingal/orgs","repos_url":"https://api.github.com/users/lisapalathingal/repos","events_url":"https://api.github.com/users/lisapalathingal/events{/privacy}","received_events_url":"https://api.github.com/users/lisapalathingal/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T18:39:30Z","updated_at":"2015-07-31T18:39:30Z","body":"I used the code from your documentation: http://tri-state-epscor.github.io/vw-doc/\r\n\r\nI tried to upload NetCDF file. It didn't upload. I tried uploading tif file and it worked.\r\n\r\nCode:\r\n\r\nfrom wcwave_adaptors import VWClient\r\nvw_client = VWClient('https://vwp-dev.unm.edu', username, password)\r\nnew_mr_uuid = vw_client.initialize_modelrun(\r\n        model_run_name='PRMS',\r\n        description='PRMS Output File',\r\n        researcher_name='Lisa Palathingal', keywords='prms,example,nevada')\r\nres = vw_client.upload(new_mr_uuid, 'visualizer.csv')\r\nfrom wcwave_adaptors import make_fgdc_metadata, metadata_from_file\r\n\r\ninput_file = 'visualizer.csv'\r\nparent_uuid = new_mr_uuid\r\ndescription = 'prms animation output file'\r\nwatershed_name = 'Lehman Creek'\r\nstate = 'Nevada'\r\nstart_datetime = '2002-01-10 00:00:00'\r\nend_datetime = '2003-06-28 01:00:00'\r\nmodel_name = 'prms'\r\n\r\n# create XML FGDC-standard metadata that gets included in VW metadata\r\nfgdc_metadata = make_fgdc_metadata(input_file, None, new_mr_uuid,\r\n    start_datetime, end_datetime, model=model_name)\r\n\r\n# create VW metadata\r\nwatershed_metadata = metadata_from_file(input_file, parent_uuid,\r\n    new_mr_uuid, description, watershed_name, state,\r\n    start_datetime=start_datetime, end_datetime=end_datetime,\r\n    model_name=model_name, fgdc_metadata=fgdc_metadata)\r\nresponse = vw_client.insert_metadata(watershed_metadata)\r\nres = vw_client.dataset_search(model_run_uuid=new_mr_uuid)\r\n\r\n"}}