lets download all stac files for a particular polarisation product
s5cmd cp s3://deant-data-public-dev/experimental/for_zhengshu/ga_s1_nrb_iw_hh_0/*/*/*/*/*stac-item.json .
let's use stac_geoparquet
>>> import stac_geoparquet
lets download all stac files for a particular polarisation product
s5cmd cp s3://deant-data-public-dev/experimental/for_zhengshu/ga_s1_nrb_iw_hh_0/*/*/*/*/*stac-item.json .
let's use stac_geoparquet
>>> import stac_geoparquet
apiVersion: argoproj.io/v1alpha1 | |
kind: WorkflowTemplate | |
metadata: | |
name: workflow-template-submittable | |
spec: | |
entrypoint: dag | |
templates: | |
- name: dag | |
inputs: | |
parameters: |
import cartopy.crs as ccrs | |
from mpl_toolkits.axes_grid1 import make_axes_locatable | |
proj = ccrs.PlateCarree() | |
fig, ax = plt.subplots(subplot_kw=dict(projection=proj), figsize=(10, 10)) | |
s = ax.scatter(x['longitude'], x['latitude'], 10, x['iwv']) | |
gl = ax.gridlines(crs=proj, alpha=0.5, linestyle='--', draw_labels=True) | |
ax.coastlines(resolution='50m', color='black', linewidth=1) |
nix-build --attr system "./nixos.nix" -o result-closure | |
readlink -f result-closure > closure-nix-store-path.txt | |
rm -r system | |
mkdir system | |
nix copy ./result-closure --to file://./system |
# http://cimss.ssec.wisc.edu/training_data/ | |
# Record number:15,704 | |
# Record length: 338 | |
# Datatype: real*4 | |
# RECORD FIELDS | |
# 1:101 temperature profile [K] | |
# 102:202 mixing ratio profile [kg/kg] | |
# 203:303 ozone profile [ppmv] |
-- example of a dumb function which adds one to its input, and throws exception if given 0 | |
addOne :: Int -> Int | |
addOne n = case n of | |
0 -> error "dont add 0" | |
_ -> 1 + n | |
-- λ> 2 + (addOne 1) | |
-- 4 |