Skip to content
forked from bugsuse/pytropomi

To download Sentinel-5 Product from TROPOMI's s5phub

License

Notifications You must be signed in to change notification settings

zxdawn/pytropomi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytropomi

This python module is to download Sentinel-5 from s5phub data center of TROPOMI, and now just support to download Sentinel-5 product. Please read User'guide if you want to know about the details of Sentinel-5 data.

Install

To install the pachage using commands as follow

   git clone https://github.com/bugsuse/pytropomi.git
   cd pytropomi
   python setup.py install

Usage

The package now support to download the multi-type product, including Level1B and Level2 product of NO2, O3, SO2 and so on, given the date range, and you can provide a pair of longitude and latitude coordinate or a polygon and/or the interaction area of two polygon to filter the product

  • filter results given a pair of longitude and latitude coordinate
    from datetime import datetime
    from pytropomi.downs5p import downs5p
    
    beginPosition = datetime(2019, 7, 7, 0)
    endPosition = datetime(2019, 7, 7, 23)
    
    pro = 'L2_NO2___'

    longitude = 120
    latitude = 30

    downs5p(producttype=pro, longitude=longitude, latitude=latitude, processingmode='Near real time',
            beginPosition=beginPosition, endPosition=endPosition)
  • filter results given the polygon and/or the intersection area of two polygon (polygon and area params)
   from shapely.geometry import Polygon
   
   polygon = Polygon([(100, 20), (105, 25), (110, 30), (115, 35), (120, 30), (125, 25), (130, 20), (120,
   area = 20
    
   pro = 'L2_O3____'

   downs5p(producttype=pro, polygon=polygon, area=area, processingmode='Near real time', 
           beginPosition=beginPosition, endPosition=endPosition)

Please check the scripts inside the examples directory to get the usage about the package.

About

To download Sentinel-5 Product from TROPOMI's s5phub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%