Can you create a CSV from a TEMPO L2 file?
-
ASDC - jennifer.tindell
- Subject Matter Expert

- Posts: 51
- Joined: Wed Mar 13, 2019 12:51 pm America/New_York
Can you create a CSV from a TEMPO L2 file?
Is it possible to subset TEMPO Level 2 data using the CSV Automation Service for Processing & Easy Retrieval (CASPER) through the Subsetter And Multi-dimensional Batched Aggregation in Harmony (SAMBAH) via harmony-py?
Filters:
-
ASDC - jennifer.tindell
- Subject Matter Expert

- Posts: 51
- Joined: Wed Mar 13, 2019 12:51 pm America/New_York
Re: Can you create a CSV from a TEMPO L2 file?
Currently, CASPER is only available as an optional functionality when accessing data through SAMBAH programmatically via harmony-py or the Harmony API; it is not available as a standalone service at this time. CASPER is expected to become available as an option in the Earthdata Search interface in the future.
Known Limitations
Converting large NetCDF files can result in CSV files that are too large to be opened in Excel. For this reason, concatenation is disabled in the SAMBAH processing chain if CSV output is requested..
Recommendations for Usage
To avoid sending large files to CASPER, it is recommended that spatial subsetting be used. Files are processed by CASPER concurrently, so there is no limit on the number of files that can be requested.
Programmatic Request Example (Python)
CASPER Tutorial
How To Download TEMPO Data as CSV
Additional information on CASPER may be found in its GitHub repository: https://github.com/nasa/harmony-casper/
CASPER Processing Details
CASPER is a new Harmony service that converts NetCDF files into CSV format by grouping the variables based on the combination of their coordinates (e.g., longitude, latitude, mirror_step, xtrack) and outputting each group into a separate CSV file. Two Readme files are also created, one as Markdown and one as JSON, which contain a user-friendly outline of which variables are in each CSV output file and the NetCDF file- and variable-level attributes.
Output from CASPER is a compressed (.zip) file containing the CSV and Readme files.
Known Limitations
Converting large NetCDF files can result in CSV files that are too large to be opened in Excel. For this reason, concatenation is disabled in the SAMBAH processing chain if CSV output is requested..
Recommendations for Usage
To avoid sending large files to CASPER, it is recommended that spatial subsetting be used. Files are processed by CASPER concurrently, so there is no limit on the number of files that can be requested.
Programmatic Request Example (Python)
Code: Select all
from harmony import BBox, Client, Collection, Request
from datetime import datetime
harmony_client = Client()
collection_id = "C3685896872-LARC_CLOUD"
request = Request(
collection = Collection(id=collection_id),
spatial = BBox(-80, 36, -60, 40),
temporal = {'start': datetime(2025, 11, 1),
'stop': datetime(2025, 11, 2)},
max_results = 10,
format = "text/csv"
)
assert request.is_valid()
harmony_client.submit(request)How To Download TEMPO Data as CSV
Additional information on CASPER may be found in its GitHub repository: https://github.com/nasa/harmony-casper/
CASPER Processing Details
CASPER is a new Harmony service that converts NetCDF files into CSV format by grouping the variables based on the combination of their coordinates (e.g., longitude, latitude, mirror_step, xtrack) and outputting each group into a separate CSV file. Two Readme files are also created, one as Markdown and one as JSON, which contain a user-friendly outline of which variables are in each CSV output file and the NetCDF file- and variable-level attributes.
Output from CASPER is a compressed (.zip) file containing the CSV and Readme files.