Menu

cant generate map.nc

Help
Xinyuan Lv
2023-06-15
2023-06-16
  • Xinyuan Lv

    Xinyuan Lv - 2023-06-15

    I have just recently started using nco and am not familiar with the process. I now want to re-interpolate the output from E3SM (oQU480) to lon/lat grid.

    I first generated the target grid file for 360×180 using the following command: ncremap -g grd.nc -G latlon=180,360

    Then I want to continue to generate the map file with the following command: ncremap -s /D/lxy/CESM2/cesm-inputdata/ocn/mpas-o/oQU480/ocean.QU.480km.151209.nc -g /home/lxyccyethz/grd.nc -m map.nc

    but an error occurs:

    (ncoenv) lxyccyethz@haitian-Super-Server:~$ ncremap -s /D/lxy/CESM2/cesm-inputdata/ocn/mpas-o/oQU480/ocean.QU.480km.151209.nc -g /home/lxyccyethz/grd.nc -m map.nc

    Grid(src): /D/lxy/CESM2/cesm-inputdata/ocn/mpas-o/oQU480/ocean.QU.480km.151209.nc

    Grid(dst): /home/lxyccyethz/grd.nc

    Failure in NCO function in file nco_map.c at line 123

    ncremap: ERROR Failed to generate map-file. Debug this:

    ncks -O --dmm_in_mk --thr_nbr=2 --no_tmp_fl --hdr_pad=10000 --gaa remap_script=ncremap --gaa remap_hostname=haitian-Super-Server --gaa remap_version=5.1.6 --grd_src="/D/lxy/CESM2/cesm-inputdata/ocn/mpas-o/oQU480/ocean.QU.480km.151209.nc" --grd_dst="/home/lxyccyethz/grd.nc" --map_fl="map.nc" --rgr lat_nm_out=lat --rgr lon_nm_out=lon "/tmp/ncremap_tmp_dmm.nc.pid2175414" "/tmp/ncremap_tmp_out.nc.pid2175414" > /dev/null

    (ncoenv) lxyccyethz@haitian-Super-Server:~$ ncremap -D ncks -O --dmm_in_mk --thr_nbr=2 --no_tmp_fl --hdr_pad=10000 --gaa remap_script=ncremap --gaa remap_hostname=haitian-Super-Server --gaa remap_version=5.1.6 --grd_src="/D/lxy/CESM2/cesm-inputdata/ocn/mpas-o/oQU480/ocean.QU.480km.151209.nc" --grd_dst="/home/lxyccyethz/grd.nc" --map_fl="map.nc" --rgr lat_nm_out=lat --rgr lon_nm_out=lon "/tmp/ncremap_tmp_dmm.nc.pid2095618" "/tmp/ncremap_tmp_out.nc.pid2095618" > /dev/null

    ERROR: Unrecognized option --no_tmp_fl

    How to solve this problem?

    Thanks!

    Xinyuan.

     
    • Charlie Zender

      Charlie Zender - 2023-06-15

      The first command,
      ncremap -s /D/lxy/CESM2/cesm-inputdata/ocn/mpas-o/oQU480/ocean.QU.480km.151209.nc -g /home/lxyccyethz/grd.nc -m map.nc
      looks good. The fact that it fails where it does means that the file ocean.QU.480km.151209.nc is not a valid gridfile. In fact the file you attached has size = 0 bytes.

      The second command,
      ncremap -D ncks -O --dmm_in_mk ...
      makes no sense. Get the right ocean grid file and it should work.
      The file that you really want is probably named ocean.QU.480km.scrip.151209.nc, attached.

       
      • Xinyuan Lv

        Xinyuan Lv - 2023-06-16

        Hi,
        Thanks very much~ I have generated the map.nc through ocean.QU.480km.scrip.151209.nc successfully.

        When I ran the case with E3SM, the mesh file as input was ocean.QU.480km.151209.nc. But is it not possible to use this file when generating a map file with ncremap? Need to find the corresponding.scrip. File?

        The attachment has been unable to upload successfully. I downloaded it in the following directory:
        https://web.lcrc.anl.gov/public/e3sm/inputdata/ocn/mpas-o/oQU480/ocean.QU.480km.151209.nc

        Thanks!
        Xinyuan.

         

        Last edit: Xinyuan Lv 2023-06-16
        • Charlie Zender

          Charlie Zender - 2023-06-16

          Yes, that is correct. This file ocean.QU.480km.151209.nc is not a SCRIP grid file,
          which is what ncremap needs.

           

Log in to post a comment.

MongoDB Logo MongoDB