@ca-plant-list/ca-plant-list 0.4.15 → 0.4.17
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/README.md +24 -0
- package/data/inatobsphotos.csv +9286 -0
- package/data/inattaxonphotos.csv +27 -0
- package/data/synonyms.csv +2 -0
- package/data/taxa.csv +8 -8
- package/lib/csv.js +1 -26
- package/lib/exceptions.js +2 -1
- package/lib/program.js +8 -4
- package/lib/taxa.js +76 -19
- package/lib/taxon.js +8 -2
- package/lib/tools/calflora.js +5 -0
- package/lib/tools/jepsoneflora.js +440 -0
- package/lib/tools/rpi.js +435 -0
- package/lib/utils/inat-tools.js +4 -4
- package/lib/web/pagetaxon.js +1 -1
- package/package.json +26 -10
- package/scripts/cpl-photos.js +1 -0
- package/scripts/cpl-tools.js +21 -47
- package/scripts/dev/publish.sh +3 -0
- package/scripts/inatobsphotos.js +113 -0
- package/scripts/inattaxonphotos.js +10 -4
- package/types/classes.d.ts +33 -8
- package/.github/workflows/main.yml +0 -20
- package/.prettierrc +0 -3
- package/.vscode/settings.json +0 -9
- package/eslint.config.mjs +0 -13
- package/schemas/exceptions.schema.json +0 -62
- package/tmp/config.json +0 -21
- package/tmp/exceptions.json +0 -93
- package/tmp/families.json +0 -790
- package/tmp/genera.json +0 -5566
- package/tmp/inattaxonphotos.csv +0 -6059
- package/tmp/synonyms.csv +0 -2141
- package/tmp/taxa_include.csv +0 -19
package/README.md
CHANGED
@@ -25,3 +25,27 @@ node scripts/build-ebook.js
|
|
25
25
|
|
26
26
|
# ebook is at output/ebplants.epub
|
27
27
|
```
|
28
|
+
|
29
|
+
## Usage
|
30
|
+
|
31
|
+
```zsh
|
32
|
+
npm i --save @ca-plant-list/ca-plant-list
|
33
|
+
```
|
34
|
+
|
35
|
+
### Customizing Photos
|
36
|
+
|
37
|
+
ca-plant-list loads photos of plants from iNat and maintains lists of photos of all the plants it knows about from both licensed iNat taxon photos and licensed iNat observation photos. If you want to customize the photos that appear on your site, you can add a file of iNat photo data to your local setup. This package provides some tools for doing so. For example, if you wanted to use photos from observations from Alameda and Contra Costa Counties, you could do this:
|
38
|
+
|
39
|
+
```zsh
|
40
|
+
npx inatobsphotos -q "place_id=845,1527"
|
41
|
+
```
|
42
|
+
|
43
|
+
That will create `data/inatphotos.csv` in your repo, populated by photos from verifiable observations of the taxa in data/taxa.csv from the place IDs identified in the `-q` param. It chooses from the most-faved observations with the "CC BY" or "CC BY-NC" licenses, or the CC0 declaration.
|
44
|
+
|
45
|
+
If you want to load from iNat taxon photos instead, you can do
|
46
|
+
|
47
|
+
```zsh
|
48
|
+
npx inattaxonphotos
|
49
|
+
```
|
50
|
+
|
51
|
+
The only reason to do that would be to get more recently-updated iNat taxon photos than ca-plant-list knows about.
|