[netcdfgroup] too slow to use fortran code to extract NetCDF? more than 7 hrs to extract from 365*24 files.

Hello:

Currently I have an issue with using fortran code to extract variables from WRF 
NetCDF outputs.

I wrote a simple code to do the extraction: 
http://www.caps.ou.edu/micronet/CO2_and_otherGHG/WRFV3.9.1.1/YSU/wrfchem3.9.1.1_R2_CONUS_Snudge_tracer16CTbc_SSTu_10mb_convOnScavOff_Hilton2Sc01.2016010100/extract_netCDF_xhu_atLamontetc_4sites_writeNC.f90

and write into another NetCDF file.

I need to extract from 1 year output, which would be 365*24 files.

I thought this is a easy job, but the code took more than 7 hours to extract.

Anyway to optimize my code and speed up this process?

Thanks a lot

Xiao-Ming Hu

http://www.caps.ou.edu/~xhu/<http://www.caps.ou.edu/%7Exhu/>


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