MCPcopy Create free account

hub / github.com/Klimabevaegelsen/landbruget.dk / functions

Functions6,215 in github.com/Klimabevaegelsen/landbruget.dk

↓ 4 callersFunction_table_columns
(conn, table_name: str)
backend/pipelines/api_export/exporters/animal.py:518
↓ 4 callersMethod_table_columns
(self, name: str)
backend/pipelines/api_export/exporters/municipalities.py:134
↓ 4 callersFunction_table_names
(conn)
backend/pipelines/api_export/exporters/animal.py:525
↓ 4 callersMethod_transform_pfas_data
Transform the PFAS DataFrame into DuckDB table with standardized schema. PFAS data has a different schema than pesticide data:
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/geus_dataverse_pesticides.py:283
↓ 4 callersMethod_validate_geometries
Validate geometries are within Denmark bounds (EPSG:25832). Args: table_name: Name of table to validate
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/geus_dataverse_pesticides.py:595
↓ 4 callersMethod_validate_strategy_results
Validate results after each disaggregation strategy runs. Tracks cumulative progress and ensures no data corruption. Args:
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pesticide_disaggregation.py:240
↓ 4 callersFunctionaddFieldLayers
(map: MapInstance, pmtilesUrl: string)
frontend/src/components/pesticidkort/map-layers.ts:32
↓ 4 callersFunctionaddOverviewLayers
(map: MapInstance, overviewUrl: string)
frontend/src/components/pesticidkort/map-layers.ts:70
↓ 4 callersFunctionadd_high_volume_herd
Add a herd to the high-volume herds list with specific processing constraints.
backend/pipelines/chr_pipeline/bronze/volume_management.py:121
↓ 4 callersMethodapply_cli_filters
Apply CLI filtering for matrix job processing. This method modifies the year lists based on CLI parameters to enable process
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/fvm_wfs.py:183
↓ 4 callersFunctionasRecord
(value: unknown)
frontend/src/lib/server-cache.ts:85
↓ 4 callersFunctionbuild
()
backend/pipelines/unified_pipeline/docs/build_pdf.py:46
↓ 4 callersFunctionburdenToPercent
(belastning: number)
frontend/src/components/pesticidkort/field-utils.ts:76
↓ 4 callersFunctioncalculate_ch4_enteric_svin
Calculate CH4 emissions from pig enteric fermentation (IPCC Tier 1). Formula: CH4 (kg/year) = (antal_dyr × FE_per_dyr × MJ_per_FE ×
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/formulas/svin/enterisk_metan.py:75
↓ 4 callersFunctioncalculate_feed_emissions_kvaeg
Calculate emissions from purchased cattle feed. Formula: CO2e (kg) = antal_dyr × TS_per_day × days × Σ(share × EF_per_kg_TS) / 1000
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/formulas/kvaeg/foder.py:54
↓ 4 callersFunctioncalculate_feed_emissions_svin
Calculate emissions from purchased pig feed. Formula: CO2e (kg) = antal_dyr × FE_per_animal × Σ(share × EF_per_FE) Where:
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/formulas/svin/foder.py:38
↓ 4 callersFunctioncalculate_manure_emissions_svin
Calculate total manure emissions (CH4 + N2O) for pigs. Args: antal_dyr: Number of animals average_body_weight_kg: Average bo
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/formulas/svin/stald_og_lager.py:249
↓ 4 callersFunctioncalculate_n2o_nitratudvaskning
Calculates N2O from nitratudvaskning and its CO2e value. Args: t (float): Typetal for nitratudvaskning h (float): Antal ha p
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/formulas/marker/nitratudvaskning.py:23
↓ 4 callersMethodcleanup_old_pmtiles
Clean up old PMTiles files, keeping only the most recent versions. Args: current_files: Dictionary mapping R2 keys to local file
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pmtiles_generator/uploader.py:372
↓ 4 callersFunctioncompound_field
(type_name: str, values: list[dict[str, Any]])
backend/pipelines/api_export/publish_dataset.py:667
↓ 4 callersFunctioncreate_custom_retry
Create a custom retry decorator with specific parameters. Args: max_attempts: Maximum number of retry attempts min_wait: Minimum
backend/common/retry_utils.py:226
↓ 4 callersFunctioncreate_herd_sizes_table
Creates the herd_sizes table from the nested BesStr list in besaetning details. Args: con: The DuckDB connection bes_details_raw:
backend/pipelines/chr_pipeline/silver/herds.py:309
↓ 4 callersMethodcreate_output_directory
Create output directory for a specific file or content type following the new structure. Args: run_dir: Run directory path (silve
backend/pipelines/drive_data_pipeline/silver/storage.py:85
↓ 4 callersFunctiondataFetch
(path: string)
frontend/src/services/data/config.ts:13
↓ 4 callersFunctiondownloadCSV
(csvData: string, filename: string)
frontend/src/lib/csv-download.ts:82
↓ 4 callersFunctionexecuteQuery
(query: string)
data-explorer/src/lib/duckdb.ts:100
↓ 4 callersMethodexport_to_parquet
Export table to parquet file.
backend/pipelines/drive_data_pipeline/silver/duckdb_base.py:119
↓ 4 callersMethodextract_and_save_cvr_numbers
Extract P-numbers and map them to CVR numbers using the CVR register.
backend/pipelines/arbejdstilsynet_inspections/silver/transform.py:583
↓ 4 callersFunctionextract_nested
(body: Any, *keys: str)
backend/pipelines/api_export/publish_dataset.py:760
↓ 4 callersMethodfetch_grid_data
Fetch raw climate grid data and return as JSON. For monthly data, the API will return monthly aggregated values when the dat
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/dmi.py:113
↓ 4 callersMethodfile_exists
Check if a file exists in the Bronze layer. Args: run_dir: Base run directory (bronze/) source_path: Path of the file
backend/pipelines/drive_data_pipeline/bronze/storage.py:257
↓ 4 callersMethodfile_exists
Mock file exists check.
backend/common/tests/test_storage_core.py:63
↓ 4 callersFunctionfilter_deltager_relations
Filter PII from deltager relations while keeping business-relevant information. Args: deltager_relations: List of deltager relation
backend/pipelines/unified_pipeline/src/unified_pipeline/util/cvr_pii_filter.py:52
↓ 4 callersFunctionformatBelastning
(value: number)
frontend/src/components/pesticide-analysis/CompanyListView.tsx:70
↓ 4 callersFunctionformatRadiusLabel
(radiusM: number)
frontend/src/components/pesticidkort/exposure-utils.ts:10
↓ 4 callersFunctiongenerateCSVFilename
( chartTitle?: string, chartKey?: string )
frontend/src/lib/csv-download.ts:106
↓ 4 callersMethodgenerate_h3_grid
Generate H3 grid for Denmark - CACHED by resolution to avoid recomputation.
backend/pipelines/h3_pfas_exposure_pipeline/src/h3_pfas_exposure/gold/processor.py:251
↓ 4 callersMethodgenerate_metadata
Generate metadata for a file. Args: file_path: Path to the file to generate metadata for file_id: Google Drive file I
backend/pipelines/drive_data_pipeline/bronze/metadata.py:77
↓ 4 callersFunctiongetGradeFillColor
()
frontend/src/components/pesticidkort/map-chemical-filter.ts:28
↓ 4 callersFunctiongetGradeFillOpacity
()
frontend/src/components/pesticidkort/map-chemical-filter.ts:46
↓ 4 callersFunctiongetR2BaseUrl
()
data-explorer/src/lib/r2.ts:3
↓ 4 callersFunctiongetYearRangeDisplay
(year: number)
frontend/src/components/field-analysis/types.ts:102
↓ 4 callersFunctionget_async_mock_session
Create a mock aiohttp session.
backend/pipelines/unified_pipeline/src/tests/bronze/test_agricultural_fields_bronze.py:58
↓ 4 callersFunctionget_async_mock_session
Create a mock aiohttp session.
backend/pipelines/unified_pipeline/src/tests/bronze/test_fvm_wfs_bronze.py:33
↓ 4 callersFunctionget_chr_column
Find CHR number column dynamically.
backend/pipelines/chr_pipeline/gold/veterinary_timeline.py:322
↓ 4 callersFunctionget_drive_service
Get an authenticated Google Drive service. Args: credentials_path: Path to the service account credentials JSON file.
backend/pipelines/drive_data_pipeline/bronze/drive/auth.py:16
↓ 4 callersMethodget_financial_documents
Fetch financial documents and reports for a specific CVR number. Args: cvr_number: 8-digit CVR number max_re
backend/pipelines/unified_pipeline/src/unified_pipeline/util/cvr_api_client.py:240
↓ 4 callersMethodget_first_namespace
Extract the namespace from an XML root element. This method iterates through the XML elements to find and extract the first
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/grukos.py:110
↓ 4 callersFunctionget_pii_filtering_summary
Generate a summary of what PII was filtered from the data. Args: original_data: Original raw CVR data filtered_data: Filtere
backend/pipelines/unified_pipeline/src/unified_pipeline/util/cvr_pii_filter.py:123
↓ 4 callersMethodget_row_count
Get row count for a table.
backend/common/duckdb_processor.py:137
↓ 4 callersFunctionget_settings
Get settings instance.
backend/pipelines/bbr_buildings/config/settings.py:187
↓ 4 callersMethodget_table_schema
Get comprehensive schema information using DuckDB's native capabilities. Args: table_name: Name of the table to analyze
backend/pipelines/unified_pipeline/src/unified_pipeline/common/native_schema_manager.py:27
↓ 4 callersFunctionhasData
* Checks if a PageBuilderItem has actual data
frontend/src/components/pagebuilder/pageBlocks/chart-utils.ts:46
↓ 4 callersFunctionhasHardcodedColor
(str)
frontend/oxlint-plugin-landbruget/plugin.js:492
↓ 4 callersMethodlist_files
List files matching pattern.
backend/common/storage/core.py:1024
↓ 4 callersMethodload_bmd_data_from_storage
Load BMD data from cloud storage - CACHED to avoid reloading.
backend/pipelines/h3_pfas_exposure_pipeline/src/h3_pfas_exposure/gold/data_loader.py:182
↓ 4 callersMethodload_environmental_layers
Load environmental layer data (year-independent). Returns: Dictionary mapping layer names to DuckDB table names
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pmtiles_generator/data_loader.py:1173
↓ 4 callersFunctionload_herd_details
Mock implementation of load_herd_details. Fetches detailed information for a specific herd.
backend/pipelines/chr_pipeline/tests/bronze/test_load_besaetning.py:135
↓ 4 callersFunctionlog_geometry_bounds
Log geometry bounds for debugging CRS issues. Args: conn: DuckDB connection table_name: Name of table geometry_col:
backend/common/crs_utils.py:262
↓ 4 callersFunctionlookup_cattle_ts
Convenience function to lookup cattle TS (dry matter) per day. Args: cattle_type: "malkekøer", "kvier", or "tyre_stude" bree
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/standardfaktorer.py:318
↓ 4 callersFunctionmonitor_disk_usage
Monitor disk usage and log warnings if space is low.
backend/pipelines/chr_pipeline/cleanup_temp_files.py:84
↓ 4 callersFunctionparsePesticideDetailWithUnit
( detailString: string | undefined )
frontend/src/app/markanalyse/components/shared/field-details/pesticide-parsers.ts:33
↓ 4 callersFunctionregisterParquetTable
(tableName: string, parquetUrl: string)
data-explorer/src/lib/duckdb.ts:138
↓ 4 callersFunctionregisterPmtilesProtocol
()
frontend/src/components/pesticidkort/pmtiles-protocol.ts:7
↓ 4 callersMethodrun
Executes the bronze layer pipeline steps using Playwright only.
backend/pipelines/arbejdstilsynet_inspections/bronze/export.py:540
↓ 4 callersMethodrun
Run bronze processing for all configured DST tables. Returns: Optional[Dict[str, Any]]: Dictionary mapping table_id to t
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/dst.py:280
↓ 4 callersMethodsafe_execute
Execute query with error handling and logging. Args: query: SQL query to execute description: Description of
backend/common/duckdb_processor.py:238
↓ 4 callersFunctionsanitizeIdentifier
Sanitize a SQL identifier by removing characters that aren't alphanumeric or underscores
data-explorer/src/lib/duckdb.ts:11
↓ 4 callersMethodsave_cumulative_kommune_results
Save cumulative kommune-level results to cloud storage with special 'total' year identifier.
backend/pipelines/h3_pfas_exposure_pipeline/src/h3_pfas_exposure/gold/result_saver.py:416
↓ 4 callersMethodsave_cumulative_results
Save cumulative H3 results to cloud storage with special 'total' year identifier.
backend/pipelines/h3_pfas_exposure_pipeline/src/h3_pfas_exposure/gold/result_saver.py:311
↓ 4 callersFunctionsave_data_immediately
Save data immediately to cloud storage without buffering - fixes parallel processing issues. This replaces the broken save_raw_data + finali
backend/pipelines/chr_pipeline/bronze/export.py:114
↓ 4 callersMethodsave_json
(self, data: Any, dst_path: str)
backend/common/tests/test_storage_interface.py:125
↓ 4 callersMethodsave_output
Save the transformed data to parquet with enhanced cloud storage export.
backend/pipelines/arbejdstilsynet_inspections/silver/transform.py:715
↓ 4 callersMethodsave_parquet
(self, data: Any, dst_path: str)
backend/common/tests/test_storage_interface.py:133
↓ 4 callersMethodsearch_address
Search for addresses by text query. Args: query: Address search query limit: Maximum number of results to re
backend/pipelines/unified_pipeline/src/unified_pipeline/util/dawa_api_client.py:165
↓ 4 callersFunctionselect_primary_address_for_company_table
Select the primary address for the main company table. This function implements intelligent primary address selection that prioritizes:
backend/pipelines/unified_pipeline/src/unified_pipeline/util/primary_address_selector.py:29
↓ 4 callersMethodsetup
Setup pipeline components.
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pmtiles_generator/main.py:45
↓ 4 callersFunctionslugify
(text: string)
frontend/src/lib/__tests__/utils.test.ts:39
↓ 4 callersFunctionslugify
(text: string)
frontend/tests/unit/lib/utils.test.ts:39
↓ 4 callersFunctionsql_transform_to_wgs84
Generate SQL to transform geometry to WGS84 for storage. Uses ``always_xy := true`` to emit (lon, lat) — what PostGIS/Supabase and our R
backend/common/crs_utils.py:345
↓ 4 callersFunctiontoggleLayer
(layer: keyof LayerVisibility)
frontend/src/components/pesticide-analysis/CompanyFieldsMap.tsx:117
↓ 4 callersFunctiontranslateCategoryValue
(value: string | number)
frontend/src/components/pagebuilder/pageBlocks/block-combo-chart.tsx:223
↓ 4 callersMethodupload_file
Upload a file to storage bucket using optimized streaming.
backend/pipelines/arbejdstilsynet_inspections/bronze/export.py:90
↓ 4 callersMethodupload_json_string
OPTIMIZED: Upload pre-serialized JSON string with streaming. Use this when you already have a JSON string and want maximum performan
backend/common/storage/core.py:791
↓ 4 callersMethodupload_pmtiles
Upload a PMTiles file to Cloudflare R2. Args: file_path: Local path to PMTiles file r2_key: R2 object key (path in bu
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pmtiles_generator/uploader.py:101
↓ 4 callersFunctionuseFormField
()
frontend/src/components/ui/form.tsx:45
↓ 4 callersFunctionuseInView
One-shot intersection observer — fires `true` once element enters viewport
data-explorer/src/app/page.tsx:45
↓ 4 callersFunctionuseLoadingToast
()
frontend/src/hooks/useLoadingToast.ts:8
↓ 4 callersMethodvalidate
(self)
backend/pipelines/api_export/publish_dataset.py:97
↓ 4 callersMethodvalidate_column_names
Validate column names against conventions.
backend/pipelines/arbejdstilsynet_inspections/silver/transform.py:301
↓ 4 callersMethodvalidate_field_uuid_format
Validate that a field UUID follows proper UUID format. Args: field_uuid: The field UUID to validate Returns:
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/nles5_nitrogen_estimation/field_id_validator.py:165
↓ 3 callersMethod_add_field_uuids_to_gold_table
Verify field UUIDs are present in the final results table. field_uuid is now preserved throughout the pipeline from the source
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/nles5_nitrogen_estimation/main.py:2576
↓ 3 callersMethod_aggressive_cleanup_target_year
Delegate to memory utils.
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/nles5_nitrogen_estimation/main.py:1484
↓ 3 callersMethod_aggressive_resource_cleanup
Aggressive resource cleanup for memory-constrained environment.
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/field_production.py:217
↓ 3 callersFunction_apply_fdr
Apply Benjamini-Hochberg FDR correction to a list of results.
backend/scripts/verify_pfas_groundwater_correlations.py:1751
↓ 3 callersMethod_bucket_path
(self, path: str)
backend/pipelines/api_export/exporters/base.py:87
↓ 3 callersFunction_build_direction_frequency_table
Build region_id → [freq for direction 0..350 step 10] lookup. Sums frequency across all stability classes per direction bin. Returns 36-eleme
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pesticide_drift_exposure.py:101
↓ 3 callersMethod_build_request_payload
Build request payload based on table ID and parameters - DEPRECATED
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/dst.py:131
↓ 3 callersMethod_check_numeric
Check if numeric value is within tolerance of baseline.
backend/common/validation/baseline_manager.py:391
↓ 3 callersFunction_chr_main
()
backend/pipelines/chr_pipeline/tests/test_stamdata_fallback.py:9
← previousnext →401–500 of 6,215, ranked by callers