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

uploading daily ETc as EarthEngine asset #2

Open
andybell opened this issue Jun 29, 2017 · 0 comments
Open

uploading daily ETc as EarthEngine asset #2

andybell opened this issue Jun 29, 2017 · 0 comments

Comments

@andybell
Copy link
Collaborator

andybell commented Jun 29, 2017

First, need to upload all the geotiffs up to a google bucket.

gsutil -m cp *.tif gs://earth-engine-staging

Then, using the earthengine cml copy the assets into EarthEngine image collection. The date field is very important. The geotiffs are name like "ETc_092316_out.tif" so we need to extract the dates from the filename:

earthengine create collection users/ucd-cws-ee-data/ssj-delta-cu/ssj-sims/et_overpass

for i in *.tif; do 
 y=`echo $i | cut -c 9-10` 
 m=`echo $i | cut -c 5-6`
 d=`echo $i | cut -c 7-8` 
 date=`date --date="20$y-$m-$d" --iso`
 echo $date
 
 earthengine upload image --asset_id=users/ucd-cws-ee-data/ssj-delta-cu/ssj-sims/et_overpass/$date \
 --time_start="$date" --pyramiding_policy=mean --nodata_value=-9999 gs://earth-engine-staging/$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