This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""A REST API for Globus-based searches that mimics esg-search. | |
This API is so that community tools that are based on the esg-search RESTful API need | |
not change to be compatible with the new Globus indices. If you are designing a new | |
project, you should look to use the globus-sdk directly and this is only a small wrapper | |
around the `post_search` functionality. | |
The standalone script does not need installed. You will need FastAPI on which it is | |
based and the Globus sdk. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
from typing import Union | |
import numpy as np | |
import xarray as xr | |
from cftime import DatetimeNoLeap | |
COMPRESS_FILES = True | |
OlderNewer