@ca-plant-list/ca-plant-list 0.4.38 → 0.4.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/exceptions.json +9 -0
- package/data/inatobsphotos.csv +19 -9
- package/data/inattaxonphotos.csv +147 -112
- package/data/synonyms.csv +1 -0
- package/data/taxa.csv +52 -50
- package/lib/taxonomy/taxon.js +1 -1
- package/lib/tools/rpi.js +45 -14
- package/package.json +2 -2
package/data/synonyms.csv
CHANGED
|
@@ -550,6 +550,7 @@ Cuscuta salina var. major,Cuscuta pacifica var. pacifica
|
|
|
550
550
|
Cuscuta subinclusa var. abbreviata,Cuscuta pacifica var. pacifica
|
|
551
551
|
Cynoglossum grande,Adelinia grandis
|
|
552
552
|
Cyperus alternifolius subsp. flabelliformis,Cyperus involucratus,INAT
|
|
553
|
+
Cyperus brevifolius,Kyllinga brevifolia,INAT
|
|
553
554
|
Cyperus diandrus var. castaneus,Cyperus niger
|
|
554
555
|
Cyperus ferax,Cyperus odoratus
|
|
555
556
|
Cyperus hansenii,Cyperus strigosus
|
package/data/taxa.csv
CHANGED
|
@@ -13,7 +13,7 @@ Acacia paradoxa,kangaroothorn,X,,,,,11654,37,75251,9021,true,,acacia-paradoxa-pr
|
|
|
13
13
|
Acacia redolens,,X,,,,,11661,8999,75254,9039,true
|
|
14
14
|
Acacia retinodes,everblooming acacia,X,,,,,11662,39,57040,9041,true
|
|
15
15
|
Acacia verticillata,star acacia,X,,,,,11680,40,57037,9092,true
|
|
16
|
-
Acaena californica,California sheepburr,N,,,,,11685,14543,61224,9107
|
|
16
|
+
Acaena californica,California sheepburr,N,,,,,11685,14543,61224,9107,,California Sheepburr
|
|
17
17
|
Acanthomintha lanceolata,Santa Clara thornmint,N,,,,,11726,50,61794,62120,,Santa Clara Thornmint,,71,4.2,,,S4,G4
|
|
18
18
|
Acer campestre,hedge maple,X,,,,,11732,8451,56193,9166
|
|
19
19
|
Acer glabrum var. glabrum,mountain maple,N,perennial,green,5,6,53496,11268,80298,44218,,Mountain Maple
|
|
@@ -121,7 +121,7 @@ Anemone occidentalis,white pasqueflower,N,perennial,white,5,9,13385,357,60482,98
|
|
|
121
121
|
Anemopsis californica,yerba mansa,N,,,,,13392,360,60241,9906,true,Yerba Mansa
|
|
122
122
|
Angelica breweri,Brewer's angelica,N,perennial,white,6,8,13405,363,75447,202054,,Brewer's Angelica
|
|
123
123
|
Angelica californica,,N,,,,,13406,364,75448,211125,,California Angelica
|
|
124
|
-
Angelica capitellata,ranger's buttons,N,perennial,white,7,8,101118,13431,704166,202056
|
|
124
|
+
Angelica capitellata,ranger's buttons,N,perennial,white,7,8,101118,13431,704166,202056,,Woollyhead Parsnip
|
|
125
125
|
Anisocarpus madioides,,N,,,,,77551,10770,53137,202061,true,Woodland Madia
|
|
126
126
|
Antennaria media,Rocky Mountain pussytoes,N,perennial,white,7,8,935,383,75466,202065,true,Alpine Pussytoes
|
|
127
127
|
Antennaria rosea subsp. rosea,rosy pussytoes,N,perennial,"white,pink",6,8,5718,388,79575,211615,true,Rosy Pussytoes
|
|
@@ -130,18 +130,18 @@ Anthoxanthum occidentale,,N,,,,,13521,11332,75474,135418,true,California Vanilla
|
|
|
130
130
|
Anthriscus caucalis,bur-chervil,X,,white,,,13523,396,52846,202093
|
|
131
131
|
Antirrhinum kelloggii,,N,,,,,13568,401,165675,63029,Neogaerrhinum strictum,Kelloggs' Snapdragon
|
|
132
132
|
Antirrhinum majus,snapdragon,X,,,,,13557,404,48969,63033,true
|
|
133
|
-
Antirrhinum thompsonii,Sierra snapdragon,N,,pink,4,8,108978,14286,168306,207994,Sairocarpus multiflorus
|
|
133
|
+
Antirrhinum thompsonii,Sierra snapdragon,N,,pink,4,8,108978,14286,168306,207994,Sairocarpus multiflorus,Withered Snapdragon
|
|
134
134
|
Antirrhinum vexillocalyculatum subsp. vexillocalyculatum,,N,annual,purple,6,8,88873,10499,840919,206530,Sairocarpus vexillocalyculatus subsp. vexillocalyculatus
|
|
135
135
|
Aphanes occidentalis,western lady's mantle,N,annual,,3,5,13608,420,1452907,10074,true,Lady's Mantle
|
|
136
|
-
Aphyllon californicum subsp. jepsonii,,N,,,,,103325,13438,802459,202108,Orobanche californica subsp. jepsonii
|
|
137
|
-
Aphyllon corymbosum,flat-top broomrape,N,annual,"pink,purple",6,8,103309,13440,802501,202109,Orobanche corymbosa
|
|
136
|
+
Aphyllon californicum subsp. jepsonii,,N,,,,,103325,13438,802459,202108,Orobanche californica subsp. jepsonii,Jepson's Broomrape
|
|
137
|
+
Aphyllon corymbosum,flat-top broomrape,N,annual,"pink,purple",6,8,103309,13440,802501,202109,Orobanche corymbosa,Flat-top Broomrape
|
|
138
138
|
Aphyllon epigalium subsp. epigalium,,N,,,,,103327,13527,809377,211137
|
|
139
|
-
Aphyllon fasciculatum,clustered broom-rape,N,,,,,100018,13441,802543,63056,Orobanche fasciculata
|
|
139
|
+
Aphyllon fasciculatum,clustered broom-rape,N,,,,,100018,13441,802543,63056,Orobanche fasciculata,Fascicled Broom Rape
|
|
140
140
|
Aphyllon franciscanum,"yellow clustered broom-rape,Franciscan broom-rape",N,,,,,84892,14625,1303043,399790
|
|
141
|
-
Aphyllon pinorum,pinewoods broom-rape,N,,,,,13618,13445,802557,63057,Orobanche pinorum
|
|
142
|
-
Aphyllon purpureum,naked broom-rape,N,annual,purple,3,7,103312,13529,739040,202115,Orobanche uniflora subsp. occidentalis
|
|
143
|
-
Aphyllon tuberosum,bulbous broom-rape,N,,,,,13614,13446,809373,63058,Orobanche bulbosa
|
|
144
|
-
Aphyllon vallicola,hemp broom-rape,N,,,,,85145,14626,938507,416916,Orobanche vallicola
|
|
141
|
+
Aphyllon pinorum,pinewoods broom-rape,N,,,,,13618,13445,802557,63057,Orobanche pinorum,Conifer Broomrape
|
|
142
|
+
Aphyllon purpureum,naked broom-rape,N,annual,purple,3,7,103312,13529,739040,202115,Orobanche uniflora subsp. occidentalis,Naked Broomrape
|
|
143
|
+
Aphyllon tuberosum,bulbous broom-rape,N,,,,,13614,13446,809373,63058,Orobanche bulbosa,Chaparral Broomrape
|
|
144
|
+
Aphyllon vallicola,hemp broom-rape,N,,,,,85145,14626,938507,416916,Orobanche vallicola,Hillside Broomrape
|
|
145
145
|
Apiastrum angustifolium,,N,,,,,13619,422,58777,202120,,Mock Parsley
|
|
146
146
|
Apium graveolens,celery,X,,,,,13622,423,58788,202122
|
|
147
147
|
Apium nodiflorum,,X,,,,,13623,424,332963,211138
|
|
@@ -272,7 +272,7 @@ Bromus racemosus,smooth brome,X,,,,,16278,11440,75909,137276,true
|
|
|
272
272
|
Bromus rubens,foxtail chess,X,,,,,16281,13634,59210,137281,true
|
|
273
273
|
Bromus sitchensis var. carinatus,California brome,N,,,,,108589,13623,52700,375313,Bromus carinatus,Sitka Brome
|
|
274
274
|
Bromus sitchensis var. marginatus,mountain brome,N,,,,,108590,13624,159467,169226,Bromus carinatus var. marginatus
|
|
275
|
-
Bromus sitchensis var. maritimus,maritime brome,N,,,,,108591,13625,71142,377677,Bromus maritimus
|
|
275
|
+
Bromus sitchensis var. maritimus,maritime brome,N,,,,,108591,13625,71142,377677,Bromus maritimus,Maritime Brome
|
|
276
276
|
Bromus sterilis,poverty brome,X,,,,,16288,1216,57163,137298,true
|
|
277
277
|
Bromus tectorum,cheat grass,X,,,,,16290,1218,58369,137310,true,,bromus-tectorum-profile
|
|
278
278
|
Buddleja davidii,butterfly bush,X,,,,,16349,1222,75916,64039,true,,buddleja-davidii-profile
|
|
@@ -286,7 +286,7 @@ Calandrinia breweri,,N,,,,,16614,1249,68636,112280,true,Brewer's Calandrinia,,18
|
|
|
286
286
|
Calandrinia menziesii,red maids,N,,,,,95066,13205,400267,202564,,Red Maids
|
|
287
287
|
Calendula arvensis,field-marigold,X,,,,,1862,1252,59260,202566,true
|
|
288
288
|
Calendula officinalis,pot-marigold,X,,,,,1863,1253,75931,202567,true
|
|
289
|
-
Calibrachoa parviflora,wild petunia,U,,,,,16635,9592,159650,64106,true
|
|
289
|
+
Calibrachoa parviflora,wild petunia,U,,,,,16635,9592,159650,64106,true,Seaside Petunia
|
|
290
290
|
California macrophylla,,N,,,,,80427,10468,60554,11982,,Round-leaved Filaree
|
|
291
291
|
Callitriche heterophylla var. bolanderi,,N,,,,,55448,1257,60158,96979,,Bolander's Water-starwort
|
|
292
292
|
Callitriche longipedunculata,,N,,,,,16691,11443,75936,64127,true,Longstock Water-starwort
|
|
@@ -532,7 +532,7 @@ Cryptantha flaccida,,N,,,,,21228,2460,56989,203167,,Flaccid Cryptantha
|
|
|
532
532
|
Cryptantha hispidula,Napa cryptantha,N,annual,white,3,5,21237,2465,57703,203175,,Napa Cryptantha
|
|
533
533
|
Cryptantha hooveri,,N,,,,,21240,2468,57701,245944,,Hoover's Cryptantha,,525,1A,,,SH,GH
|
|
534
534
|
Cryptantha intermedia var. intermedia,,N,,,,,71933,11568,80627,203183
|
|
535
|
-
Cryptantha juniperensis,rigid cryptantha,N,,,,,103476,14557,769572,203205
|
|
535
|
+
Cryptantha juniperensis,rigid cryptantha,N,,,,,103476,14557,769572,203205,,Rigid Cryptantha
|
|
536
536
|
Cryptantha micromeres,,N,,,,,21263,2476,53027,203194,,Minute-flowered Cryptantha
|
|
537
537
|
Cryptantha microstachys,,N,,,,,21264,2477,57696,203195,,Tejon Cryptantha
|
|
538
538
|
Cryptantha muricata var. jonesii,,N,,,,,57144,11572,80631,203200,,Jones' Cryptantha
|
|
@@ -594,7 +594,7 @@ Delphinium patens subsp. patens,spreading larkspur,N,perennial,blue,3,6,50113,26
|
|
|
594
594
|
Delphinium recurvatum,valley larkspur,N,perennial,,,,22516,2673,58305,17087,true,Byron Larkspur,,222,1B.2,,,S2,G2?
|
|
595
595
|
Delphinium variegatum subsp. variegatum,royal larkspur,N,perennial,"blue,purple",3,5,50119,2682,50633,42157,true,Royal Larkspur
|
|
596
596
|
Dendromecon rigida,bush poppy,N,,,,,22541,2686,58224,17131,true,Bush Poppy
|
|
597
|
-
Deschampsia bolanderi,,N,,,,,108404,14866,1586235,397233,Scribneria bolanderi
|
|
597
|
+
Deschampsia bolanderi,,N,,,,,108404,14866,1586235,397233,Scribneria bolanderi,Scribner's Grass
|
|
598
598
|
Deschampsia cespitosa subsp. cespitosa,tufted hairgrass,N,,,,,50130,2689,61199,167041,true,Tufted Hair Grass
|
|
599
599
|
Deschampsia cespitosa subsp. holciformis,tufted hairgrass,N,,,,,50133,2690,61833,167045,true,California Hairgrass
|
|
600
600
|
Deschampsia danthonioides,annual hairgrass,N,,,,,22598,2691,57164,139100,true,Annual Hair Grass
|
|
@@ -612,22 +612,22 @@ Digitalis purpurea,foxglove,X,,,,,22930,2729,53983,68017,true,,digitalis-purpure
|
|
|
612
612
|
Digitaria ischaemum,,X,,,,,22954,2730,76658,139584,true
|
|
613
613
|
Digitaria sanguinalis,crabgrass,X,,,,,22962,2731,51633,139647,true
|
|
614
614
|
Diplacus aurantiacus,bush monkeyflower,N,,,,,23077,13456,777371,68185,true,Bush Monkey Flower
|
|
615
|
-
Diplacus bolanderi,,N,,,,,99039,13462,771812,203385,true
|
|
616
|
-
Diplacus douglasii,Douglas monkeyflower,N,,,,,99051,13428,771821,203391,true
|
|
617
|
-
Diplacus kelloggii,,N,,,,,99058,13472,771826,203395,true
|
|
618
|
-
Diplacus rattanii,Rattan monkeyflower,N,,,,,99072,13479,771830,203405,true
|
|
619
|
-
Diplacus tricolor,,N,,,,,99079,13482,771835,203410,true
|
|
615
|
+
Diplacus bolanderi,,N,,,,,99039,13462,771812,203385,true,Bolander's Monkeyflower
|
|
616
|
+
Diplacus douglasii,Douglas monkeyflower,N,,,,,99051,13428,771821,203391,true,Brownies
|
|
617
|
+
Diplacus kelloggii,,N,,,,,99058,13472,771826,203395,true,Kellogg's Monkeyflower
|
|
618
|
+
Diplacus rattanii,Rattan monkeyflower,N,,,,,99072,13479,771830,203405,true,Rattan's Monkeyflower
|
|
619
|
+
Diplacus tricolor,,N,,,,,99079,13482,771835,203410,true,Tricolor Monkeyflower
|
|
620
620
|
Dipsacus sativus,teasel,X,,,,,23137,2738,53028,203416,,,dipsacus-sativus-profile
|
|
621
|
-
Dipterostemon capitatus subsp. capitatus,blue dicks,N,corm,"blue,white",2,6,108595,13629,1196824,375261
|
|
621
|
+
Dipterostemon capitatus subsp. capitatus,blue dicks,N,corm,"blue,white",2,6,108595,13629,1196824,375261,,Blue Dicks
|
|
622
622
|
Dirca occidentalis,western leatherwood,N,,,,,23143,2739,50315,17368,true,Western Leatherwood,,567,1B.2,,,S2,G2
|
|
623
623
|
Distichlis spicata,saltgrass,N,,,,,23161,2743,58372,139820,true,Saltgrass
|
|
624
624
|
Dittrichia graveolens,stinkwort,X,,,,,2454,8482,58822,203428,true,,dittrichia-graveolens-profile
|
|
625
|
-
Doellingeria breweri,Brewer's aster,N,perennial,yellow,7,9,108971,14289,1266313,389927,Eucephalus breweri
|
|
625
|
+
Doellingeria breweri,Brewer's aster,N,perennial,yellow,7,9,108971,14289,1266313,389927,Eucephalus breweri,Brewer's Aster
|
|
626
626
|
Downingia bella,,N,annual,blue,3,5,23273,2766,60160,203436,,Hoover's Downingia
|
|
627
627
|
Downingia concolor var. concolor,maroonspot calicoflower,N,annual,blue,4,7,57811,2772,80674,206745,,Maroonspot Calicoflower
|
|
628
628
|
Downingia cuspidata,,N,annual,blue,3,6,101864,2773,60163,203440,,Toothed Calicoflower
|
|
629
629
|
Downingia insignis,,N,annual,blue,3,5,23278,2776,60164,203442,,Harlequin Calicoflower
|
|
630
|
-
Downingia ornatissima var. mirabilis,,N,annual,blue,4,5,84766,14563,,372404
|
|
630
|
+
Downingia ornatissima var. mirabilis,,N,annual,blue,4,5,84766,14563,,372404,,Folded Calicoflower
|
|
631
631
|
Downingia pulchella,,N,annual,blue,4,6,23282,2782,60167,203445,,Flatface Calicoflower
|
|
632
632
|
Draba cuneifolia,,N,,,,,23332,2798,1138678,17510,true,Wedgeleaf Draba
|
|
633
633
|
Draba verna,spring whitlow-grass,X,,white,2,5,23442,2816,55823,17645,true
|
|
@@ -677,7 +677,7 @@ Elymus stebbinsii,,N,,,,,101964,2944,63331,140192,true,Stebbins' Wheat Grass
|
|
|
677
677
|
Elymus trachycaulus subsp. trachycaulus,slender wheatgrass,N,,,,,50280,2947,636557,167179,true,Slender Wheatgrass
|
|
678
678
|
Elymus triticoides,,N,,,,,24181,11648,57184,140206,Leymus triticoides,Creeping Wild Rye
|
|
679
679
|
Emmenanthe penduliflora,whispering bells,N,annual,"white,yellow",4,7,24223,2956,58173,203529,,Whispering Bells
|
|
680
|
-
Emmenanthe rosea,,N,,,,,24224,14564,1597339,206758
|
|
680
|
+
Emmenanthe rosea,,N,,,,,24224,14564,1597339,206758,,Whisperingbells
|
|
681
681
|
Enemion occidentale,,N,,,,,24250,9551,76818,17850,true,Western Rue-anemone
|
|
682
682
|
Enemion stipitatum,,N,,,,,24252,9552,76819,17852,true,Siskiyou Rue-anemone
|
|
683
683
|
Ephedra californica,,N,,,,,24275,2972,57890,59599,true,California Jointfir
|
|
@@ -775,22 +775,22 @@ Eryngium vaseyi var. vallicola,,N,,,,,58851,11675,80888,211709
|
|
|
775
775
|
Erysimum capitatum var. angustatum,Contra Costa wallflower,N,,,,,58866,9942,119564,47093,,,,790,1B.1,CE,FE,S1,G5T1
|
|
776
776
|
Erysimum capitatum var. capitatum,western wallflower,N,,"orange,yellow",3,9,58866,9943,50627,47096,true,Sanddune Wallflower
|
|
777
777
|
Erysimum perenne,mountain wallflower,N,perennial,yellow,6,9,25125,11678,77072,18046,true,Sanddune Wallflower
|
|
778
|
-
Erythranthe androsacea,,N,,,,,99088,13487,771845,203774,true
|
|
778
|
+
Erythranthe androsacea,,N,,,,,99088,13487,771845,203774,true,Rockjasmine Monkeyflower
|
|
779
779
|
Erythranthe arvensis,"villous-bracted monkeyflower,field monkeyflower",N,,yellow,4,7,99091,13552,771848,206807,true
|
|
780
|
-
Erythranthe breweri,Brewer's monkeyflower,N,annual,pink,6,8,99101,13489,548766,203776,true
|
|
780
|
+
Erythranthe breweri,Brewer's monkeyflower,N,annual,pink,6,8,99101,13489,548766,203776,true,Brewer's Monkeyflower
|
|
781
781
|
Erythranthe cardinalis,scarlet monkeyflower,N,,red,5,9,25147,13490,319974,68615,true,Scarlet Monkeyflower
|
|
782
782
|
Erythranthe erubescens,blushing monkeyflower,N,perennial,pink,6,8,100565,13558,771871,231800,true
|
|
783
|
-
Erythranthe floribunda,many-flowered monkeyflower,N,,yellow,4,8,99122,13492,701582,203778,true
|
|
783
|
+
Erythranthe floribunda,many-flowered monkeyflower,N,,yellow,4,8,99122,13492,701582,203778,true,Many-flowered Monkeyflower
|
|
784
784
|
Erythranthe grandis,magnificent seep monkeyflower,N,,yellow,5,7,99129,13560,771876,206813,true
|
|
785
785
|
Erythranthe guttata,seep monkeyflower,N,,yellow,4,9,99131,13493,470643,203779,true,Seep Monkey Flower
|
|
786
|
-
Erythranthe inconspicua,small-flowered monkeyflower,N,,pink,4,7,99135,13416,771882,203781,true
|
|
787
|
-
Erythranthe laciniata,,N,,,,,99142,13417,546557,203784,true
|
|
788
|
-
Erythranthe latidens,broad-tooth monkeyflower,N,,"white,pink",4,6,99144,13495,771886,203785,true
|
|
786
|
+
Erythranthe inconspicua,small-flowered monkeyflower,N,,pink,4,7,99135,13416,771882,203781,true,Small-flowered Monkeyflower,,1092,4.3,,,S4,G4
|
|
787
|
+
Erythranthe laciniata,,N,,,,,99142,13417,546557,203784,true,Cut-leaved Monkeyflower,,1093,4.3,,,S4,G4
|
|
788
|
+
Erythranthe latidens,broad-tooth monkeyflower,N,,"white,pink",4,6,99144,13495,771886,203785,true,Broadtooth Monkeyflower
|
|
789
789
|
Erythranthe microphylla,small leaved monkeyflower,N,,,,,99152,13498,453717,206815,true
|
|
790
790
|
Erythranthe moschata,musk monkeyflower,N,perennial,yellow,6,8,99156,13494,453644,203788,true,Musk Flower
|
|
791
791
|
Erythranthe nasuta,shy monkeyflower,N,,yellow,3,7,99158,13637,545973,203789,true
|
|
792
|
-
Erythranthe primuloides,primrose monkeyflower,N,perennial,yellow,6,8,99174,13501,635401,203794,true
|
|
793
|
-
Erythranthe tilingii,Tiling's monkeyflower,N,perennial,yellow,6,9,99191,13507,555996,203798,true
|
|
792
|
+
Erythranthe primuloides,primrose monkeyflower,N,perennial,yellow,6,8,99174,13501,635401,203794,true,Primrose Monkeyflower
|
|
793
|
+
Erythranthe tilingii,Tiling's monkeyflower,N,perennial,yellow,6,9,99191,13507,555996,203798,true,Larger Mountain Monkeyflower
|
|
794
794
|
Eschscholzia caespitosa,tufted poppy,N,,,,,25205,3511,58954,18096,true,Tufted Poppy
|
|
795
795
|
Eschscholzia californica,California poppy,N,,,,,25206,3512,48225,18097,true,California Poppy
|
|
796
796
|
Eschscholzia rhombipetala,,N,,,,,25218,3527,77087,18112,true,Diamond-petaled California Poppy,,806,1B.1,,,S1,G1
|
|
@@ -895,7 +895,7 @@ Gratiola ebracteata,bractless hedge hyssop,N,,,,,27292,3952,77300,69880,true,Bra
|
|
|
895
895
|
Grindelia camporum,,N,,yellow,,,3099,3956,56953,206865,,Great Valley Gumweed
|
|
896
896
|
Grindelia hirsutula,,N,,yellow,,,3107,3960,55364,204046,true,Gumweed
|
|
897
897
|
Grindelia stricta var. angustifolia,marsh gumplant,N,,yellow,,,77358,3968,61991,206870,,Marsh Gumplant
|
|
898
|
-
Gruvelia pusilla,little combseed,N,,,,,105901,14570,57694,271340
|
|
898
|
+
Gruvelia pusilla,little combseed,N,,,,,105901,14570,57694,271340,,Little Pectocarya
|
|
899
899
|
Gutierrezia californica,California matchweed,N,,,,,3140,3977,57978,204054,true,California Matchweed
|
|
900
900
|
Hackelia micrantha,Jessica's stickseed,N,perennial,blue,6,8,27534,3990,77323,204095,,Jessica Sticktight
|
|
901
901
|
Hainardia cylindrica,,X,,,,,27553,3996,1477514,141647,true
|
|
@@ -1028,6 +1028,7 @@ Kniphofia uvaria,,X,,,,,29921,8635,56035,204506,,,kniphofia-uvaria-profile
|
|
|
1028
1028
|
Koeleria gerardi,annual junegrass,X,,,,,29957,13237,167999,231850,Rostraria cristata
|
|
1029
1029
|
Koeleria macrantha,junegrass,N,,,,,29951,4539,57183,142292,true,Junegrass
|
|
1030
1030
|
Kopsiopsis strobilacea,California ground-cone,N,,,,,93802,11786,77612,71163,true,California Ground-cone
|
|
1031
|
+
Kyllinga brevifolia,shortleaf spikesedge,X,,,,,30044,4545,489795,104894,true
|
|
1031
1032
|
Lactuca saligna,,X,,,,,3688,4549,53105,204511,true
|
|
1032
1033
|
Lactuca serriola,prickly lettuce,X,,,,,3690,4550,53107,204513,true
|
|
1033
1034
|
Lactuca virosa,,X,,,,,3697,4552,53108,204515,true
|
|
@@ -1084,7 +1085,7 @@ Leptochloa fusca subsp. fascicularis,bearded sprangletop,N,,,,,80525,11795,13772
|
|
|
1084
1085
|
Leptochloa fusca subsp. uninervia,Mexican sprangletop,N,,,,,80527,11796,1377299,167410,true,Mexican Sprangletop
|
|
1085
1086
|
Leptosiphon ambiguus,serpentine linanthus,N,,pink,4,5,80953,8945,58970,71346,,Serpentine Leptosiphon,,1717,4.2,,,S4,G4
|
|
1086
1087
|
Leptosiphon androsaceus,,N,,"white,pink",4,6,81151,9556,58969,71347,,False Baby Stars
|
|
1087
|
-
Leptosiphon aureus,,N,,,,,84733,10055,854272,71348
|
|
1088
|
+
Leptosiphon aureus,,N,,,,,84733,10055,854272,71348,,,,1716,4.2,,,S4?,G4?
|
|
1088
1089
|
Leptosiphon bicolor,bicolored linanthus,N,,"pink,white",3,6,81148,9559,64245,71349,,Bicolor Linanthus
|
|
1089
1090
|
Leptosiphon bolanderi,,N,,,,,81742,9560,77682,71350,,Bolander's Linanthus
|
|
1090
1091
|
Leptosiphon ciliatus,whisker brush,N,,"pink,white",3,7,81150,10056,77684,71352,,Whisker Brush
|
|
@@ -1165,7 +1166,7 @@ Lupinus lepidus,dwarf lupine,N,perennial,blue,,,31941,,62689,25001,true,Pacific
|
|
|
1165
1166
|
Lupinus lepidus var. confertus,,N,,,,,61358,5166,81066,49217,true,Crowded Lupine
|
|
1166
1167
|
Lupinus lepidus var. lobbii,Lobb's dwarf lupine,N,perennial,blue,6,8,61363,5168,81068,49221,true,Donner Lake Lupine
|
|
1167
1168
|
Lupinus lepidus var. sellulus,,N,,,,,61365,5170,81070,49224,true,Stool Lupine
|
|
1168
|
-
Lupinus littoralis var. variicolor,,N,,,,,80538,14304,,49237,true
|
|
1169
|
+
Lupinus littoralis var. variicolor,,N,,,,,80538,14304,,49237,true,Manycolored Lupine
|
|
1169
1170
|
Lupinus luteolus,butter lupine,N,,,,,31956,5176,77875,25020,true,Pale Yellow Lupine
|
|
1170
1171
|
Lupinus microcarpus var. densiflorus,,N,annual,"yellow,white",4,6,76668,5184,57058,49248,true,Dense Flowered Platycarpos
|
|
1171
1172
|
Lupinus microcarpus var. microcarpus,chick lupine,N,annual,"pink,blue",3,6,75776,5186,58159,204796,true,Valley Lupine
|
|
@@ -1194,7 +1195,7 @@ Madia exigua,threadstem madia,N,,,,,4045,5289,56971,204827,true,Meager Tarweed
|
|
|
1194
1195
|
Madia gracilis,slender tarweed,N,,yellow,,,4047,5291,53135,204829,true,Gumweed
|
|
1195
1196
|
Madia radiata,showy madia,N,,,,,4053,5296,77924,204832,true,Showy Golden Madia,,1054,1B.1,,,S3,G3
|
|
1196
1197
|
Madia sativa,coast tarweed,N,,yellow,,,4055,5298,53143,204833,true,Coast Tarweed
|
|
1197
|
-
Maianthemum racemosum subsp. amplexicaule,false Solomon's seal,N,,,,,51514,10097,53012,207757,true
|
|
1198
|
+
Maianthemum racemosum subsp. amplexicaule,false Solomon's seal,N,,,,,51514,10097,53012,207757,true,Large False Solomon's Seal
|
|
1198
1199
|
Maianthemum stellatum,,N,,,,,32497,9629,53268,204838,true,False Solomon Seal
|
|
1199
1200
|
Malacothamnus arcuatus var. elmeri,,N,perennial,pink,4,5,108345,14681,1497404,412621,,Eastern Bewildering Bushmallow,,1065,1B.2,,,S2,G2
|
|
1200
1201
|
Malacothamnus fremontii var. fremontii,long-haired unfurled bushmallow,N,perennial,pink,5,6,108341,14689,70398,400947,Malacothamnus fremontii
|
|
@@ -1239,7 +1240,7 @@ Mentha spicata,spearmint,X,,,,,33209,10111,62652,72095
|
|
|
1239
1240
|
Mentha suaveolens,pineapple mint,X,,,,,33212,5417,77993,72096
|
|
1240
1241
|
Mentzelia affinis,,N,,,,,33219,5418,58194,204901,true,Yellowcomet
|
|
1241
1242
|
Mentzelia dispersa,,N,,,,,33236,5423,58196,204910,true,Bushy Blazingstar
|
|
1242
|
-
Mentzelia laevicaulis var. laevicaulis,blazingstar,N,,,,,61864,14741,241687,254441,true
|
|
1243
|
+
Mentzelia laevicaulis var. laevicaulis,blazingstar,N,,,,,61864,14741,241687,254441,true,Blazing Star
|
|
1243
1244
|
Mentzelia lindleyi,,N,,,,,33255,5432,53923,204917,true,Lindley's Blazing Star
|
|
1244
1245
|
Mentzelia micrantha,,N,,,,,33259,5433,58933,204920,true,San Luis Blazingstar
|
|
1245
1246
|
Mentzelia pectinata,,N,,,,,33274,5439,58198,204927,true,San Joaquin Blazingstar
|
|
@@ -1259,7 +1260,7 @@ Microseris douglasii subsp. tenella,,N,,,,,6164,5473,60143,204958,true,Douglas'
|
|
|
1259
1260
|
Microseris elegans,,N,,,,,4152,5474,58032,204960,true,Elegant Silverpuffs
|
|
1260
1261
|
Microseris sylvatica,,N,,,,,4160,5481,78037,204965,true,Sylvan Microseris,,1969,4.2,,,S4,G4
|
|
1261
1262
|
Microsteris gracilis,,N,,,,,33480,10117,61210,72169,,Slender Phlox
|
|
1262
|
-
Mimetanthe pilosa,,N,,,,,33500,13513,165392,72172,true
|
|
1263
|
+
Mimetanthe pilosa,,N,,,,,33500,13513,165392,72172,true,False Monkeyflower
|
|
1263
1264
|
Mirabilis laevis var. crassifolia,California four o'clock,N,,,,,80351,10131,81126,130504,true,California Four O'clock
|
|
1264
1265
|
Modiola caroliniana,,X,,,,,33863,5603,78087,26153,true
|
|
1265
1266
|
Moehringia macrophylla,large-leaved sandwort,N,,,,,33866,5604,61884,116321,true,Large-leaved Sandwort
|
|
@@ -1332,6 +1333,7 @@ Oenanthe sarmentosa,,N,,,,,34904,5881,60127,205153,,Pacific Oenanthe
|
|
|
1332
1333
|
Oenothera biennis,common evening-primrose,X,,,,,34975,5882,62207,26661,true
|
|
1333
1334
|
Oenothera deltoides subsp. cognata,,N,,,,,51746,5891,80072,43163,true,Birdcage Evening Primrose
|
|
1334
1335
|
Oenothera deltoides subsp. howellii,Antioch Dunes evening-primrose,N,,,,,51748,5893,80074,43166,true,Antioch Dunes Evening Primrose,,1179,1B.1,CE,FE,S1,G5T1
|
|
1336
|
+
Oenothera deltoides subsp. julpunensis,,N,,,,,,,1631990,438449,,,,5767,1B.1,,,S1,G5T1
|
|
1335
1337
|
Oenothera elata subsp. hookeri,evening primrose,N,,,,,51752,5897,51814,43171,true,Hooker's Evening Primrose
|
|
1336
1338
|
Oenothera glazioviana,,X,,,,,35004,5899,62208,26721,true
|
|
1337
1339
|
Oenothera laciniata,,X,,,,,35016,5900,78243,26747,true
|
|
@@ -1601,14 +1603,14 @@ Ranunculus sceleratus var. sceleratus,,X,annual,yellow,4,6,64987,11983,81341,509
|
|
|
1601
1603
|
Ranunculus sceleratus,cursed crowsfoot,N,,,,,40971,7059,59301,29675,true,Cursed Buttercup
|
|
1602
1604
|
Raphanus raphanistrum,jointed charlock,X,,,,,40991,7063,55411,29701,true
|
|
1603
1605
|
Raphanus sativus,wild radish,X,,,,,40992,7064,995125,29702,true,,raphanus-sativus-profile
|
|
1604
|
-
Ravenella exigua,chaparral harebell,N,,,,,84837,14672,1342787,412341
|
|
1605
|
-
Ravenella griffinii,,N,,,,,84836,14796,1342789,412342
|
|
1606
|
-
Ravenella sharsmithiae,,N,,,,,108392,14673,1342786,432222
|
|
1606
|
+
Ravenella exigua,chaparral harebell,N,,,,,84837,14672,1342787,412341,,Chaparral Harebell,,265,1B.2,,,S2,G2
|
|
1607
|
+
Ravenella griffinii,,N,,,,,84836,14796,1342789,412342,,Griffin's Bellflower
|
|
1608
|
+
Ravenella sharsmithiae,,N,,,,,108392,14673,1342786,432222,,Sharsmith's Harebell,,267,1B.2,,,S1,G1G2
|
|
1607
1609
|
Rhamnus alaternus,Italian buckthorn,X,,,,,81104,9447,82856,29726,true,,rhamnus-alaternus-profile
|
|
1608
1610
|
Rhamnus crocea,spiny redberry,N,,,,,41069,7075,57243,29736,true,Spiny Redberry
|
|
1609
1611
|
Rhamnus ilicifolia,holly-leaf redberry,N,,,,,41070,7076,58308,29743,true,Hollyleaf Redberry
|
|
1610
1612
|
Rhaponticum repens,Russian knapweed,X,,,,,103802,13621,339502,201832,Acroptilon repens,,acroptilon-repens-profile
|
|
1611
|
-
Rhinotropis californica,California milkwort,N,,,,,107535,14636,876453,265222,true
|
|
1613
|
+
Rhinotropis californica,California milkwort,N,,,,,107535,14636,876453,265222,true,California Milkwort
|
|
1612
1614
|
Rhodiola integrifolia subsp. integrifolia,western roseroot,N,perennial,red,5,8,80583,10300,80170,43540,true,Western Roseroot
|
|
1613
1615
|
Rhus aromatica,skunkbrush,N,,,,,41175,11056,58738,29816,,Fragrant Sumac
|
|
1614
1616
|
Ribes amarum,bitter gooseberry,N,,,,,41372,7099,53433,29899,true,Bitter Gooseberry
|
|
@@ -1657,9 +1659,9 @@ Ruppia maritima,ditch-grass,N,,,,,42451,7239,61090,205767,true,Beaked Tasselweed
|
|
|
1657
1659
|
Rytidosperma caespitosum,,X,,,,,80883,12000,78918,148167,,,rytidosperma-caespitosum-profile
|
|
1658
1660
|
Rytidosperma penicillatum,hairy oat grass,X,,,,,80882,10684,78919,148212,true,,danthonia-pilosa-profile
|
|
1659
1661
|
Rytidosperma racemosum,,X,,,,,80333,11062,78920,148220,true
|
|
1660
|
-
Sabulina californica,California sandwort,N,,,,,99696,14643,836856,385381,Minuartia californica
|
|
1661
|
-
Sabulina douglasii,Douglas sandwort,N,,,,,99699,14645,836863,207256,Minuartia douglasii
|
|
1662
|
-
Sabulina pusilla,least sandwort,N,,,,,99706,14650,836888,385383,Minuartia pusilla
|
|
1662
|
+
Sabulina californica,California sandwort,N,,,,,99696,14643,836856,385381,Minuartia californica,California Sandwort
|
|
1663
|
+
Sabulina douglasii,Douglas sandwort,N,,,,,99699,14645,836863,207256,Minuartia douglasii,Sandwort
|
|
1664
|
+
Sabulina pusilla,least sandwort,N,,,,,99706,14650,836888,385383,Minuartia pusilla,Annual Sandwort
|
|
1663
1665
|
Sagina apetala,dwarf pearlwort,X,,,,,42572,7243,56998,109681,true
|
|
1664
1666
|
Sagina decumbens subsp. occidentalis,western pearlwort,N,,,,,52717,7244,57000,205773,true,Western Pearlwort
|
|
1665
1667
|
Sagina procumbens,matted pearlwort,X,,,,,42584,7246,55667,109697,true
|
|
@@ -1796,7 +1798,7 @@ Spiranthes romanzoffiana,,N,,,,,45264,7741,50743,206063,true,Irish Lady's-tresse
|
|
|
1796
1798
|
Sporobolus airoides,alkali sacaton,N,,,,,45286,7744,60313,149026,true,Alkali Sacaton
|
|
1797
1799
|
Sporobolus alterniflorus,saltwater cordgrass,X,,,,,82872,14901,772903,432224,Spartina alterniflora
|
|
1798
1800
|
Sporobolus densiflorus,dense-flowered cordgrass,X,,,,,108405,14902,169300,432225,Spartina densiflora
|
|
1799
|
-
Sporobolus foliosus,California cordgrass,N,,,,,82873,14903,772992,208714,Spartina foliosa
|
|
1801
|
+
Sporobolus foliosus,California cordgrass,N,,,,,82873,14903,772992,208714,Spartina foliosa,California Cord Grass
|
|
1800
1802
|
Sporobolus indicus,smutgrass,X,,,,,45308,7749,79187,149101,true
|
|
1801
1803
|
Sporobolus niliacus,,X,,,,,82876,14905,773022,397065,Crypsis vaginiflora
|
|
1802
1804
|
Sporobolus pumilus,saltmeadow cordgrass,X,,,,,82878,14906,773004,432226,Spartina patens
|
|
@@ -1838,7 +1840,7 @@ Symphyotrichum lanceolatum var. hesperium,,N,,,,,80306,11093,81407,202308,true,W
|
|
|
1838
1840
|
Symphyotrichum lentum,Suisun Marsh aster,N,,,,,80304,9490,60130,211454,true,Suisun Marsh Aster,,289,1B.2,,,S2,G2
|
|
1839
1841
|
Symphyotrichum spathulatum,,N,,,,,80300,10409,79302,206133,true,Western Mountain Aster
|
|
1840
1842
|
Symphyotrichum subulatum var. parviflorum,saltmarsh aster,N,annual,"white,pink",7,10,81976,11094,169461,202299,true,Saltmarsh Aster
|
|
1841
|
-
Symphyotrichum subulatum var. squamatum,saltmarsh aster,X,annual,white,7,10,93843
|
|
1843
|
+
Symphyotrichum subulatum var. squamatum,saltmarsh aster,X,annual,white,7,10,93843,12081,169489,207358,true
|
|
1842
1844
|
Tamarix parviflora,smallflower tamarisk,X,,,,,46074,7916,56011,119759,true,,tamarix-parviflora-plant-profile
|
|
1843
1845
|
Tamarix ramosissima,saltcedar,X,,,,,46076,7917,56015,119761,true,,tamarix-ramosissima-profile
|
|
1844
1846
|
Tanacetum parthenium,feverfew,X,,,,,5215,7919,54520,206156,true
|
|
@@ -1855,7 +1857,7 @@ Thermopsis californica var. californica,,N,perennial,yellow,5,6,80225,9256,81420
|
|
|
1855
1857
|
Thysanocarpus curvipes,fringepod,N,,white,2,6,46552,7984,58088,33054,true,Hairy Lacepod
|
|
1856
1858
|
Thysanocarpus laciniatus,lacepod,N,,white,3,5,46555,7985,58090,33058,true,Narrowleaf Fringe Pod
|
|
1857
1859
|
Thysanocarpus radians,,N,,,,,46556,7986,68891,33060,true,Ribbed Fringepod
|
|
1858
|
-
Tolmiea diplomenziesii,pig-a-back plant,N,,,,,89306,12095,79368,33907,true,
|
|
1860
|
+
Tolmiea diplomenziesii,pig-a-back plant,N,,,,,89306,12095,79368,33907,true,Pig-a-Back Plant
|
|
1859
1861
|
Tonella tenella,,N,,,,,46732,8000,79369,78063,true,Lesser Baby Innocence
|
|
1860
1862
|
Torilis arvensis,tall sock-destroyer,X,,,,,46743,8004,56846,206200,,,torilis-arvensis-profile
|
|
1861
1863
|
Torilis nodosa,short sock-destroyer,X,,,,,46747,8007,53304,206201
|
|
@@ -1927,8 +1929,8 @@ Ulmus minor,English elm,X,,,,,47478,8180,79461,34372,Ulmus procera
|
|
|
1927
1929
|
Umbellularia californica,California bay,N,perennial,yellow,11,5,47489,8183,48807,34384,true,California Laurel
|
|
1928
1930
|
Uropappus lindleyi,silver puffs,N,,,,,76212,8184,50806,206299,true,Silverpuffs
|
|
1929
1931
|
Urospermum picroides,false hawkbit,X,,,,,5477,8185,59361,206301,true,,urospermum-picroides-profile
|
|
1930
|
-
Urtica gracilis subsp. gracilis,American stinging nettle,N,,,,,70675,14910,1074432,207397,Urtica dioica subsp. gracilis
|
|
1931
|
-
Urtica gracilis subsp. holosericea,hoary nettle,N,,,,,53304,14911,141851,44056,Urtica dioica subsp. holosericea
|
|
1932
|
+
Urtica gracilis subsp. gracilis,American stinging nettle,N,,,,,70675,14910,1074432,207397,Urtica dioica subsp. gracilis,California Nettle
|
|
1933
|
+
Urtica gracilis subsp. holosericea,hoary nettle,N,,,,,53304,14911,141851,44056,Urtica dioica subsp. holosericea,Hoary Nettle
|
|
1932
1934
|
Urtica urens,dwarf nettle,X,,,,,47589,8188,53315,34426,true
|
|
1933
1935
|
Vaccinium cespitosum,dwarf bilberry,N,perennial,"white,pink",5,7,47650,8194,79470,78415,true,Huckleberry
|
|
1934
1936
|
Vaccinium ovatum,"California huckleberry,evergreen huckleberry",N,,,,,47685,8200,48349,78452,true,Evergreen Huckleberry
|
|
@@ -1975,7 +1977,7 @@ Woodwardia fimbriata,giant chain fern,N,,,,,48619,8355,52685,200294,true,Giant C
|
|
|
1975
1977
|
Wyethia angustifolia,narrowleaf mule-ears,N,,yellow,4,8,5572,8356,56987,206396,true,Narrow Leaf Mule Ears
|
|
1976
1978
|
Wyethia glabra,mules ears,N,,yellow,3,6,5578,8359,56988,206404,true,Shining Mule Ears
|
|
1977
1979
|
Wyethia helenioides,woolly mules ears,N,,yellow,3,5,5579,8360,50799,206405,true,Whitehead Wyethia
|
|
1978
|
-
Xanthium orientale,cocklebur,N,,,,,5618,14779,506262,206411
|
|
1980
|
+
Xanthium orientale,cocklebur,N,,,,,5618,14779,506262,206411,,Cocklebur
|
|
1979
1981
|
Xanthium spinosum,spiny cocklebur,X,,,,,5590,8366,58045,206414,true
|
|
1980
1982
|
Yabea microcarpa,California hedge parsley,N,,,,,48745,8373,56847,206426,,California Hedge Parsley
|
|
1981
1983
|
Zannichellia palustris,horned-pondweed,N,,,,,48827,8379,79546,206437,true,Horned Pondweed
|
package/lib/taxonomy/taxon.js
CHANGED
|
@@ -226,7 +226,7 @@ class Taxon extends Taxonomy {
|
|
|
226
226
|
|
|
227
227
|
getINatName() {
|
|
228
228
|
const name = this.#iNatSyn ? this.#iNatSyn : this.getName();
|
|
229
|
-
return name.replace(/ (subsp|var)\./, "").replace("×", "× ");
|
|
229
|
+
return name.replace(/ (cf|subsp|var)\./, "").replace("×", "× ");
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
/**
|
package/lib/tools/rpi.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Files } from "../files.js";
|
|
|
4
4
|
import { TaxaCSV } from "./taxacsv.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @typedef {"CESA"|"CNDDB"|"FESA"|"Global"} Rank
|
|
7
|
+
* @typedef {"CRPR"|"CESA"|"CNDDB"|"FESA"|"Global"} Rank
|
|
8
8
|
* @typedef {Map<string,Map<Rank,string|undefined>>} RanksToUpdate
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -166,17 +166,13 @@ export class RPI {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
rank,
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
169
|
+
checkStatusMatch(
|
|
170
|
+
name,
|
|
171
|
+
"CRPR",
|
|
172
|
+
rank,
|
|
173
|
+
taxon.getRPIRankAndThreat(),
|
|
174
|
+
ranksToUpdate,
|
|
175
|
+
);
|
|
180
176
|
checkStatusMatch(
|
|
181
177
|
name,
|
|
182
178
|
"CESA",
|
|
@@ -249,7 +245,7 @@ export class RPI {
|
|
|
249
245
|
|
|
250
246
|
this.#checkExceptions(taxa, config, exceptions, errorLog);
|
|
251
247
|
|
|
252
|
-
this.#scrape(toolsDataDir, taxa, exceptions, errorLog);
|
|
248
|
+
this.#scrape(toolsDataDir, dataDir, taxa, exceptions, errorLog, update);
|
|
253
249
|
|
|
254
250
|
if (update) {
|
|
255
251
|
this.#updateRanks(dataDir, ranksToUpdate);
|
|
@@ -421,11 +417,20 @@ export class RPI {
|
|
|
421
417
|
|
|
422
418
|
/**
|
|
423
419
|
* @param {string} toolsDataDir
|
|
420
|
+
* @param {string} dataDir
|
|
424
421
|
* @param {import("../types.js").Taxa} taxa
|
|
425
422
|
* @param {import("../exceptions.js").Exceptions} exceptions
|
|
426
423
|
* @param {import("../errorlog.js").ErrorLog} errorLog
|
|
424
|
+
* @param {boolean} update
|
|
427
425
|
*/
|
|
428
|
-
static async #scrape(
|
|
426
|
+
static async #scrape(
|
|
427
|
+
toolsDataDir,
|
|
428
|
+
dataDir,
|
|
429
|
+
taxa,
|
|
430
|
+
exceptions,
|
|
431
|
+
errorLog,
|
|
432
|
+
update,
|
|
433
|
+
) {
|
|
429
434
|
const toolsDataPath = toolsDataDir + "/rpi";
|
|
430
435
|
const fileName = HTML_FILE_NAME;
|
|
431
436
|
const filePath = toolsDataPath + "/" + fileName;
|
|
@@ -444,6 +449,9 @@ export class RPI {
|
|
|
444
449
|
rpiIDs[name] = id;
|
|
445
450
|
}
|
|
446
451
|
|
|
452
|
+
/** @type {Map<string,string>} */
|
|
453
|
+
const idsToUpdate = new Map();
|
|
454
|
+
|
|
447
455
|
for (const taxon of taxa.getTaxonList()) {
|
|
448
456
|
if (!taxon.getRPIRankAndThreat()) {
|
|
449
457
|
continue;
|
|
@@ -463,8 +471,13 @@ export class RPI {
|
|
|
463
471
|
id,
|
|
464
472
|
taxon.getRPIID(),
|
|
465
473
|
);
|
|
474
|
+
idsToUpdate.set(name, id);
|
|
466
475
|
}
|
|
467
476
|
}
|
|
477
|
+
|
|
478
|
+
if (update) {
|
|
479
|
+
this.#updateIDs(dataDir, idsToUpdate);
|
|
480
|
+
}
|
|
468
481
|
}
|
|
469
482
|
|
|
470
483
|
/**
|
|
@@ -485,6 +498,24 @@ export class RPI {
|
|
|
485
498
|
return false;
|
|
486
499
|
}
|
|
487
500
|
|
|
501
|
+
/**
|
|
502
|
+
* @param {string} dataDir
|
|
503
|
+
* @param {Map<string,string>} idsToUpdate
|
|
504
|
+
*/
|
|
505
|
+
static #updateIDs(dataDir, idsToUpdate) {
|
|
506
|
+
const taxa = new TaxaCSV(dataDir);
|
|
507
|
+
|
|
508
|
+
for (const taxonData of taxa.getTaxa()) {
|
|
509
|
+
const id = idsToUpdate.get(taxonData.taxon_name);
|
|
510
|
+
if (!id) {
|
|
511
|
+
continue;
|
|
512
|
+
}
|
|
513
|
+
taxonData["RPI ID"] = id;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
taxa.write();
|
|
517
|
+
}
|
|
518
|
+
|
|
488
519
|
/**
|
|
489
520
|
* @param {string} dataDir
|
|
490
521
|
* @param {RanksToUpdate} ranksToUpdate
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ca-plant-list/ca-plant-list",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.40",
|
|
4
4
|
"description": "Tools to create files for a website listing plants in an area of California.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"image-size": "^2.0.2",
|
|
48
48
|
"markdown-it": "^14.1.0",
|
|
49
49
|
"sharp": "^0.34.4",
|
|
50
|
-
"svgo-ll": "^6.
|
|
50
|
+
"svgo-ll": "^6.2.0",
|
|
51
51
|
"unzipper": "^0.12.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|