Metadata-Version: 2.1
Name: swesarr_pytools
Version: 0.1.9
Summary: Library for data retrieval and processing of NASA GSFC Snow Water Equivalent Synthetic Aperture Radar and Radiometer data.
Author: Hans Peter Marshal, Dylan R Boyd
Author-email: Evi Ofekeze <eviofekeze@u.boisestate.edu>
License: MIT License
Project-URL: Homepage, https://github.com/eviofekeze/swesarr_pytools
Keywords: swesarr_pytools
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: pytest
Requires-Dist: pandas
Requires-Dist: requests
Requires-Dist: rioxarray
Requires-Dist: xarray
Requires-Dist: geopy
Requires-Dist: beautifulsoup4
Provides-Extra: all
Requires-Dist: swesarr_pytools[extra]; extra == "all"
Provides-Extra: extra
Requires-Dist: pandas; extra == "extra"

# swesarr_pytools


[![image](https://img.shields.io/pypi/v/swesarr_pytools.svg)](https://pypi.python.org/pypi/swesarr_pytools)

[//]: # ([![image]&#40;https://img.shields.io/conda/vn/conda-forge/swesarr_pytools.svg&#41;]&#40;https://anaconda.org/conda-forge/swesarr_pytools&#41;)


**Library for data retrieval and processing of NASA GSFC Snow Water Equivalent Synthetic Aperture Radar and Radiometer data.**

swesarr_pytool is a python library created for data retrieval and processing of NASA GSFC Snow Water Equivalent Synthetic
Aperture Radar and Radiometer data.

The Snow Water Equivalent Synthetic Aperture Radar and Radiometer (SWESARR) is a Tri-Frequency Radar and Radiometer
instrument designed to measure the water content in a snowpack. The instrument, developed at NASA’s Goddard Space Flight
Center, uses active and passive microwave sensors to map the radio frequency emissions of the snowpack, which can then be turned into a measurement of
snow water equivalent.

SWESARR has three active (including a dual Ku band) and three passive bands. Radar data is collected in dual polarization
(VV, VH) while the radiometer makes single polarization (H) observations.

Additionally, SWESARR contains airborne microwave brightness temperature observations. Observations were made at three
frequencies (10.65, 18.7, and 36.5 GHz; referred to as X, K, and Ka bands, respectively), at horizontal polarization
with a nominal 45-degree look angle.


To learn more about SWESARR, please see this tutorial delivered during the NASA Earth Science & UW Hackweek 2024:
https://snowex-2024.hackweek.io/tutorials/swesarr/swesarr_tut.html

For general information about swesarr see:

- https://earth.gsfc.nasa.gov/bio/instruments/snow-water-equivalent-sar-and-radiometer-swesarr
- https://snow.nasa.gov/instruments/swesarr
- https://www.thenewtoncorp.com/case-studies/swesarr-snow-water-equivalent-synthetic-aperture-radar-and-radiometer

-----
-   Free software: MIT License
-   Documentation: https://eviofekeze.github.io/swesarr_pytools


## Features

To install the package:

```commandline
pip install swesarr_pytools
```

### **Usage**
**Accessing metadata**

The package provide a functionality to retrieve available SWESARR flight paths and flight date, additionally
flight path or list of flight path within a date range can be retrieved if such flight path exist

```python
from swesarr_pytools.access_swesarr import AccessSAR
from datetime import date

# Instantiate the Access Object
swesarr_object = AccessSAR()

# Retrieve meta
swesarr_metadata = swesarr_object.data_meta

# Retrieve flight path
flight_paths = swesarr_object.flight_names

# Retrieve flight date
flight_dates = swesarr_object.flight_dates

# search for flight within a date range
available_dates = swesarr_object.available_date_within_range(start_date=date(2019, 1, 1),
                                                             end_date=date(2019, 12, 31))

```
**Data Manipulation**

The package also provides additional functionality for;
- Reading a raster, Lidar and SWESARR
- Converting these to Dataframe
- Combining Fall and Winter SWESARR flights into one data frame for analysis
Please see the  notebook directory for additional examples


**Reference:**

[1] R. Rincón et al., "Performance of Swesarr's Multi-Frequency Dual-Polarimetry Synthetic Aperture Radar During Nasa's
Snowex Airborne Campaign," IGARSS 2020 - 2020 IEEE International Geoscience and Remote Sensing Symposium, Waikoloa, HI,
USA, 2020, pp. 6150-6153, doi: 10.1109/IGARSS39084.2020.9324391. keywords: {Radar;Snow;Radar antennas;Synthetic aperture
radar; Spaceborne radar;Airborne radar;Instruments;Snow;SAR;SWE},

[2] D. R. Boyd, A. M. Alam, M. Kurum, A. C. Gurbuz and B. Osmanoglu, "Preliminary Snow Water Equivalent Retrieval of
SnowEX20 Swesarr Data," IGARSS 2022 - 2022 IEEE International Geoscience and Remote Sensing Symposium, Kuala Lumpur,
Malaysia, 2022, pp. 3927-3930, doi: 10.1109/IGARSS46834.2022.9883412. keywords: {Radio frequency;Sensitivity;Radar
measurements;Spaceborne radar;Snow;NASA;Prediction algorithms;Snow;SWE;Radar;SWESARR;SAR;SnowEx},



