Skip to content

Accessing TEMPO data with R#405

Open
ateucher wants to merge 17 commits into
mainfrom
tempo-r
Open

Accessing TEMPO data with R#405
ateucher wants to merge 17 commits into
mainfrom
tempo-r

Conversation

@ateucher

@ateucher ateucher commented Nov 19, 2025

Copy link
Copy Markdown
Member

This is a tutorial for accessing TEMPO data with R using terra. It is a direct fork of the Python notebook from the ASDC Data and User Services Tutorials Cookbook, illustrating the same workflow.

@danielfromearth I'd love it if you could look this over and see if you see anything jump out compared to the ASDC Python notebook.

@cboettig and/or @eeholmes you are much more fluent in this work than me, so if you have the time to look it over I'd appreciate it very much!

The deploy preview for the tutorial is here.

@github-actions

github-actions Bot commented Nov 19, 2025

Copy link
Copy Markdown

@github-actions github-actions Bot temporarily deployed to pull request November 19, 2025 00:08 Inactive
@github-actions

Copy link
Copy Markdown

@github-actions github-actions Bot temporarily deployed to pull request November 19, 2025 22:36 Inactive
@github-actions github-actions Bot temporarily deployed to pull request November 19, 2025 22:43 Inactive
@ateucher ateucher mentioned this pull request Nov 19, 2025
@ateucher

Copy link
Copy Markdown
Member Author

/deploy-preview

@github-actions

Copy link
Copy Markdown

@NASA-Openscapes NASA-Openscapes deleted a comment from github-actions Bot Jan 28, 2026
@github-actions

Copy link
Copy Markdown

@github-actions github-actions Bot temporarily deployed to pull request February 10, 2026 21:14 Inactive
@eeholmes

Copy link
Copy Markdown
Contributor

@ateucher I get this error with earthdatalogin 0.0.3 (the one on cran) from code below. Your 3 or so box

Error in vapply(elements, encode, character(1)) :
values must be length 1,
but FUN(X[[4]]) result is length 4
dlat <- 5.0 # deg
dlon <- 6.0 # deg

bbox_results <- earthdatalogin::edl_search(
  short_name = short_name,
  version = version,
  temporal = c(date_start, date_end),
  bounding_box = c(
    POI_lon - dlon,
    POI_lat - dlat,
    POI_lon + dlon,
    POI_lat + dlat
  ), # search by bounding box
  parse_results = FALSE
)

length(bbox_results)

@ateucher

Copy link
Copy Markdown
Member Author

Right, yes! PR here: boettiger-lab/earthdatalogin#25.

You can install with remotes::install_github("boettiger-lab/earthdatalogin@fix-search-bounding-box")

@ateucher ateucher requested a review from ronnyhdez March 10, 2026 18:17
@github-actions github-actions Bot temporarily deployed to pull request March 30, 2026 22:33 Inactive
@github-actions github-actions Bot temporarily deployed to pull request March 30, 2026 23:18 Inactive
@danielfromearth

danielfromearth commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

@ateucher, first question (sorry for the very long delay before commenting!): I'm a bit confused, why are there so many files in this PR?

@ateucher

ateucher commented Apr 8, 2026

Copy link
Copy Markdown
Member Author

@danielfromearth no worries, thanks for having a look! As for the number of files, it's the _freeze directory, which holds the computation results from .qmd files, as well as the javascript libraries for the rendered site... I think this PR adds so many js libraries because of the interactive data table using DT. You can ignore everything in the _freeze directory in your review (unless you think the benefits of the interactive tables are not worth adding so many js dependencies to the cookbook).

@danielfromearth danielfromearth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great @ateucher!

I added some comments to the .qmd file with the underscore prefix (the 'stars' one) – is that alright? It looks like that (mostly) duplicates the qmd without the underscore, but I'm not sure what is the relationship between the two.

Comment thread tutorials/_examine-TEMPO-data-R-stars.qmd Outdated
Comment thread tutorials/_examine-TEMPO-data-R-stars.qmd Outdated
Comment thread tutorials/_examine-TEMPO-data-R-stars.qmd Outdated
Comment thread tutorials/_examine-TEMPO-data-R-stars.qmd Outdated
@ateucher

Copy link
Copy Markdown
Member Author

Thanks @danielfromearth! The two notebooks demonstrate the same workflow using the two main geospatial (raster) packages stars and terra. I think I will try to combine them into one, using tabs to toggle between stars and terra so people can compare.

These are great suggestions! I'll update to V04 as well, and update the date range

Co-authored-by: Daniel Kaufman <114174502+danielfromearth@users.noreply.github.com>
@github-actions github-actions Bot temporarily deployed to pull request April 20, 2026 22:38 Inactive
@github-actions github-actions Bot temporarily deployed to pull request April 27, 2026 23:25 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants