This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* File: geoparquet.cpp | |
* | |
* Purpose: A minimal example to build a GeoParquet file using Apache Arrow. | |
* | |
* Prerequisites: The Apache Arrow library is needed and can be installed as follows | |
* $ git clone https://github.com/apache/arrow.git | |
* $ cd arrow/cpp | |
* $ mkdir build | |
* $ cd build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Imports | |
from sliderule import icesat2 | |
# Settings | |
url = "icesat2sliderule.org" | |
asset = "nsidc-s3" | |
verbose = True | |
# Initialize Client | |
icesat2.init(url, verbose=verbose) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Imports | |
from sliderule import icesat2 | |
# Initialize Client | |
icesat2.init("icesat2sliderule.org", True) | |
# Setup Datasets to Read | |
datasets = [ {"dataset": "/gt3r/signal_photons/classed_pc_indx", "col": 0, "startrow": 0, "numrows": -1} ] | |
# Read Dataset # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Imports | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
from sklearn.cluster import KMeans | |
import geopandas as gp | |
# Read in shapefile | |
gdf = gp.read_file("01_rgi60_Alaska.shp") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Imports | |
from sliderule import icesat2 | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import logging | |
# Settings | |
url = "icesat2sliderule.org" | |
asset = "nsidc-s3" | |
verbose = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sliderule import icesat2 | |
# Configure SlideRule # | |
icesat2.init("icesat2sliderule.org") | |
# Setup Datasets to Read | |
datasets = [ {"dataset": "/gt1l/land_ice_segments/h_li", "col": 0, "startrow": 0, "numrows": -1} ] | |
# Read Dataset # | |
heights = icesat2.h5p(datasets, "ATL06_20190626143632_13640310_004_01.h5", "nsidc-s3") |