Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Klimabevaegelsen/landbruget.dk
/ functions
Functions
6,215 in github.com/Klimabevaegelsen/landbruget.dk
⨍
Functions
6,215
◇
Types & classes
1,072
↳
Endpoints
183
↓ 7 callers
Method
_get_namespace
Get the UUID namespace from environment variable.
backend/pipelines/unified_pipeline/src/unified_pipeline/common/uuid_utils.py:31
↓ 7 callers
Method
_monitor_resources
Monitor memory and disk usage for GitHub Actions constraints.
backend/pipelines/h3_pfas_exposure_pipeline/src/h3_pfas_exposure/gold/processor.py:54
↓ 7 callers
Function
_new_id
(prefix: str)
backend/pipelines/chr_pipeline/bronze/auth.py:222
↓ 7 callers
Method
_process_layer_type
Process all years for a specific layer type. Args: session (aiohttp.ClientSession): HTTP session for making requests
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/fvm_wfs.py:499
↓ 7 callers
Method
_process_layer_type
Process all years for a specific layer type. Args: layer_type: Type of layer to process (Markblokke, Marker, Smaabiotope
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/fvm_wfs.py:1261
↓ 7 callers
Method
_validate_results
Validate the analysis results.
backend/pipelines/h3_pfas_exposure_pipeline/src/h3_pfas_exposure/gold/processor.py:404
↓ 7 callers
Method
apply
( self, envelope: etree._Element, headers: dict[str, Any] )
backend/pipelines/chr_pipeline/bronze/auth.py:74
↓ 7 callers
Function
calculate_co2_organogene_jorde
Calculates CO2 emissions from organogene jorde based on land characteristics. Args: h (float): Antal ha marken. i_omdrift (b
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/formulas/marker/organogene_jorde.py:74
↓ 7 callers
Method
check_for_pii
Check for potential PII data (like CPR numbers) and replace if found.
backend/pipelines/arbejdstilsynet_inspections/silver/transform.py:531
↓ 7 callers
Function
check_memory_usage
Monitor memory and disk usage.
backend/pipelines/bbr_buildings/main.py:55
↓ 7 callers
Function
chr_formatter
Provide CHR formatting function to tests. Returns: Callable that formats CHR with leading zeros.
backend/common/tests/conftest.py:325
↓ 7 callers
Method
commit_to_github
Commit generated schema files to GitHub. Args: commit_message: Custom commit message Returns: True
backend/common/schema_documentation.py:392
↓ 7 callers
Method
create_geometry_geojson
Create a GeoJSON Point geometry from coordinates. Args: latitude: Latitude coordinate longitude: Longitude c
backend/pipelines/unified_pipeline/src/unified_pipeline/util/dawa_api_client.py:239
↓ 7 callers
Method
create_geometry_wkt
Create a WKT POINT geometry string from coordinates. Args: latitude: Latitude coordinate longitude: Longitud
backend/pipelines/unified_pipeline/src/unified_pipeline/util/dawa_api_client.py:226
↓ 7 callers
Function
create_robust_soap_client
Create SOAP client with robust certificate-based authentication. Returns: Tuple of (client, username, password, certificate, private_key)
backend/pipelines/chr_pipeline/bronze/auth.py:450
↓ 7 callers
Function
cvr_formatter
Provide CVR formatting function to tests. Returns: Callable that formats CVR with leading zeros.
backend/common/tests/conftest.py:315
↓ 7 callers
Function
filter_cvr_pii
Filter PII from raw CVR data while preserving business information. Args: raw_cvr_data: Raw CVR data from API Returns:
backend/pipelines/unified_pipeline/src/unified_pipeline/util/cvr_pii_filter.py:24
↓ 7 callers
Function
filter_deltager_data
Filter PII from individual deltager (person) data. Args: deltager: Deltager data object Returns: Filtered deltager data
backend/pipelines/unified_pipeline/src/unified_pipeline/util/cvr_pii_filter.py:76
↓ 7 callers
Function
find_latest
Find the most recent file matching a glob pattern.
backend/scripts/export_work_permits_enriched.py:31
↓ 7 callers
Function
formatNum
(n: number)
frontend/src/components/pesticide-analysis/AnalysisKpiRow.tsx:11
↓ 7 callers
Method
generate_all_documentation
Generate documentation for all tables and create overview. Args: tables: List of table names stage: Processi
backend/common/schema_documentation.py:336
↓ 7 callers
Function
generate_uuid_id
Generate a UUID-based ID with a specific prefix.
backend/pipelines/chr_pipeline/bronze/load_vetstat.py:209
↓ 7 callers
Method
getFieldAnalysisUrls
* Get all PMTiles URLs for a specific year
frontend/src/lib/pmtiles-cache-service.ts:55
↓ 7 callers
Function
getIcon
(type: string)
frontend/src/components/ui/agricultural-breadcrumb.tsx:65
↓ 7 callers
Method
get_agricultural_fields_dataset
Get agricultural fields dataset name for the configured year.
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/field_area_analysis/config.py:132
↓ 7 callers
Function
optionalString
(val: unknown)
frontend/src/components/pesticidkort/map-utils.ts:46
↓ 7 callers
Function
run_silver_processing
Run the complete silver processing pipeline. Args: bronze_data_path: Specific path to bronze data (optional) output_dir: Out
backend/pipelines/svineflytning_pipeline/silver/main.py:66
↓ 7 callers
Function
run_stages
Execute pipeline stages based on --stage argument. Args: stage: The stage to run ("bronze", "silver", "all", etc.) stages_map: Or
backend/common/cli.py:110
↓ 7 callers
Method
save_parquet
(self, data: Any, dst_path: str)
backend/common/tests/test_storage_interface.py:53
↓ 7 callers
Method
setup_duckdb_functions
Set up UUID generation functions in DuckDB connection. Args: conn: DuckDB connection object
backend/pipelines/unified_pipeline/src/unified_pipeline/common/uuid_utils.py:205
↓ 7 callers
Function
updateLayerVisibility
(layerId: string, visible: boolean)
frontend-pesticide/src/components/map/PMTilesMap.tsx:1096
↓ 7 callers
Method
update_resolution
Update the H3 resolution and corresponding validation parameters.
backend/pipelines/h3_pfas_exposure_pipeline/src/h3_pfas_exposure/config/config.py:144
↓ 6 callers
Method
_check_emergency_memory_threshold
Check if memory usage is safe to continue (returns True if safe, False if emergency).
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/field_production.py:271
↓ 6 callers
Method
_create_dissolved_df
Create separate dissolved tables for each layer type using DuckDB-spatial. Creates separate dissolved geometries for: - inds
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/grukos.py:602
↓ 6 callers
Function
_draw_box
Draw a rounded box with centered text.
backend/pipelines/unified_pipeline/docs/generate_figures.py:302
↓ 6 callers
Method
_fetch_wfs_data
Fetch all data from a WFS service using pagination. This method orchestrates the fetching of all features from a WFS layer b
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/water_projects.py:315
↓ 6 callers
Method
_find_column
Find a column from a list of candidate names.
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/subsidies/stoetteoplysninger.py:281
↓ 6 callers
Method
_get_available_fvm_marker_years
Get all available fvm_marker years from cloud storage. Returns: List of available years for fvm_marker datasets
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/nles5_nitrogen_estimation/data_loader.py:39
↓ 6 callers
Method
_get_latest_silver_path
Get path to latest silver data file.
backend/pipelines/unified_pipeline/src/unified_pipeline/common/base.py:1402
↓ 6 callers
Method
_get_latest_timestamped_directory
Get the latest timestamped directory from a base storage path. This method dynamically discovers timestamped directories (format: YY
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/nles5_nitrogen_estimation/data_loader.py:161
↓ 6 callers
Method
_get_stage0_output_path
Get storage path for Stage 0 pre-filtered output with year suffix for isolation.
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/field_area_analysis/stage0/base.py:38
↓ 6 callers
Method
_get_total_count
Get total number of features available from a specific layer. Args: session (aiohttp.ClientSession): HTTP session for ma
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/fvm_wfs.py:363
↓ 6 callers
Method
_load_fields_for_filtering
Load agricultural fields as BUILD side for spatial indexing.
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/field_area_analysis/stage0/base.py:13
↓ 6 callers
Function
_load_r2_parquet
Download parquet from R2 via wrangler and load into DuckDB table. Returns row count.
backend/scripts/generate_paper_figures.py:156
↓ 6 callers
Method
_log_performance_metrics
Log detailed performance metrics for each phase.
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/field_production.py:409
↓ 6 callers
Method
_make_storage_access
Create a StorageAccess with mocked filesystem.
backend/common/tests/test_r2_core.py:30
↓ 6 callers
Method
_process_data
Process raw data from multiple layers and combine into a single table. Args: raw_data (list): List of raw data dictionar
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/grukos.py:372
↓ 6 callers
Method
_read_silver_data
Read data from silver layer for gold processing.
backend/pipelines/unified_pipeline/src/unified_pipeline/common/base.py:712
↓ 6 callers
Function
_run_cli
Run svineflytning main.py with given args.
backend/pipelines/svineflytning_pipeline/tests/test_cli.py:12
↓ 6 callers
Function
_run_help
Run python main.py --help for a pipeline directory.
backend/common/tests/test_cli_integration.py:40
↓ 6 callers
Method
_table_columns
(self, name: str)
backend/pipelines/api_export/exporters/homepage.py:197
↓ 6 callers
Method
_transform_data
Transform ledger entries to aggregated CVR-level data.
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/subsidies/deminimis.py:124
↓ 6 callers
Function
_write_dataset
(root: Path, *, include_cvr: bool = False)
backend/pipelines/api_export/tests/test_publish_dataset.py:23
↓ 6 callers
Function
asFiniteNumber
(value: unknown, fallback = 0)
frontend/src/lib/server-cache.ts:91
↓ 6 callers
Function
calculate_nh3_emissions_kvaeg
Calculate NH3 emissions from cattle manure management. Formula: NH3 (kg) = antal_dyr × EF_nh3 Where: - antal_dyr: Numbe
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/formulas/kvaeg/ammoniak.py:43
↓ 6 callers
Function
calculate_nh3_field_fertilizer
Calculate NH3 emissions from synthetic fertilizer application to fields. Formula: NH3-N (kg) = N_applied × EF_nh3_n NH3 (kg)
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/formulas/marker/ammoniak.py:43
↓ 6 callers
Function
create
(context)
frontend/oxlint-plugin-landbruget/plugin.js:86
↓ 6 callers
Function
expectResponsiveNavigation
(page: Page)
frontend/tests/helpers/navigation.ts:3
↓ 6 callers
Function
fetchR2Json
(path: string)
frontend/src/lib/server-cache.ts:56
↓ 6 callers
Method
fetch_multiple_companies
Fetch company data for multiple CVR numbers efficiently using batch API calls. Uses Elasticsearch 'terms' query to fetch multiple co
backend/pipelines/unified_pipeline/src/unified_pipeline/util/cvr_api_client.py:1093
↓ 6 callers
Method
filter_by_date
Filter data by date range if start_date or end_date are provided.
backend/pipelines/arbejdstilsynet_inspections/silver/transform.py:463
↓ 6 callers
Function
formatBelastning
(value: number)
frontend/src/components/pesticide-analysis/CompanyDetailsPanel.tsx:79
↓ 6 callers
Method
geocode_with_datavask
Geocode an address using the Datavask API as fallback. Datavask API can handle unstructured address text and correct spelling errors
backend/pipelines/unified_pipeline/src/unified_pipeline/util/dawa_api_client.py:252
↓ 6 callers
Method
get_animal_input
Get a specific input value for an animal type. Args: animal_type: Identifier for the animal type input_type:
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/farm_data.py:34
↓ 6 callers
Method
get_available_years
Get list of years for which both pesticide and field data are available.
backend/pipelines/h3_pfas_exposure_pipeline/src/h3_pfas_exposure/gold/data_loader.py:167
↓ 6 callers
Function
get_client
Get a CHR client lazily, creating it only when needed.
backend/pipelines/chr_pipeline/main.py:149
↓ 6 callers
Function
get_duckdb_with_r2
Get DuckDB connection with R2 configured (native TYPE r2 secret).
backend/common/storage/filesystem.py:52
↓ 6 callers
Function
get_step_input_paths
Get the cloud storage input paths for a specific pipeline step. This function intelligently determines whether to use pipeline dependencies
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/cvr_enrichment/shared/config.py:170
↓ 6 callers
Function
graphql_query
Execute a GraphQL query and return the response.
backend/pipelines/bbr_buildings/bronze/graphql_datafordeler_poc.py:61
↓ 6 callers
Function
load_table
Download a parquet file and load into DuckDB table.
backend/scripts/export_work_permits_enriched.py:40
↓ 6 callers
Method
log_progress
Log progress message with optional record count.
backend/common/logging_utils.py:208
↓ 6 callers
Function
main
Main entry point for the pipeline. Returns: Exit code (0 for success, non-zero for errors)
backend/pipelines/drive_data_pipeline/main.py:427
↓ 6 callers
Function
n2o_to_co2e
Convert N2O mass to CO2 equivalent using IPCC AR5 GWP. Args: n2o_kg (float): Mass of N2O in kg config: Optional ConfigLoader
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/utils/conversions.py:64
↓ 6 callers
Function
nearest_region_id
Return the ID of the nearest meteorological region (Euclidean in UTM).
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pesticide_drift_exposure.py:79
↓ 6 callers
Function
primitive_field
(type_name: str, value: str)
backend/pipelines/api_export/publish_dataset.py:649
↓ 6 callers
Method
process_bronze_files
Process files from the Bronze layer. Args: bronze_run_path: Path to the Bronze layer run directory specific_subfolder
backend/pipelines/drive_data_pipeline/silver/processor.py:299
↓ 6 callers
Function
process_parallel
Execute tasks in parallel using a thread pool with progress tracking.
backend/pipelines/chr_pipeline/main.py:598
↓ 6 callers
Function
save_pipeline_cvr_numbers
Convenience function to save CVR numbers from a pipeline. Args: pipeline_name: Name of the pipeline cvr_numbers: List of CVR
backend/pipelines/unified_pipeline/src/unified_pipeline/util/cvr_collection.py:333
↓ 6 callers
Function
skipUnsupportedMobileContext
(browserName: string)
frontend/tests/visual-mobile-audit.spec.ts:20
↓ 6 callers
Function
sql_buffer_meters
Generate SQL for buffer operation in meters. Transforms to UTM, applies buffer, transforms back. Args: geometry_expr: SQL expre
backend/common/crs_utils.py:362
↓ 6 callers
Function
sql_intersects_with_buffer_meters
Generate SQL for ST_Intersects with a metric buffer. Args: geom1_expr: SQL expression for first geometry geom2_expr: SQL exp
backend/common/crs_utils.py:391
↓ 6 callers
Method
table_exists
Check if a table exists.
backend/common/duckdb_processor.py:47
↓ 6 callers
Method
to_dict
Convert to dictionary for serialization.
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/data_transformer.py:120
↓ 6 callers
Method
transform
Transform FVM DuckDB relation to structured field summaries. Args: rel: DuckDB relation with field boundary data
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/data_transformer.py:485
↓ 6 callers
Function
useCategoryDataContext
()
frontend/src/components/pagebuilder/pageBlocks/CategoryDataContext.tsx:13
↓ 6 callers
Function
validate_pii_filtering
Validate that PII has been properly filtered from CVR data. Args: filtered_data: Filtered CVR data Returns: Validation
backend/pipelines/unified_pipeline/src/unified_pipeline/util/cvr_pii_filter.py:179
↓ 6 callers
Function
wind_direction_weight
Fraction of time wind blows from the field direction toward the building. bearing_deg: compass bearing FROM the building TO the field center (0-3
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pesticide_drift_exposure.py:119
↓ 5 callers
Method
_aggressive_memory_cleanup
Perform aggressive memory cleanup to free up resources.
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/nles5_nitrogen_estimation/memory_utils.py:79
↓ 5 callers
Function
_args
(source_dir: Path, *targets: str, **overrides: object)
backend/pipelines/api_export/tests/test_publish_dataset.py:81
↓ 5 callers
Method
_download_rds_file
Download an .rds file from GEUS Dataverse. Args: session: HTTP session for making requests url: Download URL
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/geus_dataverse_pesticides.py:110
↓ 5 callers
Function
_draw_arrow
Draw an arrow between two points.
backend/pipelines/unified_pipeline/docs/generate_figures.py:344
↓ 5 callers
Method
_fetch_raw_data
Fetch raw data from all configured layers and services. This is the main orchestration method that fetches data from all configured
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/water_projects.py:375
↓ 5 callers
Method
_fetch_raw_data
Fetch all raw data from the WFS service. This method orchestrates the data retrieval workflow: 1. Establishes an HTTP sessio
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/wetlands.py:190
↓ 5 callers
Method
_get_attribute
Get an attribute value from an XML element. This method finds a child element with the specified tag and returns its text va
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/wetlands.py:261
↓ 5 callers
Method
_get_latest_dataset_path
Get the latest path for a specific dataset.
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/field_area_analysis_redesigned.py:534
↓ 5 callers
Method
_get_layer_name
Get the WFS layer name for a specific type and year. Args: layer_type (str): Type of layer ('Markblokke', 'Marker', 'Sma
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/fvm_wfs.py:301
↓ 5 callers
Function
_install_spatial
(conn: duckdb.DuckDBPyConnection)
backend/pipelines/api_export/tests/test_drift_exposure.py:20
↓ 5 callers
Method
_make_request
Make an authenticated request to the CVR API with retry logic. Args: url: API endpoint URL payload: Request
backend/pipelines/unified_pipeline/src/unified_pipeline/util/cvr_api_client.py:146
↓ 5 callers
Method
_monitor_memory_usage
Monitor and log memory usage for a specific operation.
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/nles5_nitrogen_estimation/memory_utils.py:52
↓ 5 callers
Function
_outbound_value
(container: Any, key: str)
backend/pipelines/chr_pipeline/main.py:441
← previous
next →
201–300 of 6,215, ranked by callers