Difference between revisions of "How to download HYCOM"

From ccrmwiki
Jump to: navigation, search
Line 8: Line 8:
 
Once you download and untar, there’re 2 directories (9x.x_exp & 19.x_exp) that correspond to 2 different HYCOM experiment datasets; check HYCOM web site for further details about the description of the datasets.
 
Once you download and untar, there’re 2 directories (9x.x_exp & 19.x_exp) that correspond to 2 different HYCOM experiment datasets; check HYCOM web site for further details about the description of the datasets.
  
Main script is listdate.sh in each dir, edit options as you needed.
+
Main script is listdate.sh in each dir, edit options as you need.
 
For example:  
 
For example:  
 
*exp="91.1"    HYCOM experiment
 
*exp="91.1"    HYCOM experiment
Line 19: Line 19:
 
*yr="2012"
 
*yr="2012"
  
There’re 3 optional vars you can add, if you have large domain (and want to subsample) or encounter memory problem with ferret.
+
There’re 3 optional vars you can specify, if you have large domain (and want to subsample) or encounter memory problem with ferret.
*lon_i : longitude interval, default is 0.08, use larger if needed
+
*lon_i: longitudinal interval, default is 0.08, use larger if needed
*lat_i : latitude interval , default is 0.08, use larger if needed
+
*lat_i: latitudinal interval , default is 0.08, use larger if needed
*mem : ferret memory cache, default is 300 (MegaWords), use larger if needed
+
*mem: ferret memory cache, default is 300 (MegaWords), use larger if needed
  
 
Once you finish, execute listdate.sh, and it will generate listHYCOM.jnl for whole record list of experiment. <br>
 
Once you finish, execute listdate.sh, and it will generate listHYCOM.jnl for whole record list of experiment. <br>
Line 28: Line 28:
 
Then execute dlHYCOM.sh, and all your nc files will be in “output/”.
 
Then execute dlHYCOM.sh, and all your nc files will be in “output/”.
  
If any bad situation happened, such as TMAP error or disconnection, <br>
+
If any error occurs, such as TMAP error or disconnection, <br>
 
please check ncfile (including size) in output directory first, <br>
 
please check ncfile (including size) in output directory first, <br>
and '''DO DELETE''' the line which already successfully download in listHYCOM.jnl! <br>
+
and '''DELETE''' the line which already successfully download in listHYCOM.jnl, <br>
Then type: dlHYCOM.sh again! <br>
+
and then type: dlHYCOM.sh again! <br>
  
 
The download script is designed to get all variables into 3 files (EL_*.nc, ST_*.nc, UV_*.nc) for SCHISM. <br>
 
The download script is designed to get all variables into 3 files (EL_*.nc, ST_*.nc, UV_*.nc) for SCHISM. <br>

Revision as of 08:15, 16 July 2018

From Dr. Dan Yu (July 2018):

This HYCOM download tool uses “ferret” as interface. Please visit ferret web site to see details of the software. Also you'll need nco tool.

You can download our tool here.

Once you download and untar, there’re 2 directories (9x.x_exp & 19.x_exp) that correspond to 2 different HYCOM experiment datasets; check HYCOM web site for further details about the description of the datasets.

Main script is listdate.sh in each dir, edit options as you need. For example:

  • exp="91.1" HYCOM experiment
  • lon_s="120E" start longitude
  • lon_e="125E" end longitude
  • lat_s="20N" start latitude
  • lat_e="25N" end latitude

For 19.x_exp, 1 extra var “yr” has to be defined.

  • yr="2012"

There’re 3 optional vars you can specify, if you have large domain (and want to subsample) or encounter memory problem with ferret.

  • lon_i: longitudinal interval, default is 0.08, use larger if needed
  • lat_i: latitudinal interval , default is 0.08, use larger if needed
  • mem: ferret memory cache, default is 300 (MegaWords), use larger if needed

Once you finish, execute listdate.sh, and it will generate listHYCOM.jnl for whole record list of experiment.
Edit time range in listHYCOM.jnl if you wish.
Then execute dlHYCOM.sh, and all your nc files will be in “output/”.

If any error occurs, such as TMAP error or disconnection,
please check ncfile (including size) in output directory first,
and DELETE the line which already successfully download in listHYCOM.jnl,
and then type: dlHYCOM.sh again!

The download script is designed to get all variables into 3 files (EL_*.nc, ST_*.nc, UV_*.nc) for SCHISM.
Once you gather all you need, simply use nco command to cat your ncfiles.
For example: ncrcat EL_*.nc EL_final.nc
Then you can use "gen_hot_3Dth_from_hycom.f90" to generate your initial & open boundary conditions for SCHISM.

Enjoy!