Changes between Version 33 and Version 34 of INTEGRATING fish


Ignore:
Timestamp:
Dec 7, 2010 10:25:10 AM (14 years ago)
Author:
cedric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • INTEGRATING fish

    v33 v34  
    292292copy wrbd.fish_fi from 'D:/CelineJouanin/POSEProject/Ireland/DataIreland/specimen_tw_08_09_3.csv' with CSV header delimiter as ';'; 
    293293}}} 
     294= wfd river depletion = 
     295some additional information to be added by update (the operations were already there 
     296{{{ 
     297/* pour mémoire 
     298drop table if exists wrbd.wfd_operations; 
     299create table wrbd.wfd_operations (date date,year integer,station character varying(10), 
     300length numeric,width numeric,area numeric,p1 integer,p2 integer,p3 integer,total integer,totalest numeric); 
     301 
     302copy wrbd.wfd_operations from 'C:/base/wfd_operations.csv' with CSV header delimiter as ';'; 
     303copy wrbd.wfd_operations from 'D:/CelineJouanin/POSEProject/Ireland/DataIreland/wfd_operations.csv' with CSV header delimiter as ';'; 
     304-- le seul pivot possible est sur l'année 
     305select * from wrbd.wfd_operations join wrbd.operation_op on (op_st_id,op_year)=(station,year) ; 
     306create table wrbd.wfd_operations_1 as( 
     307        select o.op_id as ope_id, sr.* from wrbd.wfd_operations sr join wrbd.operation_op o on (op_st_id,op_year)=(station,year) 
     308); 
     309drop table wrbd.wfd_operations; 
     310drop table wrbd.wfd_operations_1; 
     311*/ 
     312-- export excel 
     313--wrbd.wfd_operations_1 now contains operation 
     314-- a la main sous excel 
     315update wrbd.operation_op set (op_p1,op_p2,op_p3,op_nbtotal,op_density,op_totalestim) =(13,8,7,28,0.072,34) where op_id=8; 
     316update wrbd.operation_op set (op_p1,op_p2,op_p3,op_nbtotal,op_density,op_totalestim) =(1,0,0,1,0.006,2) where op_id=18; 
     317update wrbd.operation_op set (op_p1,op_p2,op_p3,op_nbtotal,op_density,op_totalestim) =(1,0,0,1,0.004,2) where op_id=13; 
     318update wrbd.operation_op set (op_p1,op_p2,op_p3,op_nbtotal,op_density,op_totalestim) =(1,1,1,3,0.004,3) where op_id=16; 
     319update wrbd.operation_op set (op_p1,op_p2,op_p3,op_nbtotal,op_density,op_totalestim) =(9,25,17,51,0.068,43) where op_id=12; 
     320update wrbd.operation_op set (op_p1,op_p2,op_p3,op_nbtotal,op_density,op_totalestim) =(12,7,9,28,0.014,31) where op_id=15; 
     321update wrbd.operation_op set (op_p1,op_p2,op_p3,op_nbtotal,op_density,op_totalestim) =(9,2,2,13,0.003,20) where op_id=14; 
     322update wrbd.operation_op set (op_p1,op_p2,op_p3,op_nbtotal,op_density,op_totalestim) =(0,2,0,2,0.007,2) where op_id=2; 
     323update wrbd.operation_op set (op_p1,op_p2,op_p3,op_nbtotal,op_density,op_totalestim) =(17,15,3,35,0.097,49) where op_id=5; 
     324}}}