can only retrieve Result table if number not text info

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

can only retrieve Result table if number not text info

JimG
I have a CSV file that I open into the Results table. When I try to import into array the only one that works is numerical data. The characters come in as NaN.  I checked that the correct column heading is used. Must be doing something silly!

        open("C:\\Program Files\\ImageJ\\GPcalibrations.csv");
        cSavedScales=newArray(nResults+2);
        nSystemResolutions=newArray(nResults+2);
        SavedUnits=newArray(nResults+2);
        cSavedScales[0]="Calibrate from Image";
        cSavedScales[1]="Calibrate from Image One Time";
                for(i=2; i<nResults+2; i++) {
                        cSavedScales[i]=getResult("Microscope_Identification",i-2);
                        nSystemResolutions[i]=getResult("resolution",i-2);
                        SavedUnits[i]=getResult("units",i-2);
                        }

thanks