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 llama3 | |
# Set parameters | |
PARAMETER temperature 0.8 | |
PARAMETER stop Result | |
# Sets a custom system message to specify the behavior of the chat assistant | |
# Leaving it blank for now. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
### This file will require you to give path of folder in which all GeoJSONs are present | |
## Author : [email protected] | |
## !pip install geopandas | |
### | |
import os | |
import geopandas as gpd | |
from shapely.geometry import Point | |
import json |
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
#!/bin/bash | |
# Set the variables | |
PGHOST="" | |
PGDATABASE="" | |
PGUSER="" | |
PGPASSWORD="" | |
PGPORT="" | |
TABLE_NAME="" | |
GEOJSON_FILE="" |
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
GDAL==3.4.3 | |
odc-stac==0.3.8 | |
pystac-client==0.7.5 | |
rasterio==1.3.9 | |
numpy==1.26.3 |
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 datetime import date, timedelta | |
import requests | |
import pandas as pd | |
import geopandas as gpd | |
from shapely.geometry import shape | |
copernicus_user = os.getenv("copernicus_user") # copernicus User | |
copernicus_password = os.getenv("copernicus_password") # copernicus Password | |
ft = "POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))" # WKT Representation of BBOX | |
data_collection = "SENTINEL-2" # Sentinel satellite |
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
sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update | |
sudo apt-get update | |
sudo apt-get install gdal-bin | |
sudo apt-get install libgdal-dev | |
export CPLUS_INCLUDE_PATH=/usr/include/gdal | |
export C_INCLUDE_PATH=/usr/include/gdal | |
pip install GDAL |
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
#!/bin/bash | |
# Add the PostgreSQL APT repository for the latest version | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
# Import the repository signing key | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
# Update the package list | |
sudo apt update |
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
#!/bin/bash | |
# Update system packages | |
sudo apt-get update | |
# Install Java Runtime Environment (JRE) | |
sudo apt-get install -y openjdk-11-jre | |
# Install Unzip | |
sudo apt install -y unzip |
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
# input value | |
array = [5,2,4,6,1,3,7] | |
# start loop from 1st index ( considering the 0th index value is already sorted | |
for index in range(1,len(array)): | |
j = index | |
# loop to compare current value with it's left neighbor value | |
while array[j-1] > array[j] and j > 0 : | |
# if left value is bigger, swap both values | |
array[j-1],array[j] = array[j], array[j-1] | |
# reduce j by 1 to now deal with lefter value |
NewerOlder