From: Lloyd Walker on
"Manoj Nair" <manoj.nair(a)colorado.edu> wrote in message <hkrr46$ab0$1(a)fred.mathworks.com>...
> "Enrique " <e.urquijo(a)fis.ucm.es> wrote in message <hkrfvv$q4m$1(a)fred.mathworks.com>...
> > "Manoj Nair" <manoj.nair(a)colorado.edu> wrote in message <hkhkf2$otm$1(a)fred.mathworks.com>...
> > > "Jeff Klein" <jklein(a)physics.umn.edu> wrote in message <hjqlit$nur$1(a)fred.mathworks.com>...
> > > > Hi,
> > > >
> > > > Matlab has a function called wrldmagm which returns the earth's magnetic field at a given time and coordinate. This uses the World Magnetic Model which is updated every five years - so if you are looking for a date in 2003, for example, you need to tell wrldmagm to use the year 2000 file, and after 2005 the year 2005 file, etc. The function loads a bunch of coefficients from a file like aerowmm2000.mat or aerowmm2005.mat. But now there's a new model for 2010. Nobody appers to have created an aerowmm2010.mat. I assume that these files contain the same coefficients as wmm.cof, the C file that is used by the functions distributed by the people who do the WMM, but I don't know how to map between the two - some you can kinda figure out but it's hit and miss.
> > > >
> > > > Anyone familiar with this?
> > >
> > >
> > > We at NGDC updates WMM. We informed MATLAB that they need to update the model. I have created aerowmm2010.mat for testing the MATLAB code. Also need to write an additional line ine wrldmagm.m to accept the new model. If you want this mat file, I can send these files to you.
> > >
> > > best
> > >
> > > Manoj
> >
> > Hi everyone,
> >
> > I have been dealing with aerowmm2010.mat file to figure out how to get de coefficients (c, dc, fn, fm, snorm, k) from the WMM developers file WMM.COF in order to run the matlab function wrldmagm.
> >
> > I will be grateful if you can send it to me your file so I can test that my values I get are correct. Of course, I can send them to you if you want...
> >
> > best regards
> >
> > Enrique
>
> Enrique,
>
> I sent my version of aero2010.mat to your email. The variable snorm is un-necessary.
>
> -Manoj

I am working on an Attitude determination code for a class and I was wondering if you can send me the updated M file. I would be most happy if you could. This will help out my team so much.

Thanks.
From: Arkadiy Turevskiy on
Hi,
Release 2010a became available today. As part of that release we updated the function wrldmagm to include world magnetic model for years 2010-2015 (WMM-2010).
See release notes for more details:
http://www.mathworks.com/products/aerotb/whatsnew.html

HTH.
Arkadiy


"Jeff Klein" <jklein(a)physics.umn.edu> wrote in message <hjqlit$nur$1(a)fred.mathworks.com>...
> Hi,
>
> Matlab has a function called wrldmagm which returns the earth's magnetic field at a given time and coordinate. This uses the World Magnetic Model which is updated every five years - so if you are looking for a date in 2003, for example, you need to tell wrldmagm to use the year 2000 file, and after 2005 the year 2005 file, etc. The function loads a bunch of coefficients from a file like aerowmm2000.mat or aerowmm2005.mat. But now there's a new model for 2010. Nobody appers to have created an aerowmm2010.mat. I assume that these files contain the same coefficients as wmm.cof, the C file that is used by the functions distributed by the people who do the WMM, but I don't know how to map between the two - some you can kinda figure out but it's hit and miss.
>
> Anyone familiar with this?
From: Rajesh Tiwari on
"Lloyd Walker" <lwalker8(a)gatech.edu> wrote in message <hm901o$2lr$1(a)fred.mathworks.com>...
> "Manoj Nair" <manoj.nair(a)colorado.edu> wrote in message <hkrr46$ab0$1(a)fred.mathworks.com>...
> > "Enrique " <e.urquijo(a)fis.ucm.es> wrote in message <hkrfvv$q4m$1(a)fred.mathworks.com>...
> > > "Manoj Nair" <manoj.nair(a)colorado.edu> wrote in message <hkhkf2$otm$1(a)fred.mathworks.com>...
> > > > "Jeff Klein" <jklein(a)physics.umn.edu> wrote in message <hjqlit$nur$1(a)fred.mathworks.com>...
> > > > > Hi,
> > > > >
> > > > > Matlab has a function called wrldmagm which returns the earth's magnetic field at a given time and coordinate. This uses the World Magnetic Model which is updated every five years - so if you are looking for a date in 2003, for example, you need to tell wrldmagm to use the year 2000 file, and after 2005 the year 2005 file, etc. The function loads a bunch of coefficients from a file like aerowmm2000.mat or aerowmm2005.mat. But now there's a new model for 2010. Nobody appers to have created an aerowmm2010.mat. I assume that these files contain the same coefficients as wmm.cof, the C file that is used by the functions distributed by the people who do the WMM, but I don't know how to map between the two - some you can kinda figure out but it's hit and miss.
> > > > >
> > > > > Anyone familiar with this?
> > > >
> > > >
> > > > We at NGDC updates WMM. We informed MATLAB that they need to update the model. I have created aerowmm2010.mat for testing the MATLAB code. Also need to write an additional line ine wrldmagm.m to accept the new model. If you want this mat file, I can send these files to you.
> > > >
> > > > best
> > > >
> > > > Manoj
> > >
> > > Hi everyone,
> > >
> > > I have been dealing with aerowmm2010.mat file to figure out how to get de coefficients (c, dc, fn, fm, snorm, k) from the WMM developers file WMM.COF in order to run the matlab function wrldmagm.
> > >
> > > I will be grateful if you can send it to me your file so I can test that my values I get are correct. Of course, I can send them to you if you want...
> > >
> > > best regards
> > >
> > > Enrique
> >
> > Enrique,
> >
> > I sent my version of aero2010.mat to your email. The variable snorm is un-necessary.
> >
> > -Manoj
>
> I am working on an Attitude determination code for a class and I was wondering if you can send me the updated M file. I would be most happy if you could. This will help out my team so much.
>
> Thanks.
-------------------------------------------------------------------------------------------------------------------
Hi Manoj,
Is wrldmagm.m function only available with 2010 version? I am using university license of 2007b version.
I need to use this function to compute dip latitude, Please instruct me to solve this problem.
With regards
Rajesh
From: Mark Shore on
-------------------------------------------------------------------------------------------------------------------
> Hi Manoj,
> Is wrldmagm.m function only available with 2010 version? I am using university license of 2007b version.
> I need to use this function to compute dip latitude, Please instruct me to solve this problem.
> With regards
> Rajesh


For those who don't have access to the Aerospace Toolbox, updated WMM coefficients and software with source code (C and Fortran) are available at http://www.ngdc.noaa.gov/geomag/WMM/soft.shtml