Re: [netcdf-java] ImageJ Macro won't open files with NetCDF

Hi Emily,

> when I change it to run("Load NetCDF File", "open=[path1]"); the macro
> does not work, even though path1 is a variable with the correct file
> path.

You must write:

  run("Load NetCDF File", "open=[" + path1 + "]");

Or (I think):

  run("Load NetCDF File", "open=[&path1]");

Personally I use the former syntax. Otherwise, you are telling the plugin
to literally open a file called "path1" which is not what you want.

Regards,
Curtis

On Thu, Jun 4, 2015 at 7:30 PM, Emily Saurette <emily.saurette@xxxxxxxxxxxx>
wrote:

> I am writing a macro to process some NetCDF files in ImageJ and I would
> like the macro to be able to open them sequentially from a directory. The
> macro recorder has this written as: run("Load NetCDF File", "open=[file
>  path]"); however when I change it to run("Load NetCDF File",
> "open=[path1]"); the macro does not work, even though path1 is a variable
> with the correct file path.  Is there a way to fix this?
>
> Emily Saurette, B.Sc. (Hons)
>
> M.Sc. Candidate
>
> Dept. of Earth and Environmental Sciences
>
> University of Waterloo
>
> emily.saurette@xxxxxxxxxxxx
>
>
>
> _______________________________________________
> netcdf-java mailing list
> netcdf-java@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
>
  • 2015 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: