Skip to content

Instantly share code, notes, and snippets.

View epifanio's full-sized avatar

Massimo Di Stefano epifanio

View GitHub Profile
@epifanio
epifanio / groundtruther.txt
Created December 28, 2023 21:20
Conda Environment to run GroundTruther (win 11)
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: win-64
annotated-types=0.6.0=pyhd8ed1ab_0
anyio=4.2.0=pyhd8ed1ab_0
aom=3.7.1=h63175ca_0
archspec=0.2.2=pyhd8ed1ab_0
aws-c-auth=0.7.8=h6bf0135_3
aws-c-cal=0.6.9=h7f0e5be_2
aws-c-common=0.9.10=hcfcfb64_0
csw_test_endpoint = "https://nbs.csw.met.no"
ElementSetName = "full"
field_to_query = "title"
text_to_query = '*1A_EW*'
start_time = "2022-10-01 00:00"
end_time = "2022-10-07 00:00"
lowerCorner = "-25 70"
from geolinks import sniff_link
from owslib.csw import CatalogueServiceWeb
from owslib.fes import (
And,
BBox,
Or,
PropertyIsEqualTo,
PropertyIsGreaterThanOrEqualTo,
PropertyIsLessThanOrEqualTo,
PropertyIsLike,
@epifanio
epifanio / CSW_QUERY_TESTING.ipynb
Created October 25, 2023 14:03
CSW QUERY TESTING
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@epifanio
epifanio / CSW_QUERY_TESTING.ipynb
Created October 25, 2023 13:59
CSW_QUERY_TESTING
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@epifanio
epifanio / run_cron.py
Created October 11, 2023 12:43
filter running container via image name and run a system command via subporcess
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]
l/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
test_pycsw.1.or8fe2vli2ts@csw.met.no | return util.import_app(self.app_uri)
test_pycsw.1.or8fe2vli2ts@csw.met.no | File "/usr/local/lib/python3.8/site-packages/gunicorn/util.py", line 359, in import_app
test_pycsw.1.or8fe2vli2ts@csw.met.no | mod = importlib.import_module(module)
test_pycsw.1.or8fe2vli2ts@csw.met.no | File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
test_pycsw.1.or8fe2vli2ts@csw.met.no | return _bootstrap._gcd_import(name[level:], package, level)
test_pycsw.1.or8fe2vli2ts@csw.met.no | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
test_pycsw.1.or8fe2vli2ts@csw.met.no | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
test_pycsw.1.or8fe2vli2ts@csw.met.no | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
test_pycsw.1.or8fe2vli2ts@csw.met.no | File "<frozen importlib._bootst
@epifanio
epifanio / gtr.yml
Created July 16, 2023 09:22
conda environment for GroundTruther
name: GTR
channels:
- conda-forge
- defaults
dependencies:
- anyio=3.7.0=pyhd8ed1ab_1
- aom=3.5.0=h63175ca_0
- aws-c-auth=0.6.28=habb20d3_5
- aws-c-cal=0.5.27=hc655790_0
- aws-c-common=0.8.20=hcfcfb64_0
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 530.41.03
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
xdpyinfo -queryExtensions
name of display: :1
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 12101007
X.Org version: 1.21.1.7
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst