From 6025b8ba830712fc71e193f790d75ba78776b962 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 25 Aug 2016 16:48:21 +0100 Subject: [PATCH] Examples: rename set_missing.f90 to grib_set_missing.f90 --- .gitignore | 4 ++-- doxygen/examples.dox | 4 ++-- doxygen/grib_examples.dox | 2 +- doxygen/make_dox.sh | 4 ++-- examples/F90/CMakeLists.txt | 2 +- examples/F90/Makefile.am | 6 +++--- examples/F90/{set_missing.f90 => grib_set_missing.f90} | 2 +- examples/F90/{set_missing.sh => grib_set_missing.sh} | 4 ++-- fortran/eccodes_f90_tail.f90 | 2 +- fortran/grib_f90_tail.f90 | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) rename examples/F90/{set_missing.f90 => grib_set_missing.f90} (97%) rename examples/F90/{set_missing.sh => grib_set_missing.sh} (82%) diff --git a/.gitignore b/.gitignore index 9ffa4a032..75fc964a3 100644 --- a/.gitignore +++ b/.gitignore @@ -147,7 +147,7 @@ examples/F90/eccodes_f_bufr_read_tropical_cyclone examples/F90/eccodes_f_grib_clone examples/F90/eccodes_f_grib_count_messages examples/F90/eccodes_f_grib_count_messages_multi -examples/F90/eccodes_f_copy_message +examples/F90/eccodes_f_grib_copy_message examples/F90/eccodes_f_copy_namespace examples/F90/eccodes_f_count_messages examples/F90/eccodes_f_grib_get_keys @@ -171,7 +171,7 @@ examples/F90/eccodes_f_samples examples/F90/eccodes_f_grib_set_keys examples/F90/eccodes_f_grib_set_bitmap examples/F90/eccodes_f_grib_set_gvc -examples/F90/eccodes_f_set_missing +examples/F90/eccodes_f_grib_set_missing examples/F90/eccodes_f_grib_set_pv examples/F90/*.sh.log examples/F90/*.sh.trs diff --git a/doxygen/examples.dox b/doxygen/examples.dox index 3f5dbac42..e23cd0329 100644 --- a/doxygen/examples.dox +++ b/doxygen/examples.dox @@ -1,4 +1,4 @@ -/*! \page examples Grib API examples +/*! \page examples GRIB API examples \example grib_get_keys.c grib_get_keys.c How to get values through the key names. \example set.c set.c How to set values through the key names. @@ -19,7 +19,7 @@ defined in a message and how to iterate through them. \example get_data.f90 How to get latitude/longitude/values. \example set.f90 How to set values through the key names. \example grib_set_bitmap.f90 How to set and use a bitmap. -\example set_missing.f90 How to set a missing value in the header. +\example grib_set_missing.f90 How to set a missing value in the header. \example grib_set_pv.f90 How to set the list of levels. \example samples.f90 How to create a new message from a samples. \example grib_clone.f90 How to clone a message. diff --git a/doxygen/grib_examples.dox b/doxygen/grib_examples.dox index 4b04119a2..1cf962a41 100644 --- a/doxygen/grib_examples.dox +++ b/doxygen/grib_examples.dox @@ -27,7 +27,7 @@ that can be taken as a starting point to write more complex programs.\n - \ref get_data.f90 "get_data.f90" how to get latitude/longitude/values. - \ref set.f90 "set.f90" how to set values through the key names. - \ref grib_set_bitmap.f90 "grib_set_bitmap.f90" how to set and use a bitmap. -- \ref set_missing.f90 "set_missing.f90" how to set a missing value in the header. +- \ref grib_set_missing.f90 "grib_set_missing.f90" how to set a missing value in the header. - \ref grib_set_pv.f90 "grib_set_pv.f90" how to set the list of levels. - \ref samples.f90 "samples.f90" how to create a new message from a template. - \ref grib_clone.f90 "grib_clone.f90" how to clone a message. diff --git a/doxygen/make_dox.sh b/doxygen/make_dox.sh index 0337ecd77..c372a9d6a 100755 --- a/doxygen/make_dox.sh +++ b/doxygen/make_dox.sh @@ -36,11 +36,11 @@ grib_clone grib_copy_message count_messages samples -set_missing +grib_set_missing " for fn in $fnames; do perl -p -i -e "s|$fn\.f90|$fn.f90|" $F90_file done -echo DONE \ No newline at end of file +echo DONE diff --git a/examples/F90/CMakeLists.txt b/examples/F90/CMakeLists.txt index d9cdbf892..792dd76e7 100644 --- a/examples/F90/CMakeLists.txt +++ b/examples/F90/CMakeLists.txt @@ -23,7 +23,7 @@ list( APPEND tests grib_print_data grib_set_keys grib_set_bitmap - set_missing + grib_set_missing grib_set_pv samples grib_count_messages diff --git a/examples/F90/Makefile.am b/examples/F90/Makefile.am index d82b8c941..c3efe5600 100644 --- a/examples/F90/Makefile.am +++ b/examples/F90/Makefile.am @@ -4,7 +4,7 @@ AM_CFLAGS = @WARN_PEDANTIC@ @WERROR@ @FORCE_32_CFLAGS@ TESTS = grib_copy_message.sh grib_get_keys.sh get_data.sh get_pl.sh get_pv.sh grib_keys_iterator.sh \ grib_nearest.sh grib_precision.sh grib_multi_write.sh grib_multi.sh \ grib_print_data.sh grib_set_keys.sh \ - grib_set_bitmap.sh set_missing.sh grib_set_pv.sh samples.sh grib_count_messages.sh \ + grib_set_bitmap.sh grib_set_missing.sh grib_set_pv.sh samples.sh grib_count_messages.sh \ read_message.sh grib_count_messages_multi.sh \ read_from_file.sh grib_index.sh get_set_uuid.sh \ bufr_attributes.sh grib_clone.sh bufr_clone.sh \ @@ -29,7 +29,7 @@ noinst_PROGRAMS = eccodes_f_grib_index \ eccodes_f_grib_print_data_static \ eccodes_f_grib_set_keys \ eccodes_f_grib_set_bitmap \ - eccodes_f_set_missing \ + eccodes_f_grib_set_missing \ eccodes_f_grib_set_pv \ eccodes_f_samples \ eccodes_f_grib_count_messages \ @@ -71,7 +71,7 @@ eccodes_f_grib_print_data_SOURCES=grib_print_data.f90 eccodes_f_grib_print_data_static_SOURCES=grib_print_data_static.f90 eccodes_f_grib_set_keys_SOURCES=grib_set_keys.f90 eccodes_f_grib_set_bitmap_SOURCES=grib_set_bitmap.f90 -eccodes_f_set_missing_SOURCES=set_missing.f90 +eccodes_f_grib_set_missing_SOURCES=grib_set_missing.f90 eccodes_f_grib_set_pv_SOURCES=grib_set_pv.f90 eccodes_f_samples_SOURCES=samples.f90 eccodes_f_grib_count_messages_SOURCES=grib_count_messages.f90 diff --git a/examples/F90/set_missing.f90 b/examples/F90/grib_set_missing.f90 similarity index 97% rename from examples/F90/set_missing.f90 rename to examples/F90/grib_set_missing.f90 index c244fe669..397d15b9d 100644 --- a/examples/F90/set_missing.f90 +++ b/examples/F90/grib_set_missing.f90 @@ -25,7 +25,7 @@ program set '../../data/reduced_gaussian_pressure_level.grib2','r') call codes_open_file(outfile, & - 'out_surface_level.grib2','w') + 'f_out_surface_level.grib2','w') ! a new grib message is loaded from file ! igrib is the grib id to be used in subsequent calls diff --git a/examples/F90/set_missing.sh b/examples/F90/grib_set_missing.sh similarity index 82% rename from examples/F90/set_missing.sh rename to examples/F90/grib_set_missing.sh index ccfb399c2..14cbc4712 100755 --- a/examples/F90/set_missing.sh +++ b/examples/F90/grib_set_missing.sh @@ -9,5 +9,5 @@ . ./include.sh -${examples_dir}eccodes_f_set_missing > /dev/null -rm -f out_surface_level.grib2 +${examples_dir}eccodes_f_grib_set_missing > /dev/null +rm -f f_out_surface_level.grib2 diff --git a/fortran/eccodes_f90_tail.f90 b/fortran/eccodes_f90_tail.f90 index 2da5d3d11..246673b3d 100644 --- a/fortran/eccodes_f90_tail.f90 +++ b/fortran/eccodes_f90_tail.f90 @@ -14,7 +14,7 @@ !> exit with an error message.\n Otherwise the error message can be !> gathered with @ref codes_get_error_string. !> -!> \b Examples: \ref set_missing.f90 "set_missing.f90" +!> \b Examples: \ref grib_set_missing.f90 "grib_set_missing.f90" !> !> @param id ID of the message loaded in memory !> @param key key name diff --git a/fortran/grib_f90_tail.f90 b/fortran/grib_f90_tail.f90 index 93fa617c6..0e6c92aed 100644 --- a/fortran/grib_f90_tail.f90 +++ b/fortran/grib_f90_tail.f90 @@ -10,7 +10,7 @@ !> exit with an error message.\n Otherwise the error message can be !> gathered with @ref grib_get_error_string. !> - !> \b Examples: \ref set_missing.f90 "set_missing.f90" + !> \b Examples: \ref grib_set_missing.f90 "grib_set_missing.f90" !> !> @param gribid id of the grib loaded in memory !> @param key key name