| 1 | back to first page [..][[BR]] |
| 2 | back to ["CookBook Eda"][[BR]] |
| 3 | back to ["Temperature"][[BR]] |
| 4 | |
| 5 | == EXTRACT the data from CRU with TETYN == |
| 6 | |
| 7 | Download Tetyn at : http://sourceforge.net/projects/tetyn/ [[BR]] |
| 8 | Download the data at http://www.cru.uea.ac.uk/cru/data/hrg/cru_ts_2.10/data_all/ [[BR]] |
| 9 | cru_ts_2_10.1901-2002.pre.Z (137MB) [[BR]] |
| 10 | cru_ts_2_10.1901-2002.tmn.Z (118MB) [[BR]] |
| 11 | cru_ts_2_10.1901-2002.tmp.Z (118MB) [[BR]] |
| 12 | cru_ts_2_10.1901-2002.tmx.Z (119MB) [[BR]] |
| 13 | |
| 14 | Unzippe the data [[BR]] |
| 15 | |
| 16 | Open TETYN > Climate dataset > CRU TS 2.10 [[BR]] |
| 17 | |
| 18 | In-out > Data folder choose the folder where you have extracted the data and the output folder[[BR]] |
| 19 | Query : select the year, the month, parameters : temperature, temperature minimum, temperature maximum, precipitation[[BR]] |
| 20 | Space : select the country [[BR]] |
| 21 | |
| 22 | == Create the table in Postgre to import to == |
| 23 | === Import the temperature tmp (temperature moyenne)=== |
| 24 | |
| 25 | === Import the temperature tmx (temperature maximum) === |
| 26 | |
| 27 | === Import the temperature tmn (temperature minimum) === |
| 28 | {{{ |
| 29 | DROP TABLE IF EXISTS temperature.tmn; |
| 30 | }}} |
| 31 | ["Create table tmn"] |
| 32 | {{{ |
| 33 | COPY temperature.tmn FROM 'D:/Celine Jouanin/Temperature/tmn.txt' USING DELIMITERS ';' CSV HEADER; |
| 34 | }}} |