Skip to content

About

AWS Lambda functions powering on-demand data extraction (subvolumes, slices, profiles) for the CRESCENT CVM web viewer.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

3 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRESCENT CVM-DATA-EXTRACTOR

License: BSD-3-Clause

AWS Lambda functions that power on-demand data extraction for the CRESCENT CVM viewer. The viewer calls them for requests too large to handle in the web app.

Used by: https://cvm.cascadiaquakes.org


Features

Function Source What it extracts
Volume lambda/volume/ 3D subvolumes
Slice lambda/slice/ Horizontal (constant-depth) slices
Cross-section lambda/xsection/ Vertical slices along a path

Each function reads the model netCDF from S3, subsets it to the requested bounds (trimmed to the model's extent), and writes the result back to S3 in the requested format (netCDF, CSV, GeoCSV or HDF5). Missing model values are written as NaN.


Project Structure

CVM-DATA-EXTRACTOR/
├── lambda/
│   ├── volume/        # Volume extraction (handler, utils, Dockerfile)
│   ├── slice/         # Horizontal slice extraction
│   └── xsection/      # Cross-section extraction
├── infra/
│   └── CvmExtractLambda/   # AWS CDK app that deploys the functions
└── .github/workflows/main.yml

Each function is packaged as a container image from its own Dockerfile.


Deployment

The functions are deployed with the AWS CDK app in infra/CvmExtractLambda/. The GitHub Actions workflow in .github/workflows/main.yml deploys the dev functions on every push to main, then deploys production after an approval on the Production environment.


License

This project is licensed under the BSD 3-Clause License. See LICENSE.


Contacts

For bugs or feature requests, please open an issue.


Acknowledgments

CRESCENT Logo NSF Logo

This project is supported by the National Science Foundation through the Cascadia Region Earthquake Science Center (CRESCENT), Cooperative Agreement EAR-2225286.

About

AWS Lambda functions powering on-demand data extraction (subvolumes, slices, profiles) for the CRESCENT CVM web viewer.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages