Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Grounding Lines

ESA
import geopandas as gpd
import matplotlib.pyplot as plt

bucket = 's3://EarthCODE/'
endpoint_url = "https://s3.waw4-1.cloudferro.com"
region_name = "eu-west-2"
file = 'OSCAssets/polar_cube_datasets/groundlines/InSAR_GL_Antarctica.parquet'
gdf = gpd.read_parquet(
    f"{bucket}{file}",
    storage_options={ "anon": True, 
                    "client_kwargs": {
                        "endpoint_url": endpoint_url,
                        "region_name": region_name
                    }
    }
)
gdf['SENSOR'].unique()
array(['PALSAR', 'ERS', 'R2', 'RSAT', 'SENTINEL1A', 'CSK'], dtype=object)
fig, ax = plt.subplots(figsize=(12,12))
gdf.to_crs('epsg:3031').plot(column='SENSOR', legend=True, ax=ax)
ax.set_title('Groundline Sensors')
<Figure size 1200x1200 with 1 Axes>
fig, ax = plt.subplots(figsize=(12,12))
gdf.to_crs('epsg:3031').plot(column=gdf['DATE1'].dt.year.round(), 
                             legend=True, categorical=True, ax=ax, cmap='tab20')
ax.set_title('Groundline Year')
<Figure size 1200x1200 with 1 Axes>