Skip to content

Commit

Permalink
feat: update datapackage
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmedia committed Feb 21, 2025
1 parent 9f3267b commit e40833e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
4 changes: 2 additions & 2 deletions _data/datapackage_additions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1289,8 +1289,8 @@ description = "Closing price of the S&P 500 index for the given month"
[[resources]] # Path: species.csv
path = "species.csv"
description = """
Percentage of year-round habitat for four species -- American robin, White-tailed deer,
American bullfrog, and common gartersnak -- within US counties, derived from USGS
Percentage of year-round habitat for four species -- American robin, white-tailed deer,
American bullfrog, and common gartersnake -- within US counties, derived from USGS
Gap Analysis Project (GAP) Species Habitat Maps. Data is provided at a 30-meter
resolution and covers the contiguous United States. Habitat percentages are calculated
by overlaying species habitat rasters (year-round habitat represented by value 3) with
Expand Down
19 changes: 10 additions & 9 deletions datapackage.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
],
"version": "2.11.0",
"created": "2025-02-20T13:20:53.899446+00:00",
"created": "2025-02-21T12:50:00.994312+00:00",
"resources": [
{
"name": "7zip.png",
Expand Down Expand Up @@ -3172,9 +3172,9 @@
}
},
{
"name": "species.arrow",
"name": "species.csv",
"type": "table",
"description": "Percentage of year-round habitat for four species -- American robin, White-tailed deer, \nAmerican bullfrog, and common gartersnak -- within US counties, derived from USGS \nGap Analysis Project (GAP) Species Habitat Maps. Data is provided at a 30-meter \nresolution and covers the contiguous United States. Habitat percentages are calculated \nby overlaying species habitat rasters (year-round habitat represented by value 3) with \nUS county boundaries.\n\nThe habitat maps are in Albers Conical Equal Area projection (EPSG:5070). County boundaries \nare derived from US Census Bureau cartographic boundary files (1:10,000,000 scale), from \n`US-10m.json` in this repository. This dataset only includes *year-round* habitat. \nThe original raster data also contains values for summer and winter habitat, which are \n*not* included in this dataset. Data was processed using the `exactextract` library \nfor zonal statistics.\n",
"description": "Percentage of year-round habitat for four species -- American robin, white-tailed deer, \nAmerican bullfrog, and common gartersnake -- within US counties, derived from USGS \nGap Analysis Project (GAP) Species Habitat Maps. Data is provided at a 30-meter \nresolution and covers the contiguous United States. Habitat percentages are calculated \nby overlaying species habitat rasters (year-round habitat represented by value 3) with \nUS county boundaries.\n\nThe habitat maps are in Albers Conical Equal Area projection (EPSG:5070). County boundaries \nare derived from US Census Bureau cartographic boundary files (1:10,000,000 scale), from \n`US-10m.json` in this repository. This dataset only includes *year-round* habitat. \nThe original raster data also contains values for summer and winter habitat, which are \n*not* included in this dataset. Data was processed using the `exactextract` library \nfor zonal statistics.\n",
"licenses": [
{
"title": "U.S. Government Dataset",
Expand All @@ -3191,12 +3191,13 @@
"path": "https://www.census.gov/geographies/mapping-files/time-series/geo/cartographic-boundary.html"
}
],
"path": "species.arrow",
"path": "species.csv",
"scheme": "file",
"format": ".arrow",
"mediatype": "application/vnd.apache.arrow.file",
"hash": "sha1:bef9659518d1817c31c82ffd6411e62ccbe495d8",
"bytes": 667258,
"format": "csv",
"mediatype": "text/csv",
"encoding": "utf-8",
"hash": "sha1:f9ad8b88556eb658784ccc82f4175271e9f2bcba",
"bytes": 976363,
"schema": {
"fields": [
{
Expand All @@ -3221,7 +3222,7 @@
},
{
"name": "county_id",
"type": "string",
"type": "integer",
"description": "Combined state and county FIPS code, identifying the US county."
},
{
Expand Down
26 changes: 13 additions & 13 deletions datapackage.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# vega-datasets
`2.11.0` | [GitHub](git+http://github.com/vega/vega-datasets.git) | 2025-02-20 13:20:53 [UTC]
`2.11.0` | [GitHub](git+http://github.com/vega/vega-datasets.git) | 2025-02-21 12:50:00 [UTC]

Common repository for example datasets used by Vega related projects.
BSD-3-Clause license applies only to package code and infrastructure. Users should verify their use of datasets
Expand Down Expand Up @@ -1514,12 +1514,12 @@ the dot-com bubble burst (2000-2002), the mid-2000s bull market, and the 2008 fi
|:-------|:-------|:-------------------------------------------------------|
| date | string | Date of monthly observation in the format 'MMM D YYYY' |
| price | number | Closing price of the S&P 500 index for the given month |
## `species.arrow`
## `species.csv`
### path
species.arrow
species.csv
### description
Percentage of year-round habitat for four species -- American robin, White-tailed deer,
American bullfrog, and common gartersnak -- within US counties, derived from USGS
Percentage of year-round habitat for four species -- American robin, white-tailed deer,
American bullfrog, and common gartersnake -- within US counties, derived from USGS
Gap Analysis Project (GAP) Species Habitat Maps. Data is provided at a 30-meter
resolution and covers the contiguous United States. Habitat percentages are calculated
by overlaying species habitat rasters (year-round habitat represented by value 3) with
Expand All @@ -1534,14 +1534,14 @@ for zonal statistics.

### schema

| name | type | description |
|:----------------------|:-------|:----------------------------------------------------------------------------------------------------------------------|
| item_id | string | Unique identifier for the species data item on ScienceBase. |
| common_name | string | Common name of the species. |
| scientific_name | string | Scientific name of the species. |
| gap_species_code | string | GAP Species Code, a unique identifier for the species within the GAP dataset. |
| county_id | string | Combined state and county FIPS code, identifying the US county. |
| habitat_yearround_pct | number | Percentage of the county area that is classified as year-round habitat for the species (rounded to 4 decimal places). |
| name | type | description |
|:----------------------|:--------|:----------------------------------------------------------------------------------------------------------------------|
| item_id | string | Unique identifier for the species data item on ScienceBase. |
| common_name | string | Common name of the species. |
| scientific_name | string | Scientific name of the species. |
| gap_species_code | string | GAP Species Code, a unique identifier for the species within the GAP dataset. |
| county_id | integer | Combined state and county FIPS code, identifying the US county. |
| habitat_yearround_pct | number | Percentage of the county area that is classified as year-round habitat for the species (rounded to 4 decimal places). |
### sources
| title | path |
|:------------------------------------------------------------|:--------------------------------------------------------------------------------------------|
Expand Down

0 comments on commit e40833e

Please sign in to comment.