1. Ls (for listing) 2.## conda activate FERRET (to activate ferret) 3.## pyferret -nojnl (activate pyferret and stop journaling-records commands and output to a file) 4.## use temp_july.nc (using specific data file) 5. show data (not mandatory as we use only S_an for salinity and T_an for temp) 6. show grid (not mandatory - for Understanding Data Structure) 7.## set memory/size=1000 (allocating more memory can significantly improve performance) 8.## set region/x=40:100/y=0:30 (for certain area) set region/x=88/y=30 (for certain point, plot is used) [z axis in fill command] 9.1 fill/nolab/z=0 T_an fill/nolab/lev=(0,32,1)/z=0 T_an [lev for level or range] go fland (fill the land) go land 7 (land border) 10.1 contour/ov/nolab/z=0/lev=(0,32,1) T_an [at surface as z=0] contour/ov/nolab/z=150/lev=(0,32,1) T_an [at 150m depth as z=150] 9.2 plot T_an (for specific region) plot/hlimit=4:30:2/vlimit=0:300:50/color=red T_an (hlimit = horizontal temp limit, use 30// vlimit = vertical, depth) 10.2 plot/ov/hlimit=4:30:2/vlimit=0:300:50/color=red T_an (to plot another one and compare) 11. label 0,-105,0,0,0.15,LONGITUDE label -200,0,0,90,0.15,LATITUDE label 0,105,0,0,0.15,Sea surface Salinity of the Global Ocean for January 12. frame/file=sal_jan.jpg _____________________________________________________________ (Split Window) set window/aspect=1.3 set view upper go margins 0.8 0.8 0.8 0.8 use temp_January.nc set/memory/size=1000 set region/x=88/y=15 plot/nolab/hlimit=0:30:1/vlimit=0:300:20/color=blue T_an label/nouser 3.6,-0.6,0,0,0.1 Temperature label/nouser -0.6,1.8,0,90,0.1 Depth set view lower go margins 0.8 0.8 0.8 0.8 plot/nolab/hlimit=0:30:1/vlimit=300:1500:50/color=blue T_a label/nouser 3.6,-0.6,0,0,0.1 Temperature label/nouser -0.6,1.8,0,90,0.1 Depth ___________________________________________________________ (calculate Density) 3. $conda activate FERRET 4. $pyferret -nojnl 5. yes?use temp_January.nc 6. yes?use salinity_January.nc 7. yes?set/memory/size=1000 8. yes?let density=rho_un(S_an[d=2],T_an[d=1],z) [calculates global density data (lat, long, depth, density)] 9. yes?fill/z=150 density map of density at 150m depth from the figure pick up max and min of density for use in lev 10. yes?fill/z=150/nolab/palette=rainbow/lev=(1022,1031,1) density 11. yes?contour/ov/z=150/ nolab/palette=rainbow/lev=(1022,1031,1) density 12. yes?go fland 13. yes?go land 1 [1 for black 2 to 6 for different colour 7 for thick black] 14. yes? label 0,-107,0,0,0.15 LONGITUDE 15. yes? label -205,0,0,90,0.15 LATITUDE 16. yes?frame/file=global_density_150m_january.gif [saves the plot in the file in .gif format] 17. yes?save/file=density_january.nc/clobber density [ saves the global density data (lat, long, depth, density) to NetCdf file] 18. yes? save/file=density_january.dat/clobber density [saves the global density data (lat, long, depth, density) to Ascii file] __________________________________________________________ Mixed Layer Density (MLD) 5. yes?use temp_January.nc 6. yes?use salinity_January.nc 7. yes?set/memory/size=1000 (use show data to detect which is data 1, which is data 2) 8. yes?let density=rho_un(S_an[d=2],T_an[d=1],z) [calculates global density data (lat, long, depth, density)] 9. yes?let diffa=density[k=1]+0.2 [adds 0.2 to surface density] 10.yes?let diffar=density-diffa [calculates the difference between density and (surface density+0.2)] 12. yea?let mld=diffar[z=0:500@loc:0] [ locates the depth in the upper 500m where the density equals the value] 13. yes?fill mld 14. yes?fill/nolab/palette=rainbow/lev=(0,60,5) mld 11. yes?contour/ov/nolab/palette=rainbow/lev=(0,60,10) mld 12. yes?go fland 13. yes?go land 1 [ 1 for black 2 to 6 for different colour 7 for thick black ] 14. yes? label 0,-107,0,0,0.15 LONGITUDE 15. yes? label -205,0,0,90,0.15 LATITUDE 16. yes?frame/file=global_mld_january.gif saves the plot in the file in .gif format 17. yes?save/file=mld_january.nc/clobber density saves the global mld data (lat, long, depth, density) to NetCdf file 18. yes? save/file=mld_january.dat/clobber density saves the global mld data (lat, long, depth, density) to Ascii file _________________________________________________________