Skip to content
Snippets Groups Projects
  1. Sep 12, 2024
    • GUEZ Lionel's avatar
      Read `extr_proj` if not `uniform_lon_lat` · d43d67a6
      GUEZ Lionel authored
      In program `examine_eddy`.
      d43d67a6
    • GUEZ Lionel's avatar
      Replace `grid_lon_lat` by `with_proj` · 76f029aa
      GUEZ Lionel authored
      Replace dummy argument `grid_lon_lat` of procedure `shpc_create` by
      `with_proj`.
      76f029aa
    • GUEZ Lionel's avatar
      Specify whether to read `extr_proj` in `shpc_open` · 00080fd7
      GUEZ Lionel authored
      Specify whether to read shapefile `extr_proj` in procedure `shpc_open`
      instead of just trying to read this shapefile. Use `uniform_lon_lat`
      to decide whether to read the shapefile. As `shpc_open` is called in
      both programs `inst_eddies` and `eddy_graph`, we cannot access
      variable `uniform_lon_lat` of module `input_ssh_m`, which is not used
      in program `eddy_graph`, nor variable `uniform_lon_lat` of module
      `read_grid_m`, which is not used in program `inst_eddies`. So we add a
      dummy argument `with_proj` to procedure `shpc_open`.
      00080fd7
    • GUEZ Lionel's avatar
      Write `uniform_lon_lat` to `grid_nml.txt` · 185da22f
      GUEZ Lionel authored
      185da22f
    • GUEZ Lionel's avatar
      Create variable `uniform_lon_lat` · 22880f06
      GUEZ Lionel authored
      In module `input_ssh_m`. Read it from `input_ssh_nml`.
      22880f06
    • GUEZ Lionel's avatar
      Rename variable `corner` to `corner_whole` · ef43e372
      GUEZ Lionel authored
      Rename variable `corner` of module `input_ssh_m` to `corner_whole`.
      ef43e372
    • GUEZ Lionel's avatar
      Promote `step` to variable of module `input_ssh_m` · bb4980b6
      GUEZ Lionel authored
      I did not like the difference of treatment between corner and step.
      bb4980b6
    • GUEZ Lionel's avatar
      Read `input_ssh_nml` before · a4a01f50
      GUEZ Lionel authored
      Read `input_ssh_nml` before reading the NetCDF files. Preparing to
      read from the namelist whether the grid is uniform.
      a4a01f50
    • GUEZ Lionel's avatar
      Read periodic in a namelist · 086d52f5
      GUEZ Lionel authored
      Preparing to read a second input variable from stdin in procedure
      `input_ssh`.
      086d52f5
    • GUEZ Lionel's avatar
      Polish · 61bed5aa
      GUEZ Lionel authored
      61bed5aa
    • GUEZ Lionel's avatar
      Write periodic to `grid_nml.txt` · ea297e7e
      GUEZ Lionel authored
      So that the program `eddy_graph` can read it, instead of deducing it
      from the longitude coordinate.
      ea297e7e
    • GUEZ Lionel's avatar
      Read `periodic` in program `inst_eddies` · 12c21b42
      GUEZ Lionel authored
      Instead of deducing it from the longitude coordinate. The deduction
      could not be generalized to a non-uniform longitude-latitude
      grid. Also, the test on `step(1)` and nlon was not perfectly robust.
      12c21b42
    • GUEZ Lionel's avatar
      Write `grid_nml.txt` to current directory · 8eadc458
      GUEZ Lionel authored
      We are trying to simplify the logic in program `inst_eddies`. Also,
      the program `inst_eddies` should not write `grid_nml.txt` to the top
      level of the SHPC directory since several instances could run in
      parallel for several slices. So we are leaving it as a task for a
      script above `inst_eddies` to create `grid_nml.txt` at the top level
      of the SHPC directory. In tests, we have to move `grid_nml.txt` to
      SHPC because we use `SHPC/grid_nml.txt` in other tests.
    • GUEZ Lionel's avatar
      Create files in the current directory · 3a4d2109
      GUEZ Lionel authored
      Create `cropped.nc` and `unpacked.nc` in the current
      directory. Several instances of script `inst_eddies.py` for different
      slices should run in different directories.
      3a4d2109
    • GUEZ Lionel's avatar
      Polish · 76812b2c
      GUEZ Lionel authored
      76812b2c
    • GUEZ Lionel's avatar
      Read `config_nml` from stdin in subroutine config · 1100bbaf
      GUEZ Lionel authored
      We are reverting commit d4d05bc2. It was not true that we needed two
      input fluxes in the Fortran program. `inst_eddies.py` can read the
      file `config_nml.txt` and merge its content to stdin for the Fortran
      program.
      1100bbaf
    • GUEZ Lionel's avatar
      Polish · a6af76a4
      GUEZ Lionel authored
      a6af76a4
    • GUEZ Lionel's avatar
      Always read coordinates and create `grid_nml.txt` · d6d22085
      GUEZ Lionel authored
      Always read coordinates from NetCDF file and create `grid_nml.txt`. Do
      not try to read `grid_nml.txt`. Reverting part of commit c4410682. We
      are trying to simplify the logic in program `inst_eddies`.
      d6d22085
    • GUEZ Lionel's avatar
      Add argument SHPC-dir to script `inst_eddies_Aviso.py` · cf970d4d
      GUEZ Lionel authored
      Add argument SHPC-dir to script `inst_eddies_Aviso.py`. We want to be
      able to run `inst_eddies_Aviso` in parallel for several slices. Since
      we write `used_config_nml.txt` to the current directory, we need to
      run the parallel instances from different directories. So the current
      directory cannot always be the directory containing the SHPC to be
      appended to.
      cf970d4d
    • GUEZ Lionel's avatar
      Add argument `SHPC_dir` to `loop_inst_eddies` · c0189703
      GUEZ Lionel authored
      Add argument `SHPC_dir` to function `loop_inst_eddies`. We want to be
      able to run `loop_inst_eddies` in parallel for several slices. Since
      we write `used_config_nml.txt` to the current directory, we need to
      run the parallel instances from different directories. So the current
      directory cannot always be the directory containing the SHPC to be
      appended to.
      c0189703
    • GUEZ Lionel's avatar
      Polish · c4117235
      GUEZ Lionel authored
      c4117235
    • GUEZ Lionel's avatar
      Blacken · d8500bc7
      GUEZ Lionel authored
      d8500bc7
    • GUEZ Lionel's avatar
      Polish · 6ea01141
      GUEZ Lionel authored
      6ea01141
    • GUEZ Lionel's avatar
      Write `used_config_nml.txt` to current directory · 4157fa1e
      GUEZ Lionel authored
      We are trying to simplify the logic in program `inst_eddies`. Also,
      the program `inst_eddies` should not write `used_config_nml.txt` to
      the top level of the SHPC directory since several instances could run
      in parallel for several slices. So we are leaving it as a task for a
      script over `inst_eddies` to create `used_config_nml.txt` at the top
      level of the SHPC directory.
      4157fa1e
    • GUEZ Lionel's avatar
      Always read `config_nml.txt` · 64796739
      GUEZ Lionel authored
      Do not try to read `used_config_nml.txt`. We are reverting commit
      d9a67386, trying to simplify the logic in program `inst_eddies`. We
      consider that using a single configuration for several runs of
      `inst_eddies` is the problem of a script over `inst_eddies`, not the
      problem of `inst_eddies`. Drawback: we write again
      `used_config_nml.txt` in several runs of `inst_eddies`, but this is
      not important.
      64796739
    • GUEZ Lionel's avatar
      Add argument SHPC-dir to program `inst_eddies` · 0cfe5b01
      GUEZ Lionel authored
      We want to be able to run `inst_eddies` from a directory other than
      the directory containing the SHPC to be appended to. Preparing to
      write `grid_nml.txt` and `used_config_nml.txt` in the current
      directory. To be able to do this in parallel for several slices, we
      need to be running in different directories.
      0cfe5b01
  2. Sep 09, 2024
Loading