You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, rasters need to be converted to geotifs using gdal. Note: units are in mm
for i in *.img; do
echo $i
d=$(basename $i .img)
gdal_translate -ot Float32 -of Gtiff -co "COMPRESS=DEFLATE" $i $d.tif
done
Then, upload to google bucket
gsutil -m cp *.tif gs://earth-engine-staging
Daily ET rasters are named like ITRC_Delta_2015_Jul_11_ET_inst.tif . In order to move all assets to EarthEngine from the bucket with the correct date use the following bash script.
earthengine create collection users/ucd-cws-ee-data/ssj-delta-cu/ssj-itrc-metric/et_daily
for i in *.tif; do
array=(`echo $i | sed 's/_/\n/g'`)
y=${array[2]}
mon=${array[3]}
d=${array[4]}
date=`date --date="$d $mon $y" --iso`
echo $date
earthengine upload image --asset_id=users/ucd-cws-ee-data/ssj-delta-cu/ssj-itrc-metric/et_daily/$date \
--time_start="$date" --pyramiding_policy=mean gs://earth-engine-staging/$i;
done
The text was updated successfully, but these errors were encountered:
When files are name like f03_et24_2016_05_10.tif -
for i in *.tif; do
array=(`echo $i | sed 's/_/\n/g'`)
y=${array[2]}
mon=${array[3]}
dt=${array[4]}
d="${dt%.*}"
date=`date --date="$y-$mon-$d" --iso`
echo $date
First, rasters need to be converted to geotifs using gdal. Note: units are in mm
Then, upload to google bucket
Daily ET rasters are named like ITRC_Delta_2015_Jul_11_ET_inst.tif . In order to move all assets to EarthEngine from the bucket with the correct date use the following bash script.
The text was updated successfully, but these errors were encountered: