| 597 | This takes place in three steps: |
| 598 | |
| 599 | * Scan each file for metadata and save the metadata in the node database. (This is in contrast to running `esgscan_directory`, which just scans the directory structure.) |
| 600 | |
| 601 | * Generate a THREDDS catalog based on the scanned information. THREDDS is a data and metadata server used by ESGF. |
| 602 | |
| 603 | * Notify the idx that one or more catalogs have been generated. |
| 604 | |
| 605 | === File Scan Phase === |
| 606 | |
| 607 | In order to scan the cordex files for metadata, run `esgscan_directory` to generate a mapfile and after that run `esgpublish` with input from a mapfile: |
| 608 | {{{ |
| 609 | #!sh |
| 610 | $ whoami |
| 611 | esgf |
| 612 | $ cd /usr/local/uvcdat/1.4.0/bin |
| 613 | $ ./esgscan_directory -i /esg/config/esgcet/esg.ini --project cordex -o ~/cordex.txt /datasets/CORDEX |
| 614 | $ sudo ./esgunpublish -i /esg/config/esgcet/esg.ini --map ~/cordex.txt |
| 615 | INFO 2013-11-19 19:32:44,981 Deleting cordex.EUR-22.UCAN.ECMWF-ERAINT.evaluation.r1i1p1.WRF331G_v02.3hr.hfls |
| 616 | INFO 2013-11-19 19:32:45,162 Result: SUCCESSFUL |
| 617 | INFO 2013-11-19 19:32:45,173 Deleting cordex.EUR-22.UCAN.ECMWF-ERAINT.evaluation.r1i1p1.WRF331G_v02.3hr.hfss |
| 618 | INFO 2013-11-19 19:32:45,345 Result: SUCCESSFUL |
| 619 | .......................................... |
| 620 | }}} |
| 621 | |
| 622 | |