Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions specs/SPEC-001-snippets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Initial draft snippet specs

## Authentication

### Requirements

- include generic inline comments describing code
- print a successful authentication

### Template
```python
if earthaccess.login(persist=True).authenticated:
print("Authentication Completed")
```

## Spatiotemporal Search

### Requirements

- simple spatial bounding box for any collection that isn't global
- simple temporal range within the collections' time range
- use most recent granule?

### Template
```python
granules = earthaccess.search_data(
doi="<collection doi>",
temporal=("<start date>", "<end date>"),
bounding_box=[<coordinates of bounding box>]
)
print(f"Spatiotemporal search retrieved {len(granules)} granule(s)")
```

## Data Access

- variable subsetting - pick out a meaningful variable
- show a mean/median, comment explaining lacking of quality filtering

## Dataset Structure Navigation
-

## Validation (external to snippet)

- snippet runs to completion
- snippet produces real numbers (stored in a variable named `data`)
- numeric check is performed on unmasked/unfiltered data (to avoid depending on any science thresholds or analytic manipulations)

# Out of scope:

- Visualization or plotting
Loading