Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 11, 2025
1 parent 59e2d08 commit 677b57e
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 36 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

All notable changes to **GOES-API** will be documented in this file.

## \[0.0.1\] - GOES-API Birth Date - 2023-03-27
## [0.0.1] - GOES-API Birth Date - 2023-03-27

First release of GOES-API.
1 change: 0 additions & 1 deletion ci/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ dependencies:
- pytest-cov
- pytest-mock
- pytest-sugar

1 change: 0 additions & 1 deletion ci/environment_latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ dependencies:
- pytest-cov
- pytest-mock
- pytest-sugar

6 changes: 3 additions & 3 deletions docs/ABI_SCAN_MODES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ Mode 3 (GOES16, GOES17)
- Default operational mode till April 2, 2019
- FULL DISK every 15 minutes
- CONUS/PACUS every 5 minutes
- Mesoscale every 1 minutes (TODO: when 30 seconds)
- Mesoscale every 1 minutes (TODO: when 30 seconds)

Mode 6 (difference between GOES-16 and GOES-17)
Mode 6 (difference between GOES-16 and GOES-17)

- Default operational mode till since April 2, 2019
- FULL DISK every 10 minutes
- CONUS/PACUS every 5 minutes
- Mesoscale every 1 minutes (TODO: when 30 seconds)
- Mesoscale every 1 minutes (TODO: when 30 seconds)

Mode 4

Expand Down
10 changes: 5 additions & 5 deletions docs/DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

GOES-16 (GOES-R)

- November 30 - December 11 2017: Drifting from 89.5 °W to the GOES-East operational location (75.2° W) \[todo: check if 89.5 is correct\]
- November 30 - December 11 2017: Drifting from 89.5 °W to the GOES-East operational location (75.2° W) [todo: check if 89.5 is correct]
- Nominal operation resumed on December 18, 2017
- Declared GOES-EAST on December 18, 2017
- Biased IR bands before June 19, 2018
Expand Down Expand Up @@ -62,7 +62,7 @@ Calibration event log

Precomputed angles/latlon

- https://www.star.nesdis.noaa.gov/pub/smcd/spb/fwu/tmp/latlon_angle/ (lon=-135.0 deg) and East (lon=-75.0)
- https://www.star.nesdis.noaa.gov/pub/smcd/spb/fwu/tmp/latlon_angle/ (lon=-135.0 deg) and East (lon=-75.0)

GOES weighting functions

Expand Down Expand Up @@ -142,7 +142,7 @@ The L2 Cloud and Moisture Imagery (MCMIP) products contains all the 16 spectral
## ABI Raw Data

Data are saved as 16-bit scaled integers, rather than 32-bit floating point values.
To unpack: unpacked_value = packed_value * scale_factor + add_offset
To unpack: unpacked_value = packed_value * scale_factor + add_offset
To pack: packed_value = (unpacked_value - add_offset) / scale_factor
--> The scale factor is calculated with the formula (Max Value - Min Value)/65530

Expand Down Expand Up @@ -202,7 +202,7 @@ Oracle cloud storage

- https://opendata.oraclecloud.com/ords/r/opendata/opendata/details?data_set_id=2&clear=CR,8&session=2142808942446

Microsoft West Europe Azure Blob Storage (only limited products)
Microsoft West Europe Azure Blob Storage (only limited products)

- https://planetarycomputer.microsoft.com/dataset/goes-cmi
- https://planetarycomputer.microsoft.com/dataset/goes-cmi#Storage-Documentation
Expand All @@ -216,7 +216,7 @@ Microsoft West Europe Azure Blob Storage (only limited products)
- [fsspec](https://github.com/fsspec)
- [s3fs](https://s3fs.readthedocs.io/en/latest/) (via boto3)
- [gcsfs](https://gcsfs.readthedocs.io/en/latest/index.html)
- [adlfs](https://github.com/fsspec/adlfs) (via azure.storage.blob ???)
- [adlfs](https://github.com/fsspec/adlfs) (via azure.storage.blob ???)

## Example cloud bucket url

Expand Down
48 changes: 24 additions & 24 deletions goes_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,41 +62,41 @@
)

__all__ = [
"define_configs",
"read_configs",
"available_protocols",
"available_sensors",
"available_satellites",
"available_sectors",
"available_product_levels",
"available_products",
"available_scan_modes",
"available_channels",
"available_connection_types",
"available_group_keys",
"get_available_online_product",
"download_files",
"available_product_levels",
"available_products",
"available_protocols",
"available_satellites",
"available_scan_modes",
"available_sectors",
"available_sensors",
"define_configs",
"download_closest_files",
"download_daily_files",
"download_files",
"download_latest_files",
"download_monthly_files",
"download_next_files",
"download_previous_files",
"download_daily_files",
"download_monthly_files",
"find_files",
"find_latest_files",
"find_closest_files",
"find_previous_files",
"find_next_files",
"find_closest_start_time",
"find_latest_start_time",
"group_files",
"ensure_operational_data",
"ensure_data_availability",
"ensure_operational_data",
"ensure_regular_timesteps",
"filter_files",
"find_closest_files",
"find_closest_start_time",
"find_files",
"find_latest_files",
"find_latest_start_time",
"find_next_files",
"find_previous_files",
"generate_kerchunk_files",
"open_explorer",
"open_explorer_dir",
"get_available_online_product",
"group_files",
"open_abi_channel_guide",
"open_abi_product_guide",
"open_explorer",
"open_explorer_dir",
"read_configs",
]
2 changes: 1 addition & 1 deletion goes_api/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def decorator(*args, **kwargs):
# Multiproduct case
if isinstance(kwargs["product"], list):
products = kwargs["product"]
group_by_key = kwargs.get("group_by_key", None)
group_by_key = kwargs.get("group_by_key")
operational_checks = kwargs.get("operational_checks", True)
list_fpaths = []
for product in products:
Expand Down

0 comments on commit 677b57e

Please sign in to comment.