-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Daily cimis rasters are upload to EarthEngine as a 8 band raster [ETo Tn Tx Tdew Rs Rso U2 Rnl]
- Merge rasters into single multi-band raster for each day
for c in cimis/*/*/*/ETo.tif; do
n=`echo $c | cut -d"/" -f 2-4 | tr "/" "-"`;
echo $n
dir=`dirname $c`
echo $dir
gdal_merge.py -separate -o $dir/$n.tif $dir/ETo.tif $dir/Tn.tif $dir/Tx.tif $dir/Tdew.tif $dir/Rs.tif $dir/Rso.tif $dir/U2.tif $dir/Rnl.tif
done
- Upload to Bucket
files='ls cimis/*/*/*/201*.tif'
echo $files
gsutil -m cp $files gs://earth-engine-staging/
- Transfer to EE
for i in `gsutil ls gs://earth-engine-staging/201*.tif`; do
d=`basename $i .tif | cut -d'/' -f 4`;
earthengine upload image --asset_id=users/ucd-cws-ee-data/ssj-delta-cu/ssj-weather/cimis/$d \
--time_start="$d" --pyramiding_policy=mean $i;
done
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels