<!doctype html>
<html>
   <head>
      <meta charset = "utf-8">
      <meta name='viewport' content='width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no'>
      <title>Visualizing Shark Numbers</title>
      <meta name="description" content="Sharks">
      <meta name="author" content="Julia Janicki">
      <meta name="description" content="">
      <link href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' rel='stylesheet' type='text/css'>
      <link href="https://fonts.googleapis.com/css?family=Lato:300,300i,400,700|Lora:400,400i,700" rel="stylesheet">
      <style>
      </style>
   </head>
   <body>

      <div id = "container">
        <button id="greenlandshark">Greenland Shark</button>
        <button id="sharksbyfamily">Sharks by Family</button>
         <div id = "graph">
         </div>
      </div>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.9.1/d3.min.js" type="text/javascript"></script>
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/ScrollMagic.min.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/animation.gsap.min.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.5/plugins/debug.addIndicators.min.js"></script>
      <script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>

      <script>

      var margin = {
          top: 50,
          right: 50,
          bottom: 20,
          left: 50
      };



      var width = 1200 - 300 - margin.left - margin.right;

      var heightInitial = 700;
      var height = heightInitial - margin.top - margin.bottom;


      var svg = d3.select("#graph")
          .style("width", width + margin.left + margin.right + "px")
          .append("svg")
          .style("width", width + margin.left + margin.right + "px")
          .style("height", height + margin.top + margin.bottom + "px")
          .attr("width", width + margin.left + margin.right)
          .attr("height", height + margin.top + margin.bottom).attr("class", "svg")

      var g = svg.append("g")
          .attr("transform", "translate(" + margin.left + "," + margin.top + ")");


      var forceStrength = 0.03;

      var colorScale = d3.scaleOrdinal()
          .range(['#450303', '#6e0505', '#951f1f', '#d09b9b', '#ad5151', '#e7cdcd',
              '#b30000', '#e34a33'
          ])

      var familyXScale = d3.scaleOrdinal()
          .range([width * 0.2,
              width * 0.4,
              width * 0.55,
              width * 0.7,
              width * 0.8,
              width * 0.9
          ]);

      var familyYScale = d3.scaleOrdinal()
          .range([height * 0.2,
              height * 0.4,
              height * 0.55,
              height * 0.7,
              height * 0.8,
              height * 0.9
          ]);

      var yPositionScale = d3.scaleLinear()
          .domain([1, 50])
          .range([height / 2 - 50, height / 2 + 50])

      var center = {
          x: (width + margin.left + margin.right) / 2,
          y: (height + margin.top + margin.bottom) / 2
      };

      var radiusScale = d3.scaleSqrt()
          .range([0, 1])

      d3.queue()
          .defer(d3.csv, "./data2.csv")
          .await(ready)

      function ready(error, nodes) {

          var families = d3.map(nodes, function(d) {
              return d.family
          }).keys();

          var sharks = nodes.map(function(d) {
              return d.name
          });

          var indexarray = [...Array(families.length).keys()];

          var mapIndex = d3.scaleOrdinal().domain(families).range(indexarray);

          colorScale
              .domain(families)

          familyXScale
              .domain(families)

          var simulation = d3.forceSimulation();

          simulation.force('x', d3.forceX(function(d) {
                  var i = mapIndex(d.family);
                  return xposition(i)
              }).strength(0.03))
              .force('y', d3.forceY(function(d) {
                  var i = mapIndex(d.family);
                  return yposition(i)
              }).strength((0.03)))
              .force('collide', d3.forceCollide(function(d) {
                  return radiusScale(+d.size)
              })).velocityDecay(0.1).alphaDecay(0.001);


          var circles = g.selectAll(".sharks")
              .data(nodes)
              .enter().append("circle")
              .attr("class", "sharks")
              .attr("r", function(d) {
                  return radiusScale(+d.size)
              })
              .attr("fill", function(d) {
                  return colorScale(d.family)
              })
              .attr('stroke', '')


          simulation.nodes(nodes)
              .on('tick', ticked);


          nodes.forEach(function(d) {
              d.x = familyXScale(d.family)
              d.y = yPositionScale(sharks.indexOf(d.name))
          })


          function ticked() {
              circles
                  .attr("cx", function(d) {
                      return d.x
                  })
                  .attr("cy", function(d) {
                      return d.y
                  })
          }



          function charge(d) {
              return -Math.pow(d.radius, 2.0) * forceStrength;
          }

          $("#greenlandshark").on('click', function() {
              greenlandShark();
          })

          $("#sharksbyfamily").on('click', function() {
              sharksByFamilyRev();
          })



          function sharksByFamilyRev() {

              console.log('sharksByFamilyRev');
              console.log(nodes);

              circles = g.selectAll(".sharks").data(nodes);

              circles.exit().transition().duration(750)
                  .attr("r", 0)
                  .remove();

              circles.transition().duration(750)
                  .attr("fill", function(d) {
                      return colorScale(d.family)
                  }).attr("r", function(d) {
                      return radiusScale(+d.size);
                  })

              circles = circles.enter().append("circle").attr("class", "sharks")
                  .attr("fill", function(d) {
                      return colorScale(d.family)
                  }).attr("r", function(d) {
                      return radiusScale(+d.size);
                  })
                  .attr('stroke', '')
                  .merge(circles);

              simulation.force('x', d3.forceX(function(d) {
                      var i = mapIndex(d.family);
                      return xposition(i)
                  }).strength(0.03))
                  .force('y', d3.forceY(function(d) {
                      var i = mapIndex(d.family);
                      return yposition(i)
                  }).strength((0.03)))
                  .force('collide', d3.forceCollide(function(d) {
                      return radiusScale(+d.size)
                  })).velocityDecay(0.1).alphaDecay(0.001);


              // cx cy not showing up for nodes
              simulation.nodes(nodes)
                  .on('tick', ticked);

              simulation.alpha(1).restart();

          }

          function greenlandShark() {
              console.log('greenlandShark');
              console.log(nodes);

              var newNodes = filterNodes('common_name', 'Greenland shark');

              circles = g.selectAll(".sharks").data(newNodes);

              circles.exit()
                  .transition()
                  .duration(1000)
                  .attr("r", 0)
                  .remove();

              circles
                  .attr('r', function(d) {
                      return radiusScale(+d.size)
                  })
                  .attr('fill', function(d) {
                      return colorScale(d.family)
                  });

              simulation.nodes(newNodes)
                  .on('tick', ticked);

              simulation.force('x', d3.forceX().strength(0.03).x(center.x))
                  .force('y', d3.forceY(function(d) {
                      return height / 2
                  }).strength((0.03)));

              simulation.alpha(1).restart();

          }

          function filterNodes(key, group) {
              var newnodes = nodes.filter(function(d) {
                  return d[key] == group;
              });
              return newnodes;;
          }


      }


      function xposition(i) {
          if (i % 6 == 0) {
              return width * 0.2
          } else if (i % 6 == 1) {
              return width * 0.4
          } else if (i % 6 == 2) {
              return width * 0.55
          } else if (i % 6 == 3) {
              return width * 0.7
          } else if (i % 6 == 4) {
              return width * 0.8
          } else {
              return width * 0.9
          }
      }

      function yposition(i) {
          if (i >= 0 && i <= 5) {
              return width * 0.2
          } else if (i >= 6 && i <= 11) {
              return width * 0.4
          } else if (i >= 12 && i <= 17) {
              return width * 0.55
          } else if (i >= 18 && i <= 23) {
              return width * 0.7
          } else if (i >= 24 && i <= 29) {
              return width * 0.8
          } else {
              return width * 0.9
          }
      }



      </script>
   </body>
</html>
// Code goes here

ID,name,url,common_name,size,family,family_common,min_depth,max_depth,distribution,Min_pup,Max_pup,conservation,Max_age,status,other,,,,,,,,,,
1,Chlamydoselachus africana,https://en.wikipedia.org/wiki/Chlamydoselachus_africana,African frilled shark,117,Chlamydoselachidae,Frilled Sharks,,,,,,,,,,,,,,,,,,,
2,Chlamydoselachus anguineus,https://en.wikipedia.org/wiki/Chlamydoselachus_anguineus,Frilled shark,150,Chlamydoselachidae,Frilled Sharks,,,,,,,,,,,,,,,,,,,
3,Heptranchias perlo,https://en.wikipedia.org/wiki/Heptranchias_perlo,Sharp-nose sevengill shark,140,Hexanchidae,Cow Sharks,,,,,,,,,,,,,,,,,,,
4,Hexanchus griseus,https://en.wikipedia.org/wiki/Hexanchus_griseus,Blunt-nose sixgill shark,790,Hexanchidae,Cow Sharks,,,,,,,,,,,,,,,,,,,
5,Hexanchus nakamurai,https://en.wikipedia.org/wiki/Hexanchus_nakamurai,Bigeyed sixgill shark,180,Hexanchidae,Cow Sharks,,,,,,,,,,,,,,,,,,,
6,Hexanchus vitulus,https://en.wikipedia.org/wiki/Hexanchus_vitulus,Atlantic sixgill shark,220,Hexanchidae,Cow Sharks,,,,,,,,,,,,,,,,,,,
7,Notorynchus cepedianus,https://en.wikipedia.org/wiki/Notorynchus_cepedianus,Broad-nose sevengill shark,0,Hexanchidae,Cow Sharks,,,,,,,,,,,,,,,,,,,
8,Centrophorus atromarginatus,https://en.wikipedia.org/wiki/Centrophorus_atromarginatus,Dwarf gulper shark,0,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
9,Centrophorus granulosus,https://en.wikipedia.org/wiki/Centrophorus_granulosus,Gulper shark,100,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
10,Centrophorus harrissoni,https://en.wikipedia.org/wiki/Centrophorus_harrissoni,Dumb gulper shark,110,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
11,Centrophorus moluccensis,https://en.wikipedia.org/wiki/Centrophorus_moluccensis,Small-fin gulper shark,98,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
12,Centrophorus seychellorum,https://en.wikipedia.org/wiki/Centrophorus_seychellorum,Seychelles gulper shark,0,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
13,Centrophorus squamosus,https://en.wikipedia.org/wiki/Centrophorus_squamosus,Leaf-scale gulper shark,158,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
14,Centrophorus tessellatus,https://en.wikipedia.org/wiki/Centrophorus_tessellatus,Mosaic gulper shark,89,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
15,Centrophorus uyato,https://en.wikipedia.org/wiki/Centrophorus_uyato,Little gulper shark,0,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
16,Centrophorus westraliensis,https://en.wikipedia.org/wiki/Centrophorus_westraliensis,Western gulper shark,0,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
17,Centrophorus zeehaani,https://en.wikipedia.org/wiki/Centrophorus_zeehaani,Southern dogfish,0,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
18,Centrophorus westraliensis,https://en.wikipedia.org/wiki/Centrophorus_westraliensis,,0,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
19,Deania calcea,https://en.wikipedia.org/wiki/Deania_calcea,Bird-beak dogfish,0,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
20,Deania hystricosa,https://en.wikipedia.org/wiki/Deania_hystricosa,Rough longnose dogfish,109,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
21,Deania profundorum,https://en.wikipedia.org/wiki/Deania_profundorum,Arrow-head dogfish,76,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
22,Deania quadrispinosa,https://en.wikipedia.org/wiki/Deania_quadrispinosa,Long-snout dogfish,114,Centrophoridae,Gulper Sharks,,,,,,,,,,,,,,,,,,,
23,Dalatias licha,https://en.wikipedia.org/wiki/Dalatias_licha,Kitefin shark,140,Dalatiidae,Kitefin Sharks,,,,,,,,,,,,,,,,,,,
24,Euprotomicroides zantedeschia,https://en.wikipedia.org/wiki/Euprotomicroides_zantedeschia,Tail-light shark,51,Dalatiidae,Kitefin Sharks,,,,,,,,,,,,,,,,,,,
25,Euprotomicrus bispinatus,https://en.wikipedia.org/wiki/Euprotomicrus_bispinatus,Pygmy shark,25,Dalatiidae,Kitefin Sharks,,,,,,,,,,,,,,,,,,,
26,Heteroscymnoides marleyi,https://en.wikipedia.org/wiki/Heteroscymnoides_marleyi,Long-nose pygmy shark,37,Dalatiidae,Kitefin Sharks,,,,,,,,,,,,,,,,,,,
27,Isistius brasiliensis,https://en.wikipedia.org/wiki/Isistius_brasiliensis,Cookie-cutter shark,56,Dalatiidae,Kitefin Sharks,,,,,,,,,,,,,,,,,,,
28,Isistius plutodus,https://en.wikipedia.org/wiki/Isistius_plutodus,Large-tooth cookiecutter shark,42,Dalatiidae,Kitefin Sharks,,,,,,,,,,,,,,,,,,,
29,Mollisquama parini,https://en.wikipedia.org/wiki/Mollisquama_parini,Pocket shark,14,Dalatiidae,Kitefin Sharks,,,,,,,,,,,,,,,,,,,
30,Squaliolus aliae,https://en.wikipedia.org/wiki/Squaliolus_aliae,Small-eye pygmy shark,22,Dalatiidae,Kitefin Sharks,,,,,,,,,,,,,,,,,,,
31,Squaliolus laticaudus,https://en.wikipedia.org/wiki/Squaliolus_laticaudus,Spined pygmy shark,28,Dalatiidae,Kitefin Sharks,,,,,,,,,,,,,,,,,,,
32,Echinorhinus brucus,https://en.wikipedia.org/wiki/Echinorhinus_brucus,Bramble shark,310,Echinorhinidae,Bramble Sharks,,,,,,,,,,,,,,,,,,,
33,Echinorhinus cookei,https://en.wikipedia.org/wiki/Echinorhinus_cookei,Prickly shark,400,Echinorhinidae,Bramble Sharks,,,,,,,,,,,,,,,,,,,
34,Aculeola nigra,https://en.wikipedia.org/wiki/Aculeola_nigra,Hook-tooth dogfish,60,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
35,Centroscyllium excelsum,https://en.wikipedia.org/wiki/Centroscyllium_excelsum,High-fin dogfish,63,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
36,Centroscyllium fabricii,https://en.wikipedia.org/wiki/Centroscyllium_fabricii,Black dogfish,75,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
37,Centroscyllium granulatum,https://en.wikipedia.org/wiki/Centroscyllium_granulatum,Granular dogfish,28,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
38,Centroscyllium kamoharai,https://en.wikipedia.org/wiki/Centroscyllium_kamoharai,Bare-skin dogfish,40,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
39,Centroscyllium nigrum,https://en.wikipedia.org/wiki/Centroscyllium_nigrum,Comb-tooth dogfish,50,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
40,Centroscyllium ornatum,https://en.wikipedia.org/wiki/Centroscyllium_ornatum,Ornate dogfish,30,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
41,Centroscyllium ritteri,https://en.wikipedia.org/wiki/Centroscyllium_ritteri,White-fin dogfish,43,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
42,Etmopterus baxteri,https://en.wikipedia.org/wiki/Etmopterus_baxteri,New Zealand lanternshark,0,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
43,Etmopterus benchleyi,https://en.wikipedia.org/wiki/Etmopterus_benchleyi,Ninja lanternshark,51,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
44,Etmopterus bigelowi,https://en.wikipedia.org/wiki/Etmopterus_bigelowi,Blurred lanternshark,67,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
45,Etmopterus brachyurus,https://en.wikipedia.org/wiki/Etmopterus_brachyurus,Short-tail lanternshark,50,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
46,Etmopterus bullisi,https://en.wikipedia.org/wiki/Etmopterus_bullisi,Lined lanternshark,45,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
47,Etmopterus burgessi,https://en.wikipedia.org/wiki/Etmopterus_burgessi,Broad-snout lanternshark,0,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
48,Etmopterus carteri,https://en.wikipedia.org/wiki/Etmopterus_carteri,Cylindrical lanternshark,21,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
49,Etmopterus caudistigmus,https://en.wikipedia.org/wiki/Etmopterus_caudistigmus,Tail-spot lanternshark,31,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
50,Etmopterus compagnoi,https://en.wikipedia.org/wiki/Etmopterus_compagnoi,Brown lanternshark,0,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
51,Etmopterus decacuspidatus,https://en.wikipedia.org/wiki/Etmopterus_decacuspidatus,Comb-tooth lanternshark,29,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
52,Etmopterus dianthus,https://en.wikipedia.org/wiki/Etmopterus_dianthus,Pink lanternshark,41,Etmopteridae,Lantern Sharks,,,,,,,,,,,,,,,,,,,
53,Etmopterus dislineatus,https://en.wikipedia.org/wiki/Etmopterus_dislineatus,Lined lanternshark,45,Etmopteridae,Lantern Sharks,590,800,,,,,,,,,,,,,,,,,
54,Etmopterus evansi,https://en.wikipedia.org/wiki/Etmopterus_evansi,Black-mouth lanternshark,26,Etmopteridae,Lantern Sharks,430,550,Western Australia and the Arafura Sea,,,,,,,,,,,,,,,,
55,Etmopterus fusus,https://en.wikipedia.org/wiki/Etmopterus_fusus,Pygmy lanternshark,26,Etmopteridae,Lantern Sharks,430,550,in the eastern Indian Ocean from northern Western Australia and possibly Java,,,,,,,,,,,,,,,,
56,Etmopterus gracilispinis,https://en.wikipedia.org/wiki/Etmopterus_gracilispinis,Broad-banded lanternshark,35,Etmopteridae,Lantern Sharks,70,1000,"western and southeast Atlantic, between latitudes 40°N and 45°S",,,,,,,,,,,,,,,,
57,Etmopterus granulosus,https://en.wikipedia.org/wiki/Etmopterus_granulosus,Southern lanternshark,60,Etmopteridae,Lantern Sharks,220,1460,in the southeast Pacific,10,13,,,,,,,,,,,,,,
58,Etmopterus hillianus,https://en.wikipedia.org/wiki/Etmopterus_hillianus,Caribbean lanternshark,50,Etmopteridae,Lantern Sharks,180,720,in the eastern and western Atlantic,,,,,,,,,,,,,,,,
59,Etmopterus joungi,https://en.wikipedia.org/wiki/Etmopterus_joungi,Short-fin smooth lanternshark,0,Etmopteridae,Lantern Sharks,430,550,off the northeastern coast of Taiwan,,,,,,,,,,,,,,,,
60,Etmopterus litvinovi,https://en.wikipedia.org/wiki/Etmopterus_litvinovi,Small-eye lanternshark,61,Etmopteridae,Lantern Sharks,630,1110,in the southeast Pacific off Peru and Chile,,,,,,,,,,,,,,,,
61,Etmopterus lucifer,https://en.wikipedia.org/wiki/Etmopterus_lucifer,Black-belly lanternshark,47,Etmopteridae,Lantern Sharks,150,1250,around the world in tropical to temperate seas,,,,,,,,,,,,,,,,
62,Etmopterus molleri,https://en.wikipedia.org/wiki/Etmopterus_molleri,Moller's lanternshark,46,Etmopteridae,Lantern Sharks,250,860,in the western Indian Ocean,,,,,,,,,,,,,,,,
63,Etmopterus perryi,https://en.wikipedia.org/wiki/Etmopterus_perryi,Dwarf lanternshark,20,Etmopteridae,Lantern Sharks,283,439,the upper continental slopes off Colombia and Venezuela,,,,,,,,,,,,,,,,
64,Etmopterus polli,https://en.wikipedia.org/wiki/Etmopterus_polli,African lanternshark,30,Etmopteridae,Lantern Sharks,300,1000,in the eastern Atlantic,,,,,,,,,,,,,,,,
65,Etmopterus princeps,https://en.wikipedia.org/wiki/Etmopterus_princeps,Great lanternshark,75,Etmopteridae,Lantern Sharks,570,2200,in the northeast and northwest Atlantic,,,,,,,,,,,,,,,,
66,Etmopterus pseudosqualiolus,https://en.wikipedia.org/wiki/Etmopterus_pseudosqualiolus,False lanternshark,0,Etmopteridae,Lantern Sharks,,,in the western Pacific from the Norfolk Ridge and Lord Howe Ridge off New Caledonia,,,,,,,,,,,,,,,,
67,Etmopterus pusillus,https://en.wikipedia.org/wiki/Etmopterus_pusillus,Smooth lanternshark,50,Etmopteridae,Lantern Sharks,0,1000,in the Atlantic and Pacific Oceans,10,,Smooth lanternsharks are often caught as bycatch in eastern Atlantic and Japanese commercial fisheries. The International Union for Conservation of Nature (IUCN) has evaluated this species as of Least Concern because of its wide distribution and limited threats.,17,,,,,,,,,,,,
68,Etmopterus pycnolepis,https://en.wikipedia.org/wiki/Etmopterus_pycnolepis,Dense-scale lanternshark,0,Etmopteridae,Lantern Sharks,,,in the southeast Pacific off Peru and Chile,,,,,,,,,,,,,,,,
69,Etmopterus robinsi,https://en.wikipedia.org/wiki/Etmopterus_robinsi,West Indian lanternshark,31,Etmopteridae,Lantern Sharks,400,800,in the western central Atlantic,,,,,,,,,,,,,,,,
70,Etmopterus schultzi,https://en.wikipedia.org/wiki/Etmopterus_schultzi,Fringe-fin lanternshark,0,Etmopteridae,Lantern Sharks,,,"in the western central Atlantic from Texas to Florida, northern Gulf of Mexico, and Mexico",,,,,,,,,,,,,,,,
71,Etmopterus sculptus,https://en.wikipedia.org/wiki/Etmopterus_sculptus,Sculpted lanternshark,0,Etmopteridae,Lantern Sharks,,,in Namibia to southern Mozambique,,,,,,,,,,,,,,,,
72,Etmopterus sentosus,https://en.wikipedia.org/wiki/Etmopterus_sentosus,Thorny lanternshark,27,Etmopteridae,Lantern Sharks,200,500,in the western Indian Ocean,,,,,,,,,,,,,,,,
73,Etmopterus sheikoi,https://en.wikipedia.org/wiki/Etmopterus_sheikoi,Rasp-tooth dogfish,0,Etmopteridae,Lantern Sharks,,360,on the Kyushu-Palau Ridge in the northwest Pacific Ocean,,,,,,,,,,,,,,,,
74,Etmopterus spinax,https://en.wikipedia.org/wiki/Etmopterus_spinax,Velvet-belly lanternshark,45,Etmopteridae,Lantern Sharks,20,2490,from Iceland and Norway to Gabon and South Africa,6,20,"This species has virtually no commercial value, but large numbers are caught as bycatch in deepwater commercial fisheries. Although it has been assessed as of Least Concern by the International Union for Conservation of Nature, the heavy fishing pressure throughout its range and its slow reproductive rate are raising conservation concerns.",,,,,,,,,,,,,
75,Etmopterus splendidus,https://en.wikipedia.org/wiki/Etmopterus_splendidus,Splendid lanternshark,30,Etmopteridae,Lantern Sharks,120,210,in the western Pacific,,,,,,,,,,,,,,,,
76,Etmopterus unicolor,https://en.wikipedia.org/wiki/Etmopterus_unicolor,Bristled lanternshark,55,Etmopteridae,Lantern Sharks,400,1380,"off Japan and New Zealand, and possibly also South Africa and Australia",9,18,,,,,,,,,,,,,,
77,Etmopterus viator,https://en.wikipedia.org/wiki/Etmopterus_viator,Traveller lanternshark,0,Etmopteridae,Lantern Sharks,,,"in the northern part of the Kerguelen Plateau, off New Zealand and South Africa",,,,,,,,,,,,,,,,
78,Etmopterus villosus,https://en.wikipedia.org/wiki/Etmopterus_villosus,Hawaiian lanternshark,46,Etmopteridae,Lantern Sharks,400,910,around the Hawaiian Islands,,,,,,,,,,,,,,,,
79,Etmopterus virens,https://en.wikipedia.org/wiki/Etmopterus_virens,Green lanternshark,26,Etmopteridae,Lantern Sharks,196,915,found in the western central Atlantic Ocean,,,,,,,,,,,,,,,,
80,Trigonognathus kabeyai,https://en.wikipedia.org/wiki/Trigonognathus_kabeyai,Viper dogfish,54,Etmopteridae,Lantern Sharks,150,360,"in the Pacific Ocean off southern Japan, the Bonin Islands,Pacific Ocean off northern Taitung County and the Northwestern Hawaiian Islands",,26,"The viper dogfish has no economic value. It is very infrequently caught in commercial purse seines and bottom trawls targeting other species, though what effect, if any, fishing has on its population is unknown. As a result, the IUCN has listed it under Data Deficient",,,,,,,,,,,,,
81,Oxynotus bruniensis,https://en.wikipedia.org/wiki/Oxynotus_bruniensis,Prickly dogfish,75,Oxynotidae,Rough Sharks,45,1067,temperate Australian and New Zealand waters,,8,,,,,,,,,,,,,,
82,Oxynotus caribbaeus,https://en.wikipedia.org/wiki/Oxynotus_caribbaeus,Caribbean roughshark,50,Oxynotidae,Rough Sharks,400,450,on the upper continental slopes of the Caribbean Sea,,,"This species is an uncommon bycatch of bottom trawls, though insufficient information is available for the IUCN to assess its conservation status",,,,,,,,,,,,,
83,Oxynotus centrina,https://en.wikipedia.org/wiki/Oxynotus_centrina,Angular roughshark,150,Oxynotidae,Rough Sharks,60,600,"in the eastern Atlantic from Norway to South Africa, including the entire Mediterranean. They may also occur off Mozambique",10,12,,,,,,,,,,,,,,
84,Oxynotus japonicus,https://en.wikipedia.org/wiki/Oxynotus_japonicus,Japanese roughshark,65,Oxynotidae,Rough Sharks,150,350,Suruga Bay and the Enshunada Sea off Japan,,,"This shark is caught (and discarded) as bycatch by bottom trawlers throughout its entire limited range, and may be threatened given the declines in other bottom deep sea species in Suruga Bay",,,,,,,,,,,,,
85,Oxynotus paradoxus,https://en.wikipedia.org/wiki/Oxynotus_paradoxus,Sail-fin roughshark,120,Oxynotidae,Rough Sharks,265,720,in the eastern North Atlantic from Scotland to Senegal,,,"This species is an uncommon bycatch of bottom trawls, though there is insufficient information for the International Union for Conservation of Nature (IUCN) to assess its conservation status",,,,,,,,,,,,,
86,Centroscymnus coelolepis,https://en.wikipedia.org/wiki/Centroscymnus_coelolepis,Portuguese dogfish,100,Somniosidae,Sleeper Sharks,,3675,globally distributed,,29,"Valued for its liver oil and to a lesser extent meat, Portuguese dogfish are important to deepwater commercial fisheries operating off Portugal, the British Isles, Japan, and Australia. These fishing pressures and the low reproductive rate of this species have led the International Union for Conservation of Nature (IUCN) to assess it as Near Threatened.",,Deepest shark known,,,,,,,,,,,
87,Centroscymnus owstonii,https://en.wikipedia.org/wiki/Centroscymnus_owstonii,Rough-skin dogfish,120,Somniosidae,Sleeper Sharks,100,1500,"around the world on continental shelves in tropical, subtropical and temperate seas",,,,,,,,,,,,,,,,
88,Centroselachus crepidater,https://en.wikipedia.org/wiki/Centroselachus_crepidater,Long-nose velvet dogfish,130,Somniosidae,Sleeper Sharks,230,1500,circumglobally in southern hemisphere subtropical seas,,,,,,,,,,,,,,,,
89,Scymnodalatias albicauda,https://en.wikipedia.org/wiki/Scymnodalatias_albicauda,White-tail dogfish,110,Somniosidae,Sleeper Sharks,150,500,from the eastern Indian Ocean round southern Australia to New Zealand,,59,The whitetail dogfish is a rare species known only from a few specimens taken by tuna longliners and trawlers.,,very rare,,,,,,,,,,,
90,Scymnodalatias garricki,https://en.wikipedia.org/wiki/Scymnodalatias_garricki,Azores dogfish,0,Somniosidae,Sleeper Sharks,,,the Azores,,,,,very rare,,,,,,,,,,,
91,Scymnodalatias oligodon,https://en.wikipedia.org/wiki/Scymnodalatias_oligodon,Sparse-tooth dogfish,0,Somniosidae,Sleeper Sharks,,200,in the subtropical southeast Pacific,,,,,very rare,,,,,,,,,,,
92,Scymnodalatias sherwoodi,https://en.wikipedia.org/wiki/Scymnodalatias_sherwoodi,Sherwood's dogfish,80,Somniosidae,Sleeper Sharks,,,found only around New Zealand,,,,,very rare,,,,,,,,,,,
93,Scymnodon ichiharai,https://en.wikipedia.org/wiki/Scymnodon_ichiharai,Japanese velvet dogfish,65,Somniosidae,Sleeper Sharks,150,350,Suruga Bay and the Enshunada Sea off Japan,,,"This shark is caught (and discarded) as bycatch by bottom trawlers throughout its entire limited range, and may be threatened given the declines in other bottom deep sea species in Suruga Bay",,rare,,,,,,,,,,,
94,Scymnodon macracanthus,https://en.wikipedia.org/wiki/Scymnodon_macracanthus,Large-spine velvet dogfish,68,Somniosidae,Sleeper Sharks,650,920,"found on the lower continental slopes between latitudes 50°S and 54°S in the southeast Pacific Ocean from the Straits of Magellan, and the southwest Pacific from New Zealand",,,,,,,,,,,,,,,,
95,Scymnodon plunketi,https://en.wikipedia.org/wiki/Scymnodon_plunketi,Plunket's shark,130,Somniosidae,Sleeper Sharks,220,1550,"found around south eastern Australia, and New Zealand",,,,,,,,,,,,,,,,
96,Scymnodon ringens,https://en.wikipedia.org/wiki/Scymnodon_ringens,Knife-tooth dogfish,110,Somniosidae,Sleeper Sharks,200,1600,"found in the eastern Atlantic, from Scotland to Spain, Portugal, and Senegal, and the southwest Pacific from New Zealand",,,,,,,,,,,,,,,,
97,Somniosus antarcticus,https://en.wikipedia.org/wiki/Somniosus_antarcticus,Southern sleeper shark,440,Somniosidae,Sleeper Sharks,400,1100,"found in the southern Atlantic, Indian, and Pacific oceans",,,This dogfish is sometimes taken as bycatch in the orange roughy and Patagonian toothfish fisheries; whether this poses a threat to the species is currently unknown,,,,,,,,,,,,,
98,Somniosus longus,https://en.wikipedia.org/wiki/Somniosus_longus,Frog shark,143,Somniosidae,Sleeper Sharks,120,1116,"has been recorded off the coasts of Japan, New Zealand, and possibly Salas y Gómez, as well as the Nazca Ridge",,,,,very rare,,,,,,,,,,,
99,Somniosus microcephalus,https://en.wikipedia.org/wiki/Somniosus_microcephalus,Greenland shark,730,Somniosidae,Sleeper Sharks,,,mostly restricted to the waters of the North Atlantic Ocean and Arctic Ocean,10,,,,,"As an adaptation to living at depth,it has a high concentration of trimethylamine N-oxide in its tissues, which causes the meat to be toxic.Greenland shark flesh treated to reduce toxin levels is eaten in Iceland as a delicacy known as kæstur hákarl",,,,,,,,,,
100,Somniosus pacificus,https://en.wikipedia.org/wiki/Somniosus_pacificus,Pacific sleeper shark,700,Somniosidae,Sleeper Sharks,0,2000,found in the North Pacific on continental shelves and slopes in Arctic and temperate waters between latitudes 70°N and 22°N,10,,,,,,,,,,,,,,,
101,Somniosus rostratus,https://en.wikipedia.org/wiki/Somniosus_rostratus,Little sleeper shark,143,Somniosidae,Sleeper Sharks,180,2200,"found in the northeast Atlantic, western Mediterranean, and western Pacific around New Zealand",8,17,"S. rostratus is occasionally taken on longlines and in bottom trawls in the eastern Atlantic. It is often recorded under the category ""sleeper sharks"" or ""sharks"". It is often discarded at sea when caught on the Mediterranean coast of Spain and not landed. Post-discard survival is likely very rare, though. The fish has also been historically fished for off the coast of Portugal, however by 1996 this industry had all but ended. This animal is also caught as bycatch of general demersal and black scabbardfish fisheries in the Azores. These threats are compounded by the fact that, like other Squaloid sharks, the Little Sleeper shark is likely to be slow to mature, and the relatively small range of the fish.",,,,,,,,,,,,,
102,Zameus squamulosus,https://en.wikipedia.org/wiki/Zameus_squamulosus,Velvet dogfish,84,Somniosidae,Sleeper Sharks,0,2000,found around the world between latitudes 64°N and 48°S,,,,,,Zameus squamulosus has photophores on its ventral epidermis.,,,,,,,,,,