reference:
https://pypi.org/project/cdasws/
https://berniegsfc.github.io/cdasws/jupyter/CdasWsDataRetrieval.html
https://cdaweb.gsfc.nasa.gov/WebServices/REST/jupyter/CdasWsIdlExample.html
import sys
from datetime import datetime
from rich.console import Console
console = Console(highlight=False)#,force_jupyter=False,width=999)
from cdasws.cdasws import CdasWs, TimeInterval
from cdasws.datarepresentation import DataRepresentation as dr
from cdasws.doi import get_doi_landing_page_url, get_doi_badge_url, get_doi_hdp_url
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
from IPython.core.display import HTML
today = datetime.now().strftime('%Y-%B-%d')
def display_link(
url: str,
text: str) -> None:
display(HTML(f'<a href="{url}" target="_blank">{text}</a>'))
def display_image_link(
url: str,
image_url: str) -> None:
display(HTML(f'<a href="{url}" target="_blank"><img src={image_url}/></a>'))
# Injects CSS to target the notebook's standard output stream container
display(HTML('''
<style>
div.output_area pre {
font-size: 16px !important;
}
</style>
'''))