Skip to content

Commit 8259069

Browse files
authored
Merge pull request #310 from RichardScottOZ/patch-1
Update how-to-create-stac-catalogs.ipynb
2 parents 61f62b1 + 7a9d8e4 commit 8259069

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

docs/tutorials/creating-a-landsat-stac.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@
10801080
"source": [
10811081
"#### Add Ground Sample Distance to common metadata\n",
10821082
"\n",
1083-
"We'll add the Ground Sample Distance that is defined as part of the Item [Common Metadata](https://github.com/radiantearth/stac-spec/blob/v1.0.0-beta.2/item-spec/common-metadata.md). We define this on the Item leve as 30 meters, which is the GSD for most of the bands of Landsat 8. However, there are some bands that have a different resolution; we will account for this by setting the GSD explicitly for each of those bands below."
1083+
"We'll add the Ground Sample Distance that is defined as part of the Item [Common Metadata](https://github.com/radiantearth/stac-spec/blob/v1.0.0-beta.2/item-spec/common-metadata.md). We define this on the Item level as 30 meters, which is the GSD for most of the bands of Landsat 8. However, there are some bands that have a different resolution; we will account for this by setting the GSD explicitly for each of those bands below."
10841084
]
10851085
},
10861086
{
@@ -1361,7 +1361,7 @@
13611361
"cell_type": "markdown",
13621362
"metadata": {},
13631363
"source": [
1364-
"Here we see the tumbnail asset, which does not include the band information for the `eo` extension as it does not represent any of the Item's bands:"
1364+
"Here we see the thumbnail asset, which does not include the band information for the `eo` extension as it does not represent any of the Item's bands:"
13651365
]
13661366
},
13671367
{
@@ -1888,7 +1888,7 @@
18881888
"source": [
18891889
"### Write the catalog locally\n",
18901890
"\n",
1891-
"Now that we have our complete, validated STAC in memory, let's write it out. This is a simple as calling `save` on the Collection. We need to specify the type of catalog in order to property write out links - these types are described again in the STAC [Best Practices](https://github.com/radiantearth/stac-spec/blob/master/best-practices.md#use-of-links) documentation.\n",
1891+
"Now that we have our complete, validated STAC in memory, let's write it out. This is as simple as calling `save` on the Collection. We need to specify the type of catalog in order to property write out links - these types are described again in the STAC [Best Practices](https://github.com/radiantearth/stac-spec/blob/master/best-practices.md#use-of-links) documentation.\n",
18921892
"\n",
18931893
"We'll use the \"self contained\" type, which uses relative paths and does not specify absolute \"self\" links to any object. This makes the catalog more portable, as it remains valid even if you copy the STAC to new locations."
18941894
]
@@ -2242,7 +2242,7 @@
22422242
"source": [
22432243
"### Acknowledgements\n",
22442244
"\n",
2245-
"Credit to [sat-stac-landsat](https://github.com/sat-utils/sat-stac-landsat) off of which a lot of this code was based."
2245+
"Credit to [sat-stac-landsat](https://github.com/sat-utils/sat-stac-landsat) from which a lot of this code was based."
22462246
]
22472247
}
22482248
],

docs/tutorials/how-to-create-stac-catalogs.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
"cell_type": "markdown",
296296
"metadata": {},
297297
"source": [
298-
"Using [rasterio](https://rasterio.readthedocs.io/en/stable/), we can pull out the bounding box of the image to use for the image metadata. If the image contained a NoData border, we would ideally pull out the footprint and save it as the geometry; in this case, we're working with a small chip the most likely has no NoData values."
298+
"Using [rasterio](https://rasterio.readthedocs.io/en/stable/), we can pull out the bounding box of the image to use for the image metadata. If the image contained a NoData border, we would ideally pull out the footprint and save it as the geometry; in this case, we're working with a small chip that most likely has no NoData values."
299299
]
300300
},
301301
{

pystac/catalog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __str__(self) -> str:
3636

3737
SELF_CONTAINED = "SELF_CONTAINED"
3838
"""A 'self-contained catalog' is one that is designed for portability.
39-
Users may want to download a catalog from online and be able to use it on their
39+
Users may want to download an online catalog from and be able to use it on their
4040
local computer, so all links need to be relative.
4141
4242
See:
@@ -378,7 +378,7 @@ def get_items(self) -> Iterable["Item_Type"]:
378378
"""Return all items of this catalog.
379379
380380
Return:
381-
Iterable[Item]: Generator of items who's parent is this catalog.
381+
Iterable[Item]: Generator of items whose parent is this catalog.
382382
"""
383383
return map(lambda x: cast(pystac.Item, x), self.get_stac_objects("item"))
384384

pystac/item.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def get_created(self, asset: Optional[Asset] = None) -> Optional[Datetime]:
482482
Note:
483483
``created`` and ``updated`` have different meaning depending on where they
484484
are used. If those fields are available in the Item `properties`, it's
485-
referencing to the creation and update times of the metadata. Having those
485+
referencing the creation and update times of the metadata. Having those
486486
fields in the Item `assets` refers to the creation and update times of the
487487
actual data linked to in the Asset Object.
488488
@@ -525,11 +525,10 @@ def updated(self) -> Optional[Datetime]:
525525
Note:
526526
``created`` and ``updated`` have different meaning depending on where they
527527
are used. If those fields are available in the Item `properties`, it's
528-
referencing to the creation and update times of the metadata. Having those
528+
referencing the creation and update times of the metadata. Having those
529529
fields in the Item `assets` refers to the creation and update times of the
530530
actual data linked to in the Asset Object.
531531
532-
533532
Returns:
534533
datetime: Date and time that the metadata file was most recently
535534
updated
@@ -549,7 +548,7 @@ def get_updated(self, asset: Optional[Asset] = None) -> Optional[Datetime]:
549548
Note:
550549
``created`` and ``updated`` have different meaning depending on where they
551550
are used. If those fields are available in the Item `properties`, it's
552-
referencing to the creation and update times of the metadata. Having those
551+
referencing the creation and update times of the metadata. Having those
553552
fields in the Item `assets` refers to the creation and update times of the
554553
actual data linked to in the Asset Object.
555554

0 commit comments

Comments
 (0)