Tom Roche avatar Tom Roche committed d64c048

tweaks, tested with latest regrid_utils

Comments (0)

Files changed (2)

 CLM_CN_REGRID_PDF_FN="${CLM_CN_REGRID_FN_ROOT}_$(date +${DATE_FORMAT}).pdf"
 export CLM_CN_REGRID_PDF_FP="${WORK_DIR}/${CLM_CN_REGRID_PDF_FN}" # path to PDF output
 
-### data container files
-### create data container files from extents/template file
+# ----------------------------------------------------------------------
+# final product(s)
+# ----------------------------------------------------------------------
+
+### create data container files from template file
 
 # problem: NCL currently (version=6.1.2) does not support *.ncf :-( workaround below
 # replace a string with values @ runtime
   fi
 } # end function get_conserv
 
-# TODO: remove/rename 'get_template_input' \
 function setup_resources {
   for CMD in \
     'get_raw_input' \
   output_attr_tstep = getenv("IOAPI_TIMESTEP_LENGTH")
   ; datavar metadata
   output_dv_name = getenv("CLM_CN_TARGET_DATAVAR_NAME")
-;   out_datavar_attr_long_name = getenv("CLM_CN_TARGET_DATAVAR_ATTR_LONG_NAME")
-;   out_datavar_attr_units = getenv("CLM_CN_TARGET_DATAVAR_ATTR_UNITS")
-;   out_datavar_attr_var_desc = getenv("CLM_CN_TARGET_DATAVAR_ATTR_VAR_DESC")
-;   ; coordvars
-;   out_coordvar_x_name = getenv("CLM_CN_TARGET_X_COORDVAR_NAME")
-;   out_coordvar_y_name = getenv("CLM_CN_TARGET_Y_COORDVAR_NAME")
-;   out_coordvar_layer_name = getenv("CLM_CN_TARGET_LAYER_COORDVAR_NAME")
-;   out_coordvar_time_name = getenv("CLM_CN_TARGET_TIME_COORDVAR_NAME")
 
 ;----------------------------------------------------------------------
 ; payload
 ;----------------------------------------------------------------------
 
-; system("cp ~/code/regridding/CLM_CN_global_to_AQMEII-NA/2008PTONCLMCNN2O_reunit.nc ./")                                   
-; system("cp ~/code/regridding/CLM_CN_global_to_AQMEII-NA/2008PTONCLMCNN2O_reunit_regrid.nc ./")
-
 ;----------------------------------------------------------------------
 ; write output as monthly, IOAPI
 ;----------------------------------------------------------------------
       ; TODO: set CDATE, CTIME, WDATE, WTIME
       output_fh@YEAR = model_year
       output_fh@MONTH = n_month
-      ; TODO: set SDATE, STIME, TSTEP
       output_fh@SDATE = stringtoint(get_monthly_SDATE(model_year, n_month))
       output_fh@STIME = stringtoint(output_attr_stime)
       output_fh@TSTEP = stringtoint(output_attr_tstep)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.