Skip to content

Instantly share code, notes, and snippets.

View prl900's full-sized avatar

Pablo Rozas Larraondo prl900

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import datacube
import sys
import itertools
import numpy as np
import os
from datacube.drivers.netcdf import write_dataset_to_netcdf
# Code from: https://ncar.github.io/xdev/posts/writing-multiple-netcdf-files-in-parallel-with-xarray-and-dask/
def split_by_chunks(dataset):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{"18957.0": 4719999.912807265, "19739.0": 63749.99732444094, "20472.0": 871250.0276801381, "20574.0": 8750.00607883609, "20710.0": 79999.99018715195, "20736.0": 130625.11269859812, "20740.0": 208749.97853582955, "20742.0": 4375.00072519131, "20770.0": 9375.02748461089, "20778.0": 523124.99030391785, "20779.0": 31874.999000900378, "20780.0": 42499.99675271202, "20795.0": 120624.96323982326, "20796.0": 231249.8288478491, "20798.0": 250625.04962768898, "20800.0": 3750.0012397314194, "20814.0": 3496250.1213005986, "20833.0": 161875.0247962468, "20835.0": 311249.76026900136, "20870.0": 1970624.4366556183, "21008.0": 27585625.902393483, "21009.0": 388124.7606647624, "21010.0": 679999.9723642934, "21011.0": 169375.010526169, "21013.0": 676249.9208642985, "21016.0": 894999.911322775, "21017.0": 1159375.6560276686, "21018.0": 2969375.0783659313, "21022.0": 458750.1176289106, "21029.0": 163124.9217924903, "21030.0": 729999.9861395892, "21031.0": 458124.75947191345, "21033.0": 57499.95898184181, "21034.0": 84374.9645932
{"18957.0": ["r68uxwcrg", "r68uz4tn6", "r68uz5rvb", "r68uzm0e3", "r68uzscun", "r69h9phfb", "r69hcbumf", "r69hcj1wb", "r69j1bved"], "19739.0": ["r68u7qhrr"], "20472.0": ["r68u7sv7k", "r68u7t0ye", "r68ue3zc9", "r68uk1g7f"], "20574.0": ["r6de8zc8e"], "20710.0": ["r69qnp4gu", "r69qq0e4q", "r69qq0w27"], "20736.0": ["r69qjfnft", "r69qjvpdx", "r69qnj69g"], "20740.0": ["r69jnke4u", "r69jnmssr", "r69jnmwxt", "r69jnud35", "r69jnvk7k", "r69jnvwsr", "r69jnyye0"], "20742.0": ["r68uz79zz"], "20770.0": ["r69qrh45z"], "20778.0": ["r69hgvet5", "r69hgy01x", "r69j52zn5", "r69j5b6t3", "r69j5bks9"], "20779.0": ["r69hg4tw2", "r69hg5nt1", "r69hg7g7e", "r69j58h4m"], "20780.0": ["r69m75qs5"], "20795.0": ["r69hcx9su", "r69hcxqcp"], "20796.0": ["r69m0km1y", "r69m0rmn0", "r69m0x5qf", "r69m20dbp"], "20798.0": ["r69hup770", "r69jh82p4"], "20800.0": ["r69mueujc"], "20814.0": ["r69w0rdr3", "r69w3r4tg", "r69w82kh9", "r69w83kzx", "r69w89u9p"], "20833.0": ["r69m6z76m"], "20835.0": ["r69m6myz3", "r69m6qzqn", "r69m6rpxh", "r69m6ty75", "r69m6w3k9