-
Notifications
You must be signed in to change notification settings - Fork 63
Refactor GCBM API #163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aornugent
wants to merge
8
commits into
master
Choose a base branch
from
gcbm-api
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Refactor GCBM API #163
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8fa8826
@ankitaS11 Preprocessing refactor
aornugent 322dd11
Update FLINTcloud reference config.
aornugent 32fcfd0
Update: add tests using pytest, update GCBM API (more TODOs left)
ankitaS11 cecca2c
Merge branch 'master' into gcbm-api
ankitaS11 f25da75
Add input tiff files (Samples) for 2 simulations
ankitaS11 7c6a62d
Merge branch 'gcbm-api' of github.com:moja-global/FLINT.Cloud into gc…
ankitaS11 1436a61
Update local/rest_api_gcbm/gcbm.py
ankitaS11 eb62553
Support multiple attributes, generate provider_config, modules_cbm, a…
ankitaS11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,16 @@ | ||
| { | ||
| "layer_type": "GridLayer", | ||
| "layer_data": "Byte", | ||
| "nodata": 255, | ||
| "tileLatSize": 1.0, | ||
| "tileLonSize": 1.0, | ||
| "blockLatSize": 0.1, | ||
| "blockLonSize": 0.1, | ||
| "cellLatSize": 0.01, | ||
| "cellLonSize": 0.01, | ||
| "attributes": { | ||
| "1": "Tropical Dry", | ||
| "2": "Tropical Moist", | ||
| "3": "Tropical Premontane Wet, Transition to Basal - Atlantic" | ||
| } | ||
| } |
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
local/rest_api_gcbm/tests/tiff/belize/LifeZone_moja.tiff.aux.xml
This file contains hidden or 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,14 @@ | ||
| <PAMDataset> | ||
| <PAMRasterBand band="1"> | ||
| <Histograms> | ||
| <HistItem> | ||
| <HistMin>-0.5</HistMin> | ||
| <HistMax>255.5</HistMax> | ||
| <BucketCount>256</BucketCount> | ||
| <IncludeOutOfRange>1</IncludeOutOfRange> | ||
| <Approximate>0</Approximate> | ||
| <HistCounts>0|9681|5123|3516|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0</HistCounts> | ||
| </HistItem> | ||
| </Histograms> | ||
| </PAMRasterBand> | ||
| </PAMDataset> | ||
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
local/rest_api_gcbm/tests/tiff/belize/mean_annual_temperature_moja.json
This file contains hidden or 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,11 @@ | ||
| { | ||
| "layer_type": "GridLayer", | ||
| "layer_data": "Float32", | ||
| "nodata": 3.3999999521443642e+38, | ||
| "tileLatSize": 1.0, | ||
| "tileLonSize": 1.0, | ||
| "blockLatSize": 0.1, | ||
| "blockLonSize": 0.1, | ||
| "cellLatSize": 0.01, | ||
| "cellLonSize": 0.01 | ||
| } |
Binary file added
BIN
+36.2 KB
local/rest_api_gcbm/tests/tiff/belize/mean_annual_temperature_moja.tiff
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
local/rest_api_gcbm/tests/tiff/belize/mean_annual_temperature_moja.tiff.aux.xml
This file contains hidden or 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,14 @@ | ||
| <PAMDataset> | ||
| <PAMRasterBand band="1"> | ||
| <Histograms> | ||
| <HistItem> | ||
| <HistMin>-0.5</HistMin> | ||
| <HistMax>255.5</HistMax> | ||
| <BucketCount>256</BucketCount> | ||
| <IncludeOutOfRange>1</IncludeOutOfRange> | ||
| <Approximate>0</Approximate> | ||
| <HistCounts>0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|76|720|1881|1618|5088|8835|102|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0</HistCounts> | ||
| </HistItem> | ||
| </Histograms> | ||
| </PAMRasterBand> | ||
| </PAMDataset> |
This file contains hidden or 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,60 @@ | ||
| { | ||
| "tile_size": 1.0, | ||
| "block_size": 0.1, | ||
| "tiles": [ | ||
| { | ||
| "x": -90, | ||
| "y": 16, | ||
| "index": 26730 | ||
| }, | ||
| { | ||
| "x": -90, | ||
| "y": 17, | ||
| "index": 26370 | ||
| }, | ||
| { | ||
| "x": -90, | ||
| "y": 18, | ||
| "index": 26010 | ||
| }, | ||
| { | ||
| "x": -90, | ||
| "y": 19, | ||
| "index": 25650 | ||
| }, | ||
| { | ||
| "x": -89, | ||
| "y": 16, | ||
| "index": 26731 | ||
| }, | ||
| { | ||
| "x": -89, | ||
| "y": 17, | ||
| "index": 26371 | ||
| }, | ||
| { | ||
| "x": -89, | ||
| "y": 18, | ||
| "index": 26011 | ||
| }, | ||
| { | ||
| "x": -89, | ||
| "y": 19, | ||
| "index": 25651 | ||
| } | ||
| ], | ||
| "pixel_size": 0.01, | ||
| "layers": [ | ||
| { | ||
| "name": "mean_annual_temperature", | ||
| "type": "RasterLayer" | ||
| }, | ||
| { | ||
| "name": "LifeZone", | ||
| "type": "VectorLayer", | ||
| "tags": [ | ||
| "classifier" | ||
| ] | ||
| } | ||
| ] | ||
| } |
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+25.8 KB
local/rest_api_gcbm/tests/tiff/new_demo_run/disturbances_2011_moja.tiff
Binary file not shown.
Binary file added
BIN
+25.8 KB
local/rest_api_gcbm/tests/tiff/new_demo_run/disturbances_2012_moja.tiff
Binary file not shown.
Binary file added
BIN
+25.8 KB
local/rest_api_gcbm/tests/tiff/new_demo_run/disturbances_2013_moja.tiff
Binary file not shown.
Binary file added
BIN
+25.7 KB
local/rest_api_gcbm/tests/tiff/new_demo_run/disturbances_2014_moja.tiff
Binary file not shown.
Binary file added
BIN
+25.7 KB
local/rest_api_gcbm/tests/tiff/new_demo_run/disturbances_2015_moja.tiff
Binary file not shown.
Binary file added
BIN
+25.7 KB
local/rest_api_gcbm/tests/tiff/new_demo_run/disturbances_2016_moja.tiff
Binary file not shown.
Binary file added
BIN
+25.7 KB
local/rest_api_gcbm/tests/tiff/new_demo_run/disturbances_2018_moja.tiff
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+76 KB
local/rest_api_gcbm/tests/tiff/new_demo_run/mean_annual_temperature_moja.tiff
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.