SlideRuleEarth / sliderule

Server and client framework for on-demand science data processing in the cloud
https://slideruleearth.io
Other
27 stars 12 forks source link

Tabulating user fields of records is unimplemented #18

Open jpswinski opened 4 years ago

jpswinski commented 4 years ago

When a lua script tabulates a record, all fields in the records are copied into a lua table, except for fields that are user typed. These fields do not get populated.

What should happen is that the code should recurse down and create a sub-table.

https://github.com/ICESat2-SlideRule/sliderule/blob/3a029ff087dbf716b9f8236bae1c6f7b5420e512/packages/core/LuaLibraryMsg.cpp#L709

jpswinski commented 3 years ago

Also, need to support variable length binary fields. For instance, the H5File record has a variable length field called "data" that could be converted to a binary string and returned to Lua. The string.unpack could be used to decode the data if desired.

jpswinski commented 3 years ago

This also applies to the rec:getvalue function in the LuaLibraryMsg.cpp module.