{"action":"closed","issue":{"url":"https://api.github.com/repos/NOAA-PMEL/Ferret/issues/75","repository_url":"https://api.github.com/repos/NOAA-PMEL/Ferret","labels_url":"https://api.github.com/repos/NOAA-PMEL/Ferret/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/NOAA-PMEL/Ferret/issues/75/comments","events_url":"https://api.github.com/repos/NOAA-PMEL/Ferret/issues/75/events","html_url":"https://github.com/NOAA-PMEL/Ferret/issues/75","id":275878017,"number":75,"title":"Reading GRIB files via EF","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":757390769,"url":"https://api.github.com/repos/NOAA-PMEL/Ferret/labels/P:%20high","name":"P: high","color":"f9d0c4","default":false},{"id":323826827,"url":"https://api.github.com/repos/NOAA-PMEL/Ferret/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-21T22:14:42Z","updated_at":"2017-11-21T22:14:57Z","closed_at":"2017-11-21T22:14:57Z","author_association":"CONTRIBUTOR","body":"**Reported by hankin on 16 Oct 2000 16:15 UTC**\nWith custom axis capabilities in EFs it should be possible to create a very\nsatisfactory GRIB data reader at modest work. Here's a first sketch:\n\nGRIB_INFO(\"filename\") - returns a 2D field on 2 ABSTRACT axes Nx4 in size where\n   N is the number of XY grids in the file and 4 is 4 different types of info\n      1- variable codes, 2 - Z coords, 3 - T coords, 4 - mapping (sanity chk)\n\nGRIB_DATA(\"filename\", ztmap) - returns a 4D field with XY as custom axes\ninferred from the file and ZT inherited from the ztmap. The contents of the ZT\nmap are the \"layer\" numbers within the GRIB file. For example\n    GRIB_DATA(\"my_grib.grib\", 5)  - is layer no. 5 from the file on an XY grid\n    GRIB_DATA(\"my_grib.grib\", temp_tseries) - could be an XYT temperature\n          time series if temp_tseries is a 1D time series with the correct layer\n          number at each time step.\n\nThe output of GRIB_INFO contains all the information needed to construct ztmap,\nhowever a couple of general-purpose EF is probably needed to assist with the job\n(and generally very useful):\n    UNIQX(var) - removes duplicate values along X, replacing X with ABSTRACT\n                 (similar for Y, Z, T)\n    ELEMENT_OF(A, LIST) - LIST must be a 1D variable. This routine returns the\n                 index of each value within A within the set of values LIST (or\n                 a missing value flag). It inherits all axes from A.\n\nMigrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/173"}}
{"actor":{"display_login":"karlmsmith"}}