Changes between Version 15 and Version 16 of HYCOM
- Timestamp:
- 10/01/09 21:30:42 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HYCOM
v15 v16 84 84 1. Create a folder on your hard drive. I suggest and will assume you will use '''C:\HYCOM''', although you can use a different folder if desired. 85 85 86 2. Save the following filesinto '''C:\HYCOM''':[[BR]][[BR]]87 * Extract_Rasters_From_HYCOM_Global_NetCDFs.py- Python script that performs the extraction88 * Extract_Rasters_From_HYCOM_Global_NetCDFs.cmd- Batch file for running the Python script in a loop until it completes successfully, to work around memory leaks in ArcGIS that crash the script89 * ascii2shp.exe - Helper program for rapidly converting a CSV file into a shapefile86 2. Right-click on the following files and save them into '''C:\HYCOM''':[[BR]][[BR]] 87 * [http://code.env.duke.edu/projects/mget/browser/WikiFiles/Examples/HYCOM/Extract_Rasters_From_HYCOM_Global_NetCDFs.py?format=raw Extract_Rasters_From_HYCOM_Global_NetCDFs.py] - Python script that performs the extraction 88 * [http://code.env.duke.edu/projects/mget/browser/WikiFiles/Examples/HYCOM/Extract_Rasters_From_HYCOM_Global_NetCDFs.cmd?format=raw Extract_Rasters_From_HYCOM_Global_NetCDFs.cmd] - Batch file for running the Python script in a loop until it completes successfully, to work around memory leaks in ArcGIS that crash the script 89 * [http://code.env.duke.edu/projects/mget/browser/WikiFiles/Examples/HYCOM/ascii2shp.exe?format=raw ascii2shp.exe] - Helper program for rapidly converting a CSV file into a shapefile. '''Warning:''' be sure to save this with a {{{.exe}}} extension (some browsers may try to prevent it). 90 90 91 91 3. Using your favorite web browser or FTP client, go to the place where you download files from the HYCOM dataset you want. From the '''topo''' directory on the HYCOM server, download the files '''regional.grid.a''' and '''regional.grid.b''' and save them to '''C:\HYCOM'''. … … 99 99 7. Start a CMD shell. (On Windows XP or Server 2003, click Start, Run, type CMD, and press Enter. On Vista or later, click Start, type CMD, and press Enter.) CD to the '''C:\HYCOM''' directory. 100 100 101 8. Before extracting a large batch of data, you should verify that you can extract a single depth layer from a single file. Type the following into the CMD shell and press Enter (this assumes you want to extract the '''temperature''' variable for the 0 m depth layer from the file '''archv.2003_232_00_3zt.nc'''):[[BR]][[BR]] '''Extract_Rasters_From_HYCOM_Global_NetCDFs.py NetCDFs\archv.2003_232_00_3zt.nc temperature regional.grid.a regional.grid.b Rasters 0'''[[BR]][[BR]]You should see output that looks like this:101 8. Before extracting a large batch of data, you should verify that you can extract a single depth layer from a single file. Type the following into the CMD shell and press Enter (this assumes you want to extract the '''temperature''' variable for the 0 m depth layer from the file '''archv.2003_232_00_3zt.nc'''):[[BR]][[BR]]{{{Extract_Rasters_From_HYCOM_Global_NetCDFs.py NetCDFs\archv.2003_232_00_3zt.nc temperature regional.grid.a regional.grid.b Rasters 0}}}[[BR]][[BR]]You should see output that looks like this: 102 102 103 103 {{{
