| 12 | |
| 13 | To reproduce the following script can be used: |
| 14 | {{{ |
| 15 | #!/bin/bash |
| 16 | |
| 17 | cat > /tmp/types.dl << EOF |
| 18 | struct mod { float Surface_Temperature, Surface_Pressure, Total_Ozone, Water_Vapor; }; |
| 19 | typedef marray <mod, 2> arrayMod07; |
| 20 | typedef set<arrayMod07> setMod07; |
| 21 | EOF |
| 22 | |
| 23 | rasdl -r /tmp/types.dl -i > /dev/null 2>&1 |
| 24 | |
| 25 | r="rasql --user rasadmin --passwd rasadmin" |
| 26 | |
| 27 | $r -q 'drop collection test' > /dev/null 2>&1 |
| 28 | $r -q 'create collection test setMod07' |
| 29 | $r -q 'insert into test values marray i in [0:2,0:2] values {0.5f,1.0f,2.0f,4.0f}' |
| 30 | |
| 31 | $r -q 'select csv(test.Surface_Temperatur) from test' --out string |
| 32 | }}} |