You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

climate-resilience

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

climate-resilience

Download, Preprocessing, and Visualization code for climate resilience data.

0.4.10
Source
pipPyPI
Maintainers
1

climate-resilience

PyPI

Download Examples

This file requires a download_params.yml file to specify the download configurations.

We cannot directly download the data from the Google Earth Engine directly onto the local machine. So the best option is to download to the drive and then download that data to the local drive.

Preprocess Examples

The preprocessing functions will expect that the local data drive contains the downloaded data.

If the data is on drive, the drive needs to be mounted. This is easier to do in a google colab session. Once the drive is mounted, the path of the mounted drive can be used with the functions as normal.

Expected file and directory structure:

The input file and directory structure for functions calculate_Nth_percentile(), calculate_pr_count_amount(), and calculate_temporal_mean() in the preprocessing code should be as follows:

datadir
├── scenario1_variable1_ensemble
│   ├── name1_state1_scenario1_variable1.csv
│   └── name2_state2_scenario1_variable1.csv
├── scenario1_variable2_ensemble
│   ├── name1_state1_scenario1_variable2.csv
│   └── name2_state2_scenario1_variable2.csv
├── scenario2_variable1_ensemble
│   ├── name1_state1_scenario2_variable1.csv
│   └── name2_state2_scenario2_variable1.csv
└── scenario2_variable2_ensemble
    ├── name1_state1_scenario2_variable2.csv
    └── name2_state2_scenario2_variable2.csv

Visualization Examples

The visualization code will be easier to be used in a notebook as inline visualizations can be used.

Map visualization notebook

Below is a screenshot of the interactive map with the sites marked.

Map

Map Colorbar

Box plot visualization notebook

Below is a screenshot of boxplot of annual precipitation in different regions of the United States.

Boxplot

Library Features:

Downloader

  • Class SiteDownloader member functions:

Preprocessing functions

Vizualization functions

Contributors

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts