Skip to content

Instantly share code, notes, and snippets.

@Cadair
Created July 1, 2022 14:00
Show Gist options
  • Save Cadair/eeea235c6d9a2522629b19e86d1a0155 to your computer and use it in GitHub Desktop.
Save Cadair/eeea235c6d9a2522629b19e86d1a0155 to your computer and use it in GitHub Desktop.
from pathlib import Path
import matplotlib.pyplot as plt
import astropy.units as u
import dkist
from dkist.net import transfer_complete_datasets
plt.ion()
basepath = Path("/storfa/dkist/globus/")
proposal_id = "pid_1_22"
# Uncomment this to download the data, it expects gcp to be working.
# transfer_complete_datasets("AJNMA", path=basepath)
# transfer_complete_datasets("AKNPB", path=basepath)
# This one is misbehaving
ds1 = dkist.Dataset.from_directory(basepath / proposal_id / "AJNMA")
# This one is apparently OK
ds2 = dkist.Dataset.from_directory(basepath / proposal_id / "AKNPB")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment