Skip to content

Commit

Permalink
Update earth_access_authenticate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulprathin8 authored Jun 15, 2023
1 parent b76cd30 commit a2476ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/earth_access_authenticate.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

ssh_short_name = "SEA_SURFACE_HEIGHT_ALT_GRIDS_L4_2SATS_5DAY_6THDEG_V_JPL2205"

auth = earthaccess.login(strategy="netrc", persist=True)

results = earthaccess.search_data(
short_name=ssh_short_name,
cloud_hosted=True,
Expand All @@ -28,7 +30,7 @@
temporal=("2021-07-01", "2021-09-30"),
)

auth = earthaccess.login(strategy="netrc", persist=True)

ds = xr.open_mfdataset(earthaccess.open(results))
geojson_url = 'https://raw.githubusercontent.com/earth-artificial-intelligence/earth_data_cloud_clinic_geoweaver/main/gulf.json'

Expand Down

0 comments on commit a2476ea

Please sign in to comment.