Skip to content

Commit c5032cd

Browse files
committed
feat: Complete multi-satellite API integration and optimize usage
1 parent 3347429 commit c5032cd

19 files changed

+680
-331
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UTF-8
259 Bytes
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
11.2 MB
Binary file not shown.
108 Bytes
Binary file not shown.

examples/ECMWF_ERA5.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def main():
88
# 1. Set parameters
9-
start_date, end_date = datetime(2025, 3, 1), datetime(2025, 3, 19)
9+
start_date, end_date = datetime(2022, 1, 1), datetime(2024, 12, 31)
1010

1111
# Variables to retrieve, options:
1212
# - 'boundary_layer_height'
@@ -41,6 +41,7 @@ def main():
4141
variables=variables,
4242
pressure_levels=pressure_levels,
4343
stations=STATIONS,
44+
download_mode='all_at_once'
4445
)
4546

4647
# 4. Download data

examples/ESA_Sentinel5P.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
def main():
77
# 1. Set parameters
8-
start_date, end_date = datetime(2025, 3, 1), datetime(2025, 3, 13)
8+
start_date, end_date = datetime(2025, 3, 1), datetime.now()
99

1010
# File class options:
1111
# - 'NRTI': Near Real-Time data

examples/NASA_MODIS.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
def main():
77
# 1. Set parameters
8-
start_date, end_date = datetime(2025, 3, 1), datetime(2025, 3, 12)
8+
start_date, end_date = datetime(2025, 3, 1), datetime.now()
99

1010
# Product type options:
1111
# - 'MOD04': Terra satellite MODIS aerosol product
1212
# - 'MYD04': Aqua satellite MODIS aerosol product
1313
# - 'MCD04': Combined Terra and Aqua MODIS aerosol product (Not implemented)
14-
modis_product_type = "MYD04"
14+
modis_product_type = "MOD04"
1515

1616
# 2. Create data hub instance
1717
modis_hub = MODISHub()

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@ schedule~=1.2.2
2525
cdsapi~=0.7.5
2626
sentinelsat~=1.2.1
2727
earthaccess~=0.14.0
28-
pyhdf~=0.11.6
28+
pyhdf~=0.11.6
29+
pytz~=2024.2

src/api/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def _normalize_time_inputs(self, start_date, end_date, set_timezone=True):
177177
tz_info = timezone.utc
178178

179179
# Step 4: Get current time for validation (with matching timezone setting)
180-
now = datetime.now(tz_info if set_timezone else None)
180+
now = datetime.now()
181181

182182
# Step 5: Validate dates are not in the future
183183
if start_date > now:

0 commit comments

Comments
 (0)