Skip to content

Commit

Permalink
4172 - Bulk download: soil depth (#4173)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorja authored Dec 9, 2024
1 parent da313fd commit 7cb3760
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/meta/assessment/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ import { Unit } from 'meta/assessment/unit'
export enum TableNames {
biomassStockAvg = 'biomassStockAvg',
biomassStockTotal = 'biomassStockTotal',
biomassStock_biomassStockStatus = 'biomassStock_biomassStockStatus',
carbonStock = 'carbonStock',
carbonStockAvg = 'carbonStockAvg',
carbonStockSoilDepth = 'carbonStockSoilDepth',
carbonStockTotal = 'carbonStockTotal',
climaticDomain = 'climaticDomain',
extentOfForest = 'extentOfForest',
extentOfForest_forestAreaStatusAndTrend = 'extentOfForest_forestAreaStatusAndTrend',
growingStock_growingStockStatus = 'growingStock_growingStockStatus',
biomassStock_biomassStockStatus = 'biomassStock_biomassStockStatus',
forestAreaWithinProtectedAreas = 'forestAreaWithinProtectedAreas',
forestCharacteristics = 'forestCharacteristics',
forestOwnership = 'forestOwnership',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ export const getContentVariables = async (props: Props & { fileName: string; ent
cols = ['growingStockPercent', 'growingStockMillionCubicMeter']
}

if (tableName === TableNames.carbonStockSoilDepth) {
cols = ['soil_depth']
}

await Promises.each(variables, async (variable) => {
const { csvColumn, variableName } = variable

Expand Down

0 comments on commit 7cb3760

Please sign in to comment.