File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed
Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 11# NAIP
22
3+ ## Collection Metadata Update
4+
5+ Run this if you need to update the collection STAC item without ingesting asset items.
6+
7+ ``` shell
8+ pctasks dataset ingest-collection -d datasets/naip/dataset.yaml --submit -a registry pccomponents -arg year ' 2023'
9+ ```
10+
311## Running
412
513Provide the year (or a regex of years) you want to process.
614
715``` shell
8- $ pctasks dataset process-items --dataset datasets/naip/dataset.yaml test-2023-04-24 --arg year ' (2021|2022)'
16+ pctasks dataset process-items --dataset datasets/naip/dataset.yaml my-chunkset-id --arg year ' (2021|2022)' --arg registry pccomponents.azurecr.io --submit
917```
1018
1119## Docker container
Original file line number Diff line number Diff line change 142142 "interval" : [
143143 [
144144 " 2010-01-01T00:00:00Z" ,
145- " 2022 -12-31T00:00:00Z"
145+ " 2023 -12-31T00:00:00Z"
146146 ]
147147 ]
148148 }
Original file line number Diff line number Diff line change 1010 "blob://naipeuwest/naip/v002/co/2021/co_060cm_2021/37102/63/m_3710263_sw_13_060_20210729.tif" , # noqa: E501
1111 "blob://naipeuwest/naip/v002/ca/2022/ca_060cm_2022/41120/m_4112001_sw_10_060_20220716.tif" , # noqa: E501
1212 "blob://naipeuwest/naip/v002/ca/2022/ca_030cm_2022/41120/m_4112001_ne_10_030_20220723.tif" , # noqa: E501
13+ "blob://naipeuwest/naip/v002/az/2023/az_030cm_2023/31109/m_3110901_ne_12_030_20231015_20240119.tif" , # noqa: E501
1314 ],
1415)
1516def test_naip (href : str ) -> None :
@@ -22,13 +23,15 @@ def test_naip(href: str) -> None:
2223 "https://stac-extensions.github.io/eo/v1.0.0/schema.json" ,
2324 "https://stac-extensions.github.io/projection/v1.0.0/schema.json" ,
2425 ]
25- if "/63/" in href :
26+ if "/2023/" in href :
27+ assert item .id == "az_m_3110901_ne_12_030_20231015_20240119"
28+ elif "/63/" in href :
2629 # verify that the new item ID includes both area & subarea
2730 assert item .id == "co_m_3710263_sw_13_060_20210729"
28- if "/ca/2022/ca_060cm" in href :
31+ elif "/ca/2022/ca_060cm" in href :
2932 # verify that the new item ID includes both area & subarea
3033 assert item .id == "ca_m_4112001_sw_10_060_20220716"
31- if "030cm" in href :
34+ elif "030cm" in href :
3235 # verify that the new item ID includes both area & subarea
3336 assert item .id == "ca_m_4112001_ne_10_030_20220723"
3437 assert item .common_metadata .gsd == 0.3
You can’t perform that action at this time.
0 commit comments