This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #231 from azavea/feature/awf/cleanup-time-agg-para…
…m#212 Feature/awf/cleanup time agg param#212
- Loading branch information
Showing
11 changed files
with
56 additions
and
56 deletions.
There are no files selected for viewing
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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ClimateModel } from './climate-model.model'; | ||
import { TimeAggParam } from './time-agg-param.enum'; | ||
|
||
export interface IndicatorQueryParams { | ||
climateModels?: ClimateModel[]; | ||
years?: string[]; | ||
time_aggregation?: TimeAggParam; | ||
agg?: string; | ||
unit?: string; | ||
} |
10 changes: 3 additions & 7 deletions
10
src/app/models/indicator-query-opts.model.ts → ...pp/models/indicator-request-opts.model.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
import { City } from './city.model'; | ||
import { Indicator } from './indicator.model'; | ||
import { IndicatorQueryParams } from './indicator-query-params.model'; | ||
import { ClimateModel } from './climate-model.model'; | ||
import { Scenario } from './scenario.model'; | ||
|
||
export interface IndicatorQueryOpts { | ||
export interface IndicatorRequestOpts { | ||
indicator: Indicator; | ||
city: City; | ||
scenario: Scenario; | ||
params: { | ||
climateModels?: ClimateModel[]; | ||
years?: string[]; | ||
time_aggregation?: string; | ||
unit?: string; | ||
} | ||
params: IndicatorQueryParams; | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { IndicatorQueryParams } from './indicator-query-params.model'; | ||
|
||
export interface ThresholdIndicatorQueryParams extends IndicatorQueryParams { | ||
threshold: Number; | ||
threshold_units: string; | ||
threshold_comparator: string; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
export enum TimeAggParam { | ||
Yearly = 'yearly', | ||
Quarterly = 'quarterly', | ||
Monthly = 'monthly' | ||
} |
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 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