satpy | Python package for earth-observing satellite data processing

 by   pytroll Python Version: 0.49.0 License: GPL-3.0

kandi X-RAY | satpy Summary

kandi X-RAY | satpy Summary

satpy is a Python library typically used in Internet of Things (IoT) applications. satpy has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has medium support. You can install using 'pip install satpy' or download it from GitHub, PyPI.

Python package for earth-observing satellite data processing
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              satpy has a medium active ecosystem.
              It has 924 star(s) with 263 fork(s). There are 31 watchers for this library.
              There were 1 major release(s) in the last 6 months.
              There are 344 open issues and 560 have been closed. On average issues are closed in 156 days. There are 85 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of satpy is 0.49.0

            kandi-Quality Quality

              satpy has 0 bugs and 0 code smells.

            kandi-Security Security

              satpy has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              satpy code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              satpy is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              satpy releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed satpy and discovered the below as its top functions. This is intended to give you an instant insight into satpy implemented functionality, and help decide if they suit your requirements.
            • Convert NTL colors to RGB colors
            • Create a colormap
            • Merge colormaps
            • Palettize an image
            • Generate available datasets
            • Determine if a file type matches the file type
            • Read the header
            • Get available channels
            • Get tile properties
            • Temporarily change debug mode
            • Perform db normalization
            • Get area definition
            • Get a single dataset
            • Load a list of datasets
            • Reads a GRIB file
            • Yield available datasets
            • Performs a resampling
            • Generate tile info
            • Load a dataset
            • Get a dataset
            • Get the satellite coordinates from the data array
            • Save a dataset
            • Read a netCDF file
            • Get a dataset
            • Perform normalization of db
            • Compute the heatmap
            Get all kandi verified functions for this library.

            satpy Key Features

            No Key Features are available at this moment for satpy.

            satpy Examples and Code Snippets

            Merging GOES17, EUMETSAT, GK-2A Meteorological satellite image
            Pythondot img1Lines of Code : 5dot img1License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            scn = Scene()
            scn["C13"] = resampled_goes17_scene["C13"]
            ... and so on for the other sensors ...
            scn.load(["custom_composite"])
            
            GOES 17 netcdf file convert to Plate Carree
            Pythondot img2Lines of Code : 18dot img2License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            from pyresample import create_area_def
            area_def = create_area_def("my_area_def", "+proj=eqc +datum=WGS84", resolution=2000)
            
            
            from satpy import Scene
            from glob import glob
            from pyresample import create_area_def
            
            are
            Why do I using satpy on Himawari-8 standard data failed?
            Pythondot img3Lines of Code : 4dot img3License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            scn = Scene(filenames=files,  reader='ahi_hsd',filter_parameters={'start_time': datetime(2021,5,25,2,00), 'end_time': datetime(2021,5,25,2,10)})
            
            files = glob.glob(r'D:\ftp_h8_hsd_25Jul\*.dat')
            
            Get nearest pixel value from satellite image using latitude longitude coordinates
            Pythondot img4Lines of Code : 5dot img4License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            area = scn['VIS006'].attrs['area']
            col_idx, row_idx = area.get_xy_from_lonlat(lons, lats)
            
            scn['VIS006'].values[row_idx, col_idx]
            
            Regrid geostationary GOES satellite data to a cartesian grid
            Pythondot img5Lines of Code : 18dot img5License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            from satpy import Scene
            from pyresample import create_area_def
            
            # analyze filenames and what is in them
            scn = Scene(reader='abi_l1b', filenames=abi_filenames)
            
            # load a specific band
            scn.load(['C07'])
            
            # create a custom area that fits the 

            Community Discussions

            QUESTION

            Could not load HDF Modis data with satpy
            Asked 2022-Apr-11 at 14:31

            one maybe silly question. I want to load MODIS hdf data with python. The datasets are available at Earthdata. First of all a generated a list of data, which match the datestemp.

            ...

            ANSWER

            Answered 2022-Apr-11 at 14:31

            I'll repeat my comment here so this question can be considered resolved (you'll need to select this as the accepted answer).

            The error message you are getting is coming from the underlying pyhdf library and not Satpy. This suggests your HDF4 file is corrupt in some way or maybe not actually an HDF4 file. You could try running ncdump -h your_file.hdf on the command line and if it succeeds then that suggests the file is NOT corrupt.

            As you commented, it seems the files from Earthdata are corrupt in some way. The same files from LAADS are fine. If you're up for it, I would recommend contacting the Earthdata group about the issues you've discovered.

            Source https://stackoverflow.com/questions/71798245

            QUESTION

            Merging GOES17, EUMETSAT, GK-2A Meteorological satellite image
            Asked 2022-Feb-24 at 06:30

            I want to generate global weather satellite image using GOES17, EUMETSAT, and GK-2A. I want make it Plate carree coordinate. (GOES 17 netcdf file convert to Plate Carree)

            First, using Satpy, I made plate carree image.

            ...

            ANSWER

            Answered 2022-Feb-22 at 15:24

            There are some ways to do this inside Satpy, but typically people have specific ways they want the data joined together. That is a question you'll have to answer before you choose the code you want. First though you need to make a Scene for each separate satellite image you want in the final image and resample them to the same grid. A DynamicAreaDefinition (as you're using now) is not good for this overall process as each resampled Scene would be on a different final area (based on the satellite data being resampled that "froze" the DynamicAreaDefinition).

            Your options for merging:

            1. Satpy has a BackgroundCompositor where you can put one image on top of another. There is some documentation for creating a custom composite where you could make a composite like this. A series of these composites could be chained together to get the overall global composite you are looking for. You can put all the datasets in the same Scene to make things easier:

            Source https://stackoverflow.com/questions/71216490

            QUESTION

            GOES 17 netcdf file convert to Plate Carree
            Asked 2022-Feb-22 at 12:23

            Sample file can download from https://noaa-goes17.s3.amazonaws.com/ABI-L1b-RadF/2021/213/00/OR_ABI-L1b-RadF-M6C13_G17_s20212130000319_e20212130009396_c20212130009445.nc

            I am trying to convert a projection to a plate carree.

            I loaded netcdf using Satpy.

            ...

            ANSWER

            Answered 2022-Feb-22 at 12:23

            That documentation could definitely be improved (I'm not complaining, I'm one of the authors). For one, it should point to this documentation from pyresample on how to make a custom AreaDefinition:

            https://pyresample.readthedocs.io/en/latest/geometry_utils.html

            For your case of wanting to resampling to a plate carree (equirectangular) projection, you could try something like this:

            Source https://stackoverflow.com/questions/71201417

            QUESTION

            Why do I using satpy on Himawari-8 standard data failed?
            Asked 2022-Jan-14 at 08:02

            When I use satpy to read Himawari-8 standard datas, the terminal always says " 'filenames' was provided but is empty. "

            The Himawari-8 has 16 observation bands, and it take one full disk picture every 10 minutes so for one folder of observation result which contains 16 folders(one folder is one band), and each band is separated into 10 parts so in one band folder it has 10 files.
            The format of Himawari-8 standard data is .dat, and the data named as HS_aaa_yyyymmdd_hhnn_Bbb_cccc_Rjj_Skkll.DAT.

            ...

            ANSWER

            Answered 2022-Jan-14 at 03:47

            The error message means that you are passing an empty list to the Scene object. So in this line of code (you can see it in the error traceback):

            Source https://stackoverflow.com/questions/70515790

            QUESTION

            Get nearest pixel value from satellite image using latitude longitude coordinates
            Asked 2021-Mar-02 at 13:04

            I have a satellite image file. Loaded into dask array. I want to get pixel value (nearest) of a latitude, longitude of interest.

            Satellite image is in GEOS projection. I have longitude and latitude information as 2D numpy arrays.

            Satellite Image file

            I have loaded it into a dask data array

            ...

            ANSWER

            Answered 2021-Mar-02 at 07:17

            You can find the location with following:

            Source https://stackoverflow.com/questions/66433948

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install satpy

            You can install using 'pip install satpy' or download it from GitHub, PyPI.
            You can use satpy like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install satpy

          • CLONE
          • HTTPS

            https://github.com/pytroll/satpy.git

          • CLI

            gh repo clone pytroll/satpy

          • sshUrl

            git@github.com:pytroll/satpy.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link