Skip to content

Steps for Uploading band cimis to EE #7

@andybell

Description

@andybell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions