{"action":"created","issue":{"url":"https://api.github.com/repos/NOAA-PMEL/Ferret/issues/1685","repository_url":"https://api.github.com/repos/NOAA-PMEL/Ferret","labels_url":"https://api.github.com/repos/NOAA-PMEL/Ferret/issues/1685/labels{/name}","comments_url":"https://api.github.com/repos/NOAA-PMEL/Ferret/issues/1685/comments","events_url":"https://api.github.com/repos/NOAA-PMEL/Ferret/issues/1685/events","html_url":"https://github.com/NOAA-PMEL/Ferret/issues/1685","id":276454746,"number":1685,"title":"programmatic access to coordinate--variable names","user":{"login":"karlmsmith","id":16406727,"avatar_url":"https://avatars0.githubusercontent.com/u/16406727?v=4","gravatar_id":"","url":"https://api.github.com/users/karlmsmith","html_url":"https://github.com/karlmsmith","followers_url":"https://api.github.com/users/karlmsmith/followers","following_url":"https://api.github.com/users/karlmsmith/following{/other_user}","gists_url":"https://api.github.com/users/karlmsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/karlmsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlmsmith/subscriptions","organizations_url":"https://api.github.com/users/karlmsmith/orgs","repos_url":"https://api.github.com/users/karlmsmith/repos","events_url":"https://api.github.com/users/karlmsmith/events{/privacy}","received_events_url":"https://api.github.com/users/karlmsmith/received_events","type":"User","site_admin":false},"labels":[{"id":323826823,"url":"https://api.github.com/repos/NOAA-PMEL/Ferret/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":757390771,"url":"https://api.github.com/repos/NOAA-PMEL/Ferret/labels/P:%20low","name":"P: low","color":"c5def5","default":false},{"id":758304201,"url":"https://api.github.com/repos/NOAA-PMEL/Ferret/labels/S:%20minor","name":"S: minor","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-23T18:47:28Z","updated_at":"2017-11-23T18:47:38Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Reported by ansley b manke on 12 May 2016 19:05 UTC**\nThe attribute-handling structure gives us the ability to define a variable which contains the variable names from a dataset, and get at the number of variables, number and names of dimensions etc.\r\n\r\nhttp://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/variables-xpressions/VARIABLES#_VPID_83\r\n\r\nThe dimensions and coordinate variables are not the same list however, there may be dimensions for string-lengths, dimensions of length 2 for defining bounds, or dimensions in a dsg file, for num-obs, that are not also defined as coordinate variables.  To get at the coordinate-variable names from a script, we need a couple more:\r\n\r\n```\r\nyes? let axis_names = ..coordnames\r\nyes? let num_axes = ..ncvars\r\n\r\n```\r\n\r\nin addition to the existing \r\n\r\n\r\n```\r\nyes? let var_names = ..varnames\r\nyes? let num_vars = ..nvars\r\netc.\r\n```\r\n\r\n\r\n\n\nMigrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2413"},"comment":{"url":"https://api.github.com/repos/NOAA-PMEL/Ferret/issues/comments/346682011","html_url":"https://github.com/NOAA-PMEL/Ferret/issues/1685#issuecomment-346682011","issue_url":"https://api.github.com/repos/NOAA-PMEL/Ferret/issues/1685","id":346682011,"user":{"login":"karlmsmith","id":16406727,"avatar_url":"https://avatars0.githubusercontent.com/u/16406727?v=4","gravatar_id":"","url":"https://api.github.com/users/karlmsmith","html_url":"https://github.com/karlmsmith","followers_url":"https://api.github.com/users/karlmsmith/followers","following_url":"https://api.github.com/users/karlmsmith/following{/other_user}","gists_url":"https://api.github.com/users/karlmsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/karlmsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlmsmith/subscriptions","organizations_url":"https://api.github.com/users/karlmsmith/orgs","repos_url":"https://api.github.com/users/karlmsmith/repos","events_url":"https://api.github.com/users/karlmsmith/events{/privacy}","received_events_url":"https://api.github.com/users/karlmsmith/received_events","type":"User","site_admin":false},"created_at":"2017-11-23T18:47:38Z","updated_at":"2017-11-23T18:47:38Z","author_association":"CONTRIBUTOR","body":"**Comment by ansley.b.manke on 12 May 2016 19:21 UTC**\nMy thought was we already have ..nvars for number of (non coordinate) variables, so adding ..ncvars for number of coordinate variables. Maybe this instead:\r\n\r\n..coordnames\r\n..ncoordvars\r\n\r\n \r\n\r\n"}}
{"actor":{"display_login":"karlmsmith"}}