在R的ggplot中绘制来自netCDF的数据

时间:2019-02-08 00:02:43

标签: r ggplot2 maps mapping netcdf

我正在寻找来自以下来源的netCDF数据:

http://fizz.phys.dal.ca/~atmos/martin/?page_id=140

只是一些简单但很大的文件,其PM 2.5浓度,纬度和经度。

我正在将这些数据绘制在马萨诸塞州的地图上。

当前,我遇到以下错误:

namespace IST_Submission_Form.Migrations
{
[DbContext(typeof(SubmissionContext))]
partial class SubmissionContextModelSnapshot : ModelSnapshot
{
    protected override void BuildModel(ModelBuilder modelBuilder)
    {
#pragma warning disable 612, 618
        modelBuilder
            .HasAnnotation("ProductVersion", "2.1.3-rtm-32065")
            .HasAnnotation("Relational:MaxIdentifierLength", 128)
            .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);

        modelBuilder.Entity("IST_Submission_Form.Models.Comment", b =>
            {
                b.Property<int>("ID")
                    .ValueGeneratedOnAdd()
                    .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);

                b.Property<string>("Body")
                    .HasColumnType("text");

                b.Property<DateTime>("CreatedAt");

                b.Property<string>("CreatedBy");

                b.Property<int>("SubmissionID");

                b.HasKey("ID");

                b.HasIndex("SubmissionID");

                b.ToTable("Comment");
            });

        modelBuilder.Entity("IST_Submission_Form.Models.Submission", b =>
            {
                b.Property<int>("ID")
                    .ValueGeneratedOnAdd()
                    .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);

                b.Property<string>("AssignedTo");

                b.Property<DateTime>("Date");

                b.Property<string>("DesiredCompletionDate")
                    .HasColumnName("Timeline");

                b.Property<string>("Email");

                b.Property<string>("Files");

                b.Property<string>("FirstName");

                b.Property<string>("Goal");

                b.Property<string>("LastName");

                b.Property<string>("Location");

                b.Property<string>("LoginID");

                b.Property<string>("ProjectDescription")
                    .HasColumnType("text");

                b.Property<int>("Status");

                b.Property<string>("Title");

                b.HasKey("ID");

                b.ToTable("Submissions");
            });

        modelBuilder.Entity("IST_Submission_Form.Models.Comment", b =>
            {
                b.HasOne("IST_Submission_Form.Models.Submission", "Submission")
                    .WithMany("Comments")
                    .HasForeignKey("SubmissionID")
                    .OnDelete(DeleteBehavior.Cascade);
            });
#pragma warning restore 612, 618
    }
}
}

以下是我的代码:

Error: Aesthetics must be either length 1 or the same as the data (286): x

我想知道是否有人对ggplot函数感到满意,以及是否可以提供任何帮助。我对R非常陌生,甚至对管理netCDF文件类型都比较陌生。任何帮助将不胜感激!

0 个答案:

没有答案