-
Couldn't load subscription status.
- Fork 22
Documentation for new Kalpana app #209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
25720c5
24506d7
bffe24b
000aace
5a17dfc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,41 +1,102 @@ | ||||||||||||||||||||||||||||||||
| ## Kalpana | ||||||||||||||||||||||||||||||||
| <a name="kaplana-user-guide"></a><!-- old heading name/id --> | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| !!! note | ||||||||||||||||||||||||||||||||
| Kalpana is **temporarily unavailable**. It is being updated. | ||||||||||||||||||||||||||||||||
| Kalpana is a Python library which primarily converts ADCIRC NetCDF output files to GIS-compatible shapefiles. Secondary functions are not available in the DesignSafe application. It was developed by the Coastal and Computational Hydraulics Team at North Carolina State University. More information regarding Kalpana can be found at: | ||||||||||||||||||||||||||||||||
| <ul> | ||||||||||||||||||||||||||||||||
| <li>The CCHT website: <a href="https://ccht.ccee.ncsu.edu/kalpana/" target="_blank">https://ccht.ccee.ncsu.edu/kalpana/</a></li> | ||||||||||||||||||||||||||||||||
| <li>The official GitHub repository, which contains the latest release and examples: <a href="https://github.com/ccht-ncsu/Kalpana" target="_blank">https://github.com/ccht-ncsu/Kalpana</a></li> | ||||||||||||||||||||||||||||||||
| </ul> | ||||||||||||||||||||||||||||||||
|
Comment on lines
+5
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| Kalpana is a python script that converts ADCIRC output files to GIS compatible shapefiles. The code accepts NetCDF formatted ADCIRC outputs for maximum water levels and wind speeds (maxele.63.nc and maxwvel.63.nc) and converts these to polyline/polygon shapefiles. | ||||||||||||||||||||||||||||||||
| ### Submitting a Job | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| More information regarding Kalpana can be found at: <a href="https://ccht.ccee.ncsu.edu/how-to-run-kalpana/" target="_blank">https://ccht.ccee.ncsu.edu/how-to-run-kalpana/</a>. | ||||||||||||||||||||||||||||||||
| #### On the Web Portal | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| ### How to Submit a Kalpana Job in the Workspace | ||||||||||||||||||||||||||||||||
| Generating contours for a single case is simple through the web interface. The following information is required: | ||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Footnotes
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| You will have to fill out a form to submit your job that asks multiple information as follows: | ||||||||||||||||||||||||||||||||
| <ul> | ||||||||||||||||||||||||||||||||
| <li><b>ADCIRC File.</b> See the reference table below. Generic NetCDF files may also be accepted, if formatted appropriately.</li> | ||||||||||||||||||||||||||||||||
| <li><b>Variable.</b> Preceded by flag --var. The variable of interest from the NetCDF file. See the reference table below.</li> | ||||||||||||||||||||||||||||||||
| <li><b>Contour levels.</b> Preceded by flag --levels. Separated by spaces, the minimum contour, maximum contour, and step size.</li> | ||||||||||||||||||||||||||||||||
| <li><b>Vertical units out.</b> m or ft</li> | ||||||||||||||||||||||||||||||||
| <li><b>Vertical units in.</b> m or ft</li> | ||||||||||||||||||||||||||||||||
| <li><b>Time Steps.</b> Preceded by flag --timesteps. For time-varying files, specific time steps to extract are provided, separated by spaces. Otherwise, all are exported.</li> | ||||||||||||||||||||||||||||||||
| </ul> | ||||||||||||||||||||||||||||||||
|
Comment on lines
+16
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| <ol> | ||||||||||||||||||||||||||||||||
| <li><b>Working Directory:</b><br> | ||||||||||||||||||||||||||||||||
| This is the directory that contains the ADCIRC simulation NetCDF file to be converted. You can either drag and drop the directory from Data depot browser on the left or use select button.<br> | ||||||||||||||||||||||||||||||||
| </li> | ||||||||||||||||||||||||||||||||
| <li><b>File type:</b><br> | ||||||||||||||||||||||||||||||||
| The Kalpana software on DesignSafe is capable to convert two NetCDF file types.<br> | ||||||||||||||||||||||||||||||||
| (a) maxele.63.nc for maximum water levels,<br> | ||||||||||||||||||||||||||||||||
| (b) maxwvel.63.nc for maximum wind speeds.<br> | ||||||||||||||||||||||||||||||||
| </li> | ||||||||||||||||||||||||||||||||
| <li><b>Vector shape:</b><br> | ||||||||||||||||||||||||||||||||
| Vector shape can be selected from a dropdown menu to be (a) polyline or (b) polygon.<br> | ||||||||||||||||||||||||||||||||
| </li> | ||||||||||||||||||||||||||||||||
| <li><b>Contour type and Contour information:</b><br> | ||||||||||||||||||||||||||||||||
| If you select contourrange for contour type, the contour information should be provided in this format 'min max interval' (e.g. '0 5 0.5').<br> | ||||||||||||||||||||||||||||||||
| <br> | ||||||||||||||||||||||||||||||||
| If you select contourlevel for contour type, the contour information should be provided as a custom set of contour levels (e.g. '0 1 2 3 4 5 6 7 8 9 10 11 12'). Please note that the selection of contour values depends on the range of your simulation output.</li> | ||||||||||||||||||||||||||||||||
| </ol> | ||||||||||||||||||||||||||||||||
| After this, generic allocation and archiving preferences are available. Since Kalpana is a serial program, it does not make sense to run on multiple nodes. However, additional cores may provide additional memory to process very large files. | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| Next enter a job name and an output archive location or use the default provided. Now, click Run to submit your job. | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| {: class="align-center" } | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| You can track the status of your job to the right side of the same page. The status will change from “Pending” to “Staged”, “Submitting” and “Running”. These processes usually take about 1 to 2 minutes. | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| Once the status changed to “FINISHED”, you can find the outputs in data depot by navigating to the archived location. If not specified by the user, the job output including the converted shapefile can be found at: My Data / archive / jobs / ${YYYY-MM-DD} / ${JOB_NAME}-${JOB_ID} | ||||||||||||||||||||||||||||||||
| <table> | ||||||||||||||||||||||||||||||||
| <caption>Reference Table for Common ADCIRC Files</caption> | ||||||||||||||||||||||||||||||||
wesleyboar marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||
| <thead> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <th>File</th> | ||||||||||||||||||||||||||||||||
| <th>Description</th> | ||||||||||||||||||||||||||||||||
| <th>Variables of Interest</th> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| </thead> | ||||||||||||||||||||||||||||||||
| <tbody> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>fort.63.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Time-dependent water elevation</td> | ||||||||||||||||||||||||||||||||
| <td>depth, zeta</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>fort.64.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Time-dependent water velocity</td> | ||||||||||||||||||||||||||||||||
| <td>depth, u-vel, v-vel</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>fort.73.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Time-dependent air pressure</td> | ||||||||||||||||||||||||||||||||
| <td>depth, pressure</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>fort.74.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Time-dependent wind velocity</td> | ||||||||||||||||||||||||||||||||
| <td>depth, windx, windy</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>maxele.63.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Maximum water elevation</td> | ||||||||||||||||||||||||||||||||
| <td>depth, time_of_zeta_max, zeta_max</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>maxvel.63.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Maximum water velocity</td> | ||||||||||||||||||||||||||||||||
| <td>depth, time_of_vel_max, vel_max</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>maxwvel.63.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Maximum wind velocity</td> | ||||||||||||||||||||||||||||||||
| <td>depth, time_of_wind_max, wind_max</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>swan_HS.63.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Significant wave height</td> | ||||||||||||||||||||||||||||||||
| <td>swan_HS</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>swan_HS_max.63.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Maximum significant wave height</td> | ||||||||||||||||||||||||||||||||
| <td>swan_HS_max</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>swan_TPS.63.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Peak wave period</td> | ||||||||||||||||||||||||||||||||
| <td>swan_TPS</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>swan_TPS_max.63.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Maximum peak wave period</td> | ||||||||||||||||||||||||||||||||
| <td>swan_TPS_max</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| <tr> | ||||||||||||||||||||||||||||||||
| <td>swan_TMM10.63.nc</td> | ||||||||||||||||||||||||||||||||
| <td>Mean wave period</td> | ||||||||||||||||||||||||||||||||
| <td>swan_TMM10</td> | ||||||||||||||||||||||||||||||||
| </tr> | ||||||||||||||||||||||||||||||||
| </tbody> | ||||||||||||||||||||||||||||||||
| </table> | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| #### Advanced Functionality with Tapis | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| To generate shapefiles for an ensemble, or to modify advanced Kalpana settings, submit JSON job requests using TapiPy (<a href="https://github.com/tapis-project/tapipy" target="_blank">https://github.com/tapis-project/tapipy</a>). Descriptions for each flag are available in the Tapis app specification or the source file on GitHub, see function nc2shp (<a href="https://github.com/ccht-ncsu/Kalpana/blob/master/kalpana/export.py" target="_blank">https://github.com/ccht-ncsu/Kalpana/blob/master/kalpana/export.py</a>). | ||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.