This file contains hidden or 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
@router.get('/get_wms/{data_id}/wms', response_class=Response) | |
async def get_wms(data_id: str, full_request: Request): | |
S1_IW_LAYERS, S1_EW_LAYERS, S2_LAYERS, nbs_directory, sentinel_platforms, vrt_directory = set_sentinel_env() | |
logging.debug(f"REQUEST: {full_request}") | |
id = data_id # dict(full_request.query_params).get("id") | |
layer = dict(full_request.query_params).get("LAYER") | |
layers = dict(full_request.query_params).get("LAYERS") | |
netloc = os.environ.get("NETLOC_ADDRESS", full_request.url.netloc) | |
scheme = os.environ.get("NETLOC_SCHEME", full_request.url.scheme) |
This file contains hidden or 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
MAP | |
EXTENT 5.38027653341219 60.2993914471056 7.31486520966422 61.3240381500072 | |
IMAGETYPE "png" | |
NAME "NBS" | |
SIZE 800 600 | |
STATUS ON | |
UNITS METERS | |
OUTPUTFORMAT | |
NAME "png" |
This file contains hidden or 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
MAP | |
NAME "Example MapServer WCS Multipart Issue" | |
CONFIG "MS_ERRORFILE" "stderr" | |
IMAGETYPE png | |
# EXTENT 190365.000 444075.000 190465.000 444175.000 | |
# UNITS meters | |
# MAXSIZE 400 | |
STATUS ON | |
DEBUG 5 |
This file contains hidden or 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
MAP | |
NAME "Example MapServer WCS Multipart Issue" | |
CONFIG "MS_ERRORFILE" "stderr" | |
IMAGETYPE png | |
EXTENT 190365.000 444075.000 190465.000 444175.000 | |
UNITS meters | |
MAXSIZE 4000 | |
STATUS ON | |
DEBUG 5 |
This file contains hidden or 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
b'Content-Type: application/x-netCDF\r\nContent-Description: coverage data\r\nContent-Transfer-Encoding: binary\r\nContent-ID: coverage/wcs.nc\r\nContent-Disposition: INLINE\r\n\r\nCDF\x01\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x03\x00\x00\x00\x03lon\x00\x00\x00\x00\x02\x00\x00\x00\x03lat\x00\x00\x00\x00\x02\x00\x00\x00\x04time\x00\x00\x00\x01\x00\x00\x00\x0c\x00\x00\x00\x0c\x00\x00\x00\x18GDAL_TIFFTAG_XRESOLUTION\x00\x00\x00\x06\x00\x00\x00\x01@R\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18GDAL_TIFFTAG_YRESOLUTION\x00\x00\x00\x06\x00\x00\x00\x01@R\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1bGDAL_TIFFTAG_RESOLUTIONUNIT\x00\x00\x00\x00\x04\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\x08calendar\x00\x00\x00\x02\x00\x00\x00\x08standard\x00\x00\x00\x03CDI\x00\x00\x00\x00\x02\x00\x00\x00GClimate Data Interface version 1.5.4 (http://code.zmaw.de/projects/cdi)\x00\x00\x00\x00\x03CDO\x00\x00\x00\x00\x02\x00\x00\x00GClimate Data Operators version 1.5.4 (http://code.zmaw.de/projects/cdo)\x00\x00\x00\x00\x06center\x00\x00\x00\ |
This file contains hidden or 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
# Remove packages if any | |
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done | |
# Add Docker's official GPG key: | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc |
This file contains hidden or 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
import hvplot.xarray | |
import xarray as xr | |
import holoviews as hv | |
from bokeh.layouts import column | |
from bokeh.models import Select | |
from bokeh.io import curdoc | |
import gc | |
# hv.extension('bokeh') | |
This file contains hidden or 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
import hvplot.xarray | |
import xarray as xr | |
from bokeh.layouts import Spacer | |
from bokeh.models.widgets import Dropdown | |
from bokeh.layouts import column, row, Spacer | |
from bokeh.io import curdoc | |
from urllib.parse import unquote | |
import holoviews as hv | |
import gc |
This file contains hidden or 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
metsis_bokeh.1.qnandzhk1pco@swarm | #################### VAR CHECK 1 ###################### | |
metsis_bokeh.1.qnandzhk1pco@swarm | syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR | |
metsis_bokeh.1.qnandzhk1pco@swarm | context: <!DOCTYPE^ HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Unavailable</title></head><body><h1>Service Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html> | |
metsis_bokeh.1.qnandzhk1pco@swarm | syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET or SCAN_ERROR | |
metsis_bokeh.1.qnandzhk1pco@swarm | context: <!DOCTYPE^ HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>503 Service Unavailable</title></head><body><h1>Service Unavailable</h1><p>The server is temporarily unable to service yourrequest due to maintenance downtime or capacityproblems. Please try again later.</p></body></html> |
This file contains hidden or 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
import subprocess | |
import sys | |
# Check if the correct number of arguments is provided | |
if len(sys.argv) != 2: | |
print("Usage: python script.py <keyword>") | |
sys.exit(1) | |
# Get the keyword from the command line | |
keyword = sys.argv[1] |
NewerOlder