Git Product home page Git Product logo

alex870521 / satellite_s5p Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 23.26 MB

This Python script processes nitrogen dioxide (NO2) satellite data by extracting relevant information based on geographical conditions, interpolating values using a KD-tree algorithm, and aggregating monthly averages. The resulting data is stored in NetCDF files for further analysis.

Python 100.00%
netcdf4 no2 satellite

satellite_s5p's Introduction

Satellite_S5P

NO2 Data Processing Script

This Python script is designed to process and analyze nitrogen dioxide (NO2) data from satellite observations. Here's a breakdown of its main components:

Data Extraction:

The script uses the extract_data function to filter and extract relevant NO2 data from a given dataset based on predefined geographical conditions (latitude and longitude ranges) and a quality threshold (qa_value).

Data Interpolation:

The interp_data function utilizes a KD-tree algorithm to find the nearest neighbors in a 2D array of latitude and longitude. It then performs linear interpolation using the map_coordinates function to estimate NO2 values at specified target coordinates.

Main Loop:

The script iterates through folders corresponding to different months of a specified year, each containing NetCDF files of satellite observations. For each NetCDF file, it extracts and interpolates NO2 data and stores the results.

Data Aggregation:

The script aggregates the processed NO2 data from multiple files within a month, calculating the average.

Output:

The processed NO2 data is stored in NetCDF format, with each file representing a month of observations.

Folder Skipping:

The script checks if the output NetCDF file already exists. If it does, it skips processing that particular folder to avoid unnecessary computations.

Usage:

The script is designed to be run for a specific year, processing monthly satellite observations of NO2 data and generating NetCDF files for further analysis or visualization.

Dependencies:

The script relies on various Python libraries, including NumPy, xarray, scipy, and netCDF4, for efficient data manipulation and processing. This script is particularly useful for researchers or analysts working with satellite-derived NO2 data, allowing them to extract, interpolate, and aggregate information for further study.

satellite_s5p's People

Contributors

alex870521 avatar

Stargazers

 avatar CHAO KUAN-YU avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.