Skip to content

Commit

Permalink
Merge pull request #8 from nasa-nccs-hpda/hotfix-tilesize
Browse files Browse the repository at this point in the history
Hotfix tilesize
  • Loading branch information
jordancaraballo authored Feb 5, 2025
2 parents 2a031f0 + 96d9051 commit abc961a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,23 @@ and performing time series analysis using the CCDC algorithm

## Quickstart

> module load singularity
>
> singularity shell -B <WORKING_DIR>:<DATA_PATH> <path-to>/ilab-vhr-toolkit
>
> cd <path_to>/pyCCDC
>
> python simpleCCDC.py

```bash
module load singularity
singularity shell -B <WORKING_DIR>:<DATA_PATH> <path-to>/ilab-vhr-toolkit
cd <path_to>/pyCCDC
python simpleCCDC.py
```

## Development Example

When testing and developing with different configurations, the following
command can serve as a base to test new changes.

```bash
python view/ccdc_cli.py --gee_config gee_config.json \
--footprint_file "/explore/nobackup/projects/ilab/scratch/vhr-toolkit/WV02_20150911_M1BS_1030010049148A00_sr_02m.tif" \
--output_path /explore/nobackup/projects/ilab/scratch/vhr-toolkit/ccdc-test
```

## Contributors

Expand Down
4 changes: 2 additions & 2 deletions model/CCDCPipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def gen_single_image(
outfile=None,
scale=30,
max_tile_size=0.5,
image_dtype='uint16'
image_dtype='int16'
):
# TODO: Implement user-specified GEE account authentication.
# Currently using local credentials for testing purposes.
Expand Down Expand Up @@ -143,7 +143,7 @@ def gen_single_image(

def post_proc(self, file, crs):
raster = rxr.open_rasterio(file)
raster = raster.rio.write_nodata(-9999.)
raster = raster.rio.write_nodata(-9999)

raster = raster.rio.reproject(f"EPSG:{crs}")
raster.rio.to_raster(file)
Expand Down
2 changes: 1 addition & 1 deletion view/ccdc_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def genSingleImage(
outfile='',
scale=30,
max_tile_size=0.5,
image_dtype='uint16'
image_dtype='int16'
):

# TODO: Implement user-specified GEE account authentication.
Expand Down

0 comments on commit abc961a

Please sign in to comment.