-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bash scripts for tutorial 6 (#36)
Co-authored-by: Esteban82-HP <SU-CORREO-ELECTRONICO0>
- Loading branch information
Showing
6 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Making animations | ||
# Step 1. Make first image. | ||
# Step Goal: Create the first image of the animation. | ||
|
||
|
||
|
||
|
||
gmt begin Earth png | ||
gmt grdimage @earth_relief_06m -I -JG0/0/13c | ||
gmt end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Making animations | ||
# Step 2. Make master frame. | ||
# Step Goal: Make a master frame that looks identical to the first image. | ||
# 1st attempt. | ||
|
||
|
||
cat << 'EOF' > main.sh | ||
gmt begin | ||
gmt grdimage @earth_relief_06m -I -JG0/0/13c | ||
gmt end | ||
EOF | ||
gmt movie main.sh -NEarth -V -L+f14p,Helvetica-Bold,white -Gblack -Chd -T360 -M0,png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Making animations | ||
# Step 2. Make master frame. | ||
# Step Goal: Make a master frame that looks identical to the first image. | ||
# 2nd attempt. Fix the canvas | ||
|
||
|
||
cat << 'EOF' > main.sh | ||
gmt begin | ||
gmt grdimage @earth_relief_06m -I -JG0/0/13c -X0 -Y0 | ||
gmt end | ||
EOF | ||
gmt movie main.sh -NEarth -V -L+f14p,Helvetica-Bold,white -Gblack -C13cx13cx80 -T360 -M0,png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Making animations | ||
# Step 3. Make draft animation | ||
# Step Goal: See that the video file is created properly. | ||
# See that the frames are changing as expected. | ||
# 1st attempt. Reduce size and quality | ||
|
||
cat << 'EOF' > main.sh | ||
gmt begin | ||
gmt grdimage @earth_relief_06m -I -JG0/0/13c -X0 -Y0 | ||
gmt end | ||
EOF | ||
gmt movie main.sh -NEarth -V -L+f14p,Helvetica-Bold,white -Gblack -C13cx13cx30 -T10 -M0,png -Fmp4 -Zs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Making animations | ||
# Step 3. Make draft animation | ||
# Step Goal: See that the video file is created properly. | ||
# See that the frames are changing as expected. | ||
# 2nd attempt. Use parameter | ||
|
||
cat << 'EOF' > main.sh | ||
gmt begin | ||
gmt grdimage @earth_relief_06m -I -JG-${MOVIE_FRAME}/0/${MOVIE_WIDTH} -Y0 -X0 | ||
gmt end | ||
EOF | ||
gmt movie main.sh -NEarth -V -L+f14p,Helvetica-Bold,white -Gblack -C13cx13cx30 -T10 -M0,png -Fmp4 -Zs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Making animations | ||
# Step 4. Make full animation | ||
# Step Goal: Get the final animation. | ||
# Increase number of frames (-T) and movie quality (-C). | ||
|
||
|
||
cat << 'EOF' > main.sh | ||
gmt begin | ||
gmt grdimage @earth_relief_06m -I -JG-${MOVIE_FRAME}/0/${MOVIE_WIDTH} -Y0 -X0 | ||
gmt end | ||
EOF | ||
gmt movie main.sh -NEarth -V -L+f14p,Helvetica-Bold,white -Gblack -C13cx13cx80 -T360 -M0,png -Fmp4 -Zs |