import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import xarray as xr
import aiohttp
import time
from contextlib import contextmanager
import matplotlib.pyplot as plt
import seaborn as sns
import intake
import os
import fsspec.implementations.http as fshttp
from pelicanfs.core import PelicanFileSystem, PelicanMap, OSDFFileSystem
%%time
osdf_fs = OSDFFileSystem(direct_reads =True) # OSDFFileSystem is already aware of the osdf discovery url
CPU times: user 2.27 ms, sys: 810 μs, total: 3.08 ms
Wall time: 2.53 ms
%%time
osdf_fs.ls('/ncar/rda/d300000')
CPU times: user 3.63 ms, sys: 180 μs, total: 3.81 ms
Wall time: 40.4 ms