Skip to content

Commit

Permalink
DAS-2180: Explain self-consistent grids.
Browse files Browse the repository at this point in the history
  • Loading branch information
flamingbear committed Jul 30, 2024
1 parent 7b2c903 commit bdde01e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def create_browse(
"""Create browse imagery from an input geotiff.
This is the exposed library function to allow users to create browse images
from the hybig library. It parses the input params and constructs the
from the hybig-py library. It parses the input params and constructs the
correct Harmony input structure [Message.Format] to call the service's
entry point create_browse_imagery.
Expand Down Expand Up @@ -86,7 +86,9 @@ def create_browse(
* height and width
* scale_sizes (in the x and y horizontal spatial dimensions)
* Specify all three of the above, but ensure values are consistent
with one another.
with one another, noting that:
scale_size.x = (scale_extent.x.max - scale_extent.x.min) / width
scale_size.y = (scale_extent.y.max - scale_extent.y.min) / height
Returns:
List of 3-element tuples. These are the file paths of:
Expand All @@ -110,6 +112,8 @@ def create_browse(
"https://remote-colortable",
logger,
)
"""
```

### Reprojection
Expand Down
4 changes: 3 additions & 1 deletion hybig/browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def create_browse(
* height and width
* scale_sizes (in the x and y horizontal spatial dimensions)
* Specify all three of the above, but ensure values are consistent
with one another.
with one another, noting that:
scale_size.x = (scale_extent.x.max - scale_extent.x.min) / width
scale_size.y = (scale_extent.y.max - scale_extent.y.min) / height
Returns:
List of 3-element tuples. These are the file paths of:
Expand Down

0 comments on commit bdde01e

Please sign in to comment.