Project

General

Profile

1
SELECT util.search_path_append('util');
2

    
3

    
4
-- remove private data that should not be publicly visible
5
DELETE FROM :table WHERE allow_download_all = 0
6
-- includes all the projects at wiki.vegpath.org/2013-10-25_conference_call#SALVIAS-deduplication
7
; -- runtime: 0.1 s ("72.820 ms") @starscream
8
/*
9
"`ipr_specific` 
10
LONGTEXT, Values: unconstrained, DEFAULT: "There are no specific use conditions attached 
11
to this dataset. For general use conditions, see SALVIAS General Participant Agreement at 
12
http://www.salvias.net/eula/eula1.html"
13
" (http://vegpath.org/fs/inputs/SALVIAS/_src/salvias_data_access_controls.txt)
14
*/
15
DELETE FROM :table WHERE NOT COALESCE(ipr_specific =
16
'There are no specific use conditions attached to this dataset. For general use conditions, see SALVIAS General Participant Agreement at http://www.salvias.net/eula/eula1.html'
17
, false); -- runtime: 0.2 s ("157.295 ms") @starscream
18

    
19

    
20
-- remove institutions that we have direct data for
21
DELETE FROM :table
22
WHERE project_name IN (
23
	/* from mailto:bboyle@email.arizona.edu?Brad_Boyle.2013-10-28:12:27.Re:+Removing+duplicates+from+SALVIAS+plots ,
24
	wiki.vegpath.org/2013-10-25_conference_call#SALVIAS-deduplication : */
25
	-- Madidi
26
	  'Madidi Transects'
27
	, 'Madidi Permanent Plots'
28
	, 'Madidi Savana Line Transects'
29
	-- VegBank
30
	, 'INW Vegetation Plots'
31
-- most of the 13139 removed plots are from duplicates (13699 - 560)
32
); -- runtime: 10 s ("10193.125 ms") @starscream
33

    
34

    
35
-- remove example data
36
DELETE FROM :table
37
WHERE project_name IN (
38
	/* from mailto:bboyle@email.arizona.edu?Brad_Boyle.2013-10-28:12:27.Re:+Removing+duplicates+from+SALVIAS+plots ,
39
	wiki.vegpath.org/2013-10-25_conference_call#SALVIAS-deduplication : */
40
	  'nsf_example'
41
); -- runtime: ~0 ("1.476 ms") @starscream
(5-5/7)