Skip to content
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

Steps for Uploading band cimis to EE #7

Open
andybell opened this issue May 5, 2017 · 0 comments
Open

Steps for Uploading band cimis to EE #7

andybell opened this issue May 5, 2017 · 0 comments

Comments

@andybell
Copy link
Collaborator

andybell commented May 5, 2017

Daily cimis rasters are upload to EarthEngine as a 8 band raster [ETo Tn Tx Tdew Rs Rso U2 Rnl]

  1. 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
  1. Upload to Bucket
files='ls cimis/*/*/*/201*.tif'
echo $files
gsutil -m cp $files  gs://earth-engine-staging/
  1. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant