Rank: 99621 based on 0 downloads (last 30 days) and 0 file submitted
photo

jhh

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by jhh View all
Updated File Comments Rating
25 Oct 2013 sun_position.m Sun position given observer time/location. Author: Vincent Roy

Hi Nasir,
I (= Jeroen) am just a user of this sun_position function, perhaps your question is meant for Vincent Roy (=author of sun_position).
Still, I'd be glad to help if I can.

Can you post the code that generates your error message ?

03 Jul 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns

I've got it running now by (1) using 'addpath' to tell Matlab where exiftool can be found and (2) changing the 'else' part of getexif.m as follows:

TS=[ '"' test '" -s "' fname '"']
[status, exifdata]=system(TS);
nf = find(exifdata==':');
nf = length(nf);

But even then, you just get exifdata as a 1xn char array, you you still have to decipher that into meaningfull variables. (I've done so for myself, and it works, but it's not mature enough to post it on FileExchange).

I suppose nf should reurn the number of fields in the exif data, but counting the ':' is not the right way to do it.

20 Jun 2013 run_exiftool Read and write full Exif metadata from image files. A Matlab front end for ExifTool, by Phil Harvey. Author: Peter Burns

Sounds like just what I need, but is not working on my syetem (R2007b).
I get: "'exiftool.exe' is not recognized as an internal or external command,
operable program or batch file."
Even though exiftool.exe is in my path (confirmed by 'whcih exiftool.exe')

06 Mar 2012 sun_position.m Sun position given observer time/location. Author: Vincent Roy

@Cat, @Robin: I hope this example will help. One-hour steps, for the first 5 days of the current month.

Regards - Jeroen

location.longitude = 4.3;
location.latitude = 51.6;
location.altitude = 0;

time.year = 2008;
time.month = 5;
time.day = 16;
time.hour = 16;
time.min = 35;
time.sec = 0;
time.UTC = 1;

sun=sun_position(time, location); %One moment, one place.

StepSize=datenum(0,0,0,1,0,0); %one hour
DN_ar=datenum(2012,03,01):StepSize:datenum(2012,3,5);

for i=1:length(DN_ar)
dn=DN_ar(i);
[time.year time.month time.day time.hour time.min time.sec] = datevec(dn);
sun=sun_position(time, location);
Z(i)=sun.zenith;
A(i)=sun.azimuth;
end
plot(Z,'b');
hold on;
plot(A,'r');

29 Aug 2010 MontageFigures Creates Montage (subplots) of Specified Figures and their subplots Author: Nick Sinclair

It seems to damage my legends. Otherwise works OK.

Contact us