[netcdf-java] Progress of FileWriter.finalize()

All,

I¹ve written an application which allows the user to browse a threadds
catalog, select a dataset, choose a temporal, spatial and variable subset
and then write the selected data to a local netcdf file.  The process works
quite well, however the only way I can show progress of the process is using
an indeterminate progress monitor.  After the user clicks ³process² - the
only thing that takes any significant time (> 10ms) is the
FileWriter.finalize() call which writes the in-memory nc file to disk.  Is
there any way to monitor this method and report the progress to the user?
Has anyone dealt with this before?  The only way I can think to do it is
estimate the size of the file based on the # of variables and their
datatype, the number of records, etc.  and then monitor the size of the nc
file as it¹s being written and display the ³% completion² to the user.  This
seems ³messy² and prone to miscalculations.

Any ideas??

Thank you in advance,

Chris

-- 
Christopher Mueller | Scientist
Applied Science Associates
70 Dean Knauss Drive | Narragansett, RI 02882 USA
p: +1 401-789-6224 | f: +1 401-789-1932
e: cmueller@xxxxxxxxxxxxxx | www.asascience.com

ASA | Science. Services. Solutions

Imagination is everything.  It is the preview of life's coming attractions.
- Albert Einstein

Whether you think you can or think you can't, either way you are right. -
Henry Ford

  • 2007 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: