Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 10, 2024
1 parent 65f51e5 commit fd01a75
Show file tree
Hide file tree
Showing 16 changed files with 107 additions and 107 deletions.
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: 'monthly'
interval: "monthly"
groups:
actions:
patterns:
- '*'
- "*"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Catalog entries scan be marked as either _skip_ or _xfail_ by setting the `ci` k

```yaml
foo:
description: 'skip this entry in the CI tests'
description: "skip this entry in the CI tests"
metadata:
ci: skip
```
Expand Down
4 changes: 2 additions & 2 deletions carbonplan_data/catalogs/fia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@ sources:
veg_visit,
]
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/raw/fia/{{ name }}.parquet'
engine: 'pyarrow'
urlpath: "{{env(CARBONPLAN_DATA)}}/raw/fia/{{ name }}.parquet"
engine: "pyarrow"
4 changes: 2 additions & 2 deletions carbonplan_data/catalogs/fluxnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ sources:
allowed: [auxmeteo, auxnee]
driver: parquet
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/raw/fluxnet/{{ station }}_{{ kind }}.parquet'
urlpath: "{{env(CARBONPLAN_DATA)}}/raw/fluxnet/{{ station }}_{{ kind }}.parquet"

raw_fullset:
metadata:
Expand Down Expand Up @@ -82,4 +82,4 @@ sources:
allowed: [dd, hh, mm, ww, yy]
driver: parquet
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/raw/fluxnet/{{ station }}_{{ kind }}_{{ freq }}.parquet'
urlpath: "{{env(CARBONPLAN_DATA)}}/raw/fluxnet/{{ station }}_{{ kind }}_{{ freq }}.parquet"
2 changes: 1 addition & 1 deletion carbonplan_data/catalogs/gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ sources:
]
driver: parquet
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/raw/gcp/{{ name }}.parquet'
urlpath: "{{env(CARBONPLAN_DATA)}}/raw/gcp/{{ name }}.parquet"
34 changes: 17 additions & 17 deletions carbonplan_data/catalogs/gridmet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ sources:
default: pr
allowed:
[
'pr',
'tmmn',
'tmmx',
'rmax',
'rmin',
'sph',
'srad',
'th',
'vs',
'bi',
'fm100',
'fm1000',
'erc',
'pdsi',
'etr',
'pet',
'vpd',
"pr",
"tmmn",
"tmmx",
"rmax",
"rmin",
"sph",
"srad",
"th",
"vs",
"bi",
"fm100",
"fm1000",
"erc",
"pdsi",
"etr",
"pet",
"vpd",
]
year:
description: year
Expand Down
2 changes: 1 addition & 1 deletion carbonplan_data/catalogs/grids.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ sources:
allowed: [conus, ak]
driver: zarr
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/processed/grids/{{ region }}/4000m/domain.zarr/'
urlpath: "{{env(CARBONPLAN_DATA)}}/processed/grids/{{ region }}/4000m/domain.zarr/"
consolidated: True
22 changes: 11 additions & 11 deletions carbonplan_data/catalogs/maca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ sources:
default: pr
allowed:
[
'huss',
'pr',
'rhsmin',
'rhsmax',
'rsds',
'tasmax',
'tasmin',
'uas',
'vas',
'vpd',
"huss",
"pr",
"rhsmin",
"rhsmax",
"rsds",
"tasmax",
"tasmin",
"uas",
"vas",
"vpd",
]
gcm:
description: climate model
Expand All @@ -47,7 +47,7 @@ sources:
description: climate scenario
type: str
default: historical_1950_2005
allowed: ['historical_1950_2005', 'rcp45_2006_2099', 'rcp85_2006_2099']
allowed: ["historical_1950_2005", "rcp45_2006_2099", "rcp85_2006_2099"]
args:
urlpath: http://thredds.northwestknowledge.net:8080/thredds/dodsC/agg_macav2metdata_{{ variable }}_{{ gcm }}_r1i1p1_{{ scenario }}_CONUS_daily.nc
auth: null
Expand Down
74 changes: 37 additions & 37 deletions carbonplan_data/catalogs/master.yaml
Original file line number Diff line number Diff line change
@@ -1,109 +1,109 @@
description: 'CarbonPlan Master Data Catalog'
description: "CarbonPlan Master Data Catalog"
sources:
gridmet:
name: 'gridMET'
description: 'Gridded daily surface meteorological data covering the continental US'
name: "gridMET"
description: "Gridded daily surface meteorological data covering the continental US"
metadata:
tags: [climate]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/gridmet.yaml'
path: "{{CATALOG_DIR}}/gridmet.yaml"

terraclimate:
name: 'TerraClimate'
description: 'Global gridded monthly climate and hydroclimate data from 1958-present.'
name: "TerraClimate"
description: "Global gridded monthly climate and hydroclimate data from 1958-present."
metadata:
tags: [climate]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/terraclimate.yaml'
path: "{{CATALOG_DIR}}/terraclimate.yaml"

maca:
name: 'MACA'
description: 'Statistically downscaled climate data using the MACA method.'
name: "MACA"
description: "Statistically downscaled climate data using the MACA method."
metadata:
tags: [climate]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/maca.yaml'
path: "{{CATALOG_DIR}}/maca.yaml"

fia:
name: 'Forest Inventory Analysis (FIA)'
description: 'Catalog for data from Forest Inventory Analysis (FIA) database'
name: "Forest Inventory Analysis (FIA)"
description: "Catalog for data from Forest Inventory Analysis (FIA) database"
metadata:
tags: [forests]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/fia.yaml'
path: "{{CATALOG_DIR}}/fia.yaml"

fluxnet:
name: 'FLUXNET'
description: 'Catalog for data from the FLUXNET dataset'
name: "FLUXNET"
description: "Catalog for data from the FLUXNET dataset"
metadata:
tags: [climate, carbon]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/fluxnet.yaml'
path: "{{CATALOG_DIR}}/fluxnet.yaml"

gcp:
name: 'Global Carbon Project (GCP)'
description: 'Catalog for data from the Global Carbon Project'
name: "Global Carbon Project (GCP)"
description: "Catalog for data from the Global Carbon Project"
metadata:
tags: [climate, carbon]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/gcp.yaml'
path: "{{CATALOG_DIR}}/gcp.yaml"

mtbs:
name: 'Monitoring Trends in Burn Severity (MTBS)'
description: 'Catalog for data from the Monitoring Trends in Burn Severity (MTBS) dataset'
name: "Monitoring Trends in Burn Severity (MTBS)"
description: "Catalog for data from the Monitoring Trends in Burn Severity (MTBS) dataset"
metadata:
tags: [forests]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/mtbs.yaml'
path: "{{CATALOG_DIR}}/mtbs.yaml"

nftd:
name: 'National Forest Type Database (NFTD)'
description: 'Catalog for data from the National Forest Type Database (NFTD)'
name: "National Forest Type Database (NFTD)"
description: "Catalog for data from the National Forest Type Database (NFTD)"
metadata:
tags: [forests]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/nftd.yaml'
path: "{{CATALOG_DIR}}/nftd.yaml"

nlcd:
name: 'National Land Cover Database (NLCD)'
description: 'Catalog for data from the National Land Cover Database (NLCD)'
name: "National Land Cover Database (NLCD)"
description: "Catalog for data from the National Land Cover Database (NLCD)"
metadata:
tags: [forests]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/nlcd.yaml'
path: "{{CATALOG_DIR}}/nlcd.yaml"

projects:
name: 'CarbonPlan Project Reports'
description: 'CarbonPlan Projects Dataset Catalog'
name: "CarbonPlan Project Reports"
description: "CarbonPlan Projects Dataset Catalog"
metadata:
tags: [carbon]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/projects.yaml'
path: "{{CATALOG_DIR}}/projects.yaml"

spawnetal2020:
name: 'Global Above- and Belowground Biomass'
description: 'Catalog for data from Global Aboveground and Belowground Biomass Carbon Density Maps for the Year 2010 from Spawn et al (2020)'
name: "Global Above- and Belowground Biomass"
description: "Catalog for data from Global Aboveground and Belowground Biomass Carbon Density Maps for the Year 2010 from Spawn et al (2020)"
metadata:
tags: [forests]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/spawnetal2020.yaml'
path: "{{CATALOG_DIR}}/spawnetal2020.yaml"

grids:
name: 'Project Grids'
description: 'Catalog grid files and domain definitions.'
name: "Project Grids"
description: "Catalog grid files and domain definitions."
metadata:
tags: [meta]
driver: intake.catalog.local.YAMLFileCatalog
args:
path: '{{CATALOG_DIR}}/grids.yaml'
path: "{{CATALOG_DIR}}/grids.yaml"
28 changes: 14 additions & 14 deletions carbonplan_data/catalogs/mtbs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ sources:
args:
# urlpath: "https://storage.googleapis.com/carbonplan-data/raw/mtbs/{{ region }}/30m/{{ '%d' % year }}.tif"
urlpath: "{{env(CARBONPLAN_DATA)}}/raw/mtbs/{{ region }}/30m/{{ '%d' % year }}.tif"
chunks: { 'y': 5120, 'x': 5120 }
chunks: { "y": 5120, "x": 5120 }

raster:
metadata:
Expand Down Expand Up @@ -73,11 +73,11 @@ sources:
resolution:
description: Pixel resolution in meters
type: str
default: '4000m'
allowed: ['4000m']
default: "4000m"
allowed: ["4000m"]
driver: zarr
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/processed/mtbs/{{ region }}/{{ resolution }}/raster.zarr'
urlpath: "{{env(CARBONPLAN_DATA)}}/processed/mtbs/{{ region }}/{{ resolution }}/raster.zarr"
consolidated: True

rasterized_perims:
Expand Down Expand Up @@ -107,21 +107,21 @@ sources:
resolution:
description: Pixel resolution in meters
type: str
default: '30m'
allowed: ['30m']
default: "30m"
allowed: ["30m"]
size:
description: Fire size
type: str
default: 'lf'
allowed: ['lf', 'vlf']
default: "lf"
allowed: ["lf", "vlf"]
date:
description: 'Year and month (format: YYYY.MM)'
description: "Year and month (format: YYYY.MM)"
type: str
default: '2018.11'
default: "2018.11"
driver: rasterio
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/processed/mtbs/{{ region }}/{{ resolution }}/{{ size }}_{{ date }}.tif'
chunks: { 'y': 5120, 'x': 5120 }
urlpath: "{{env(CARBONPLAN_DATA)}}/processed/mtbs/{{ region }}/{{ resolution }}/{{ size }}_{{ date }}.tif"
chunks: { "y": 5120, "x": 5120 }

fod_shp:
metadata:
Expand All @@ -141,7 +141,7 @@ sources:
ci: skip
driver: shapefile
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/raw/mtbs/mtbs_fod_pts_data/mtbs_fod_pts_DD.shp'
urlpath: "{{env(CARBONPLAN_DATA)}}/raw/mtbs/mtbs_fod_pts_data/mtbs_fod_pts_DD.shp"

perims_shp:
metadata:
Expand All @@ -161,4 +161,4 @@ sources:
ci: skip
driver: shapefile
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/raw/mtbs/mtbs_perimeter_data/mtbs_perims_DD.shp'
urlpath: "{{env(CARBONPLAN_DATA)}}/raw/mtbs/mtbs_perimeter_data/mtbs_perims_DD.shp"
8 changes: 4 additions & 4 deletions carbonplan_data/catalogs/nftd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ sources:
allowed: [foresttype, forestgroup]
driver: rasterio
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/raw/nftd/{{ region }}_{{ variable }}/250m/{{ option }}.tif'
chunks: { 'y': 5120, 'x': 5120 }
urlpath: "{{env(CARBONPLAN_DATA)}}/raw/nftd/{{ region }}_{{ variable }}/250m/{{ option }}.tif"
chunks: { "y": 5120, "x": 5120 }

raster:
metadata:
Expand Down Expand Up @@ -88,5 +88,5 @@ sources:
allowed: [250m, 4000m]
driver: rasterio
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/processed/nftd/{{ region }}/{{ resolution }}/{{ option }}.tif'
chunks: { 'y': 5120, 'x': 5120 }
urlpath: "{{env(CARBONPLAN_DATA)}}/processed/nftd/{{ region }}/{{ resolution }}/{{ option }}.tif"
chunks: { "y": 5120, "x": 5120 }
8 changes: 4 additions & 4 deletions carbonplan_data/catalogs/nlcd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ sources:
allowed: [conus, ak]
driver: rasterio
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/raw/nlcd/{{ region }}/30m/{{ option }}.tif'
chunks: { 'y': 5120, 'x': 5120 }
urlpath: "{{env(CARBONPLAN_DATA)}}/raw/nlcd/{{ region }}/30m/{{ option }}.tif"
chunks: { "y": 5120, "x": 5120 }

raster:
metadata:
Expand Down Expand Up @@ -103,5 +103,5 @@ sources:
allowed: [conus, ak]
driver: rasterio
args:
urlpath: '{{env(CARBONPLAN_DATA)}}/processed/nlcd/{{ region }}/{{ resolution }}/{{ option }}.tif'
chunks: { 'y': 5120, 'x': 5120 }
urlpath: "{{env(CARBONPLAN_DATA)}}/processed/nlcd/{{ region }}/{{ resolution }}/{{ option }}.tif"
chunks: { "y": 5120, "x": 5120 }
2 changes: 1 addition & 1 deletion carbonplan_data/catalogs/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ sources:
url: https://carbonplan.org
driver: csv
args:
urlpath: 'https://api.carbonplan.org/projects.csv'
urlpath: "https://api.carbonplan.org/projects.csv"
Loading

0 comments on commit fd01a75

Please sign in to comment.